|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.martealert.martealertDatePicker
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
protected javax.swing.JFormattedTextField |
_dateField
The editable date field that displays the date |
protected com.martealert.martealertDatePicker.marteDatePickerPopup |
_popup
Popup that displays the month view with controls for traversing/selecting dates. |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
martealertDatePicker()
Create a new date picker using the current date as the initial selection. |
|
martealertDatePicker(long millis)
Create a new date picker using the specified time as the initial seleciton. |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Adds an ActionListener. |
void |
commitEdit()
Forces the current value to be taken from the AbstractFormatter and set as the current value. |
void |
doLayout()
|
protected void |
fireActionPerformed()
Fires an ActionEvent to all listeners. |
java.lang.String |
getActionCommand()
Returns the string currently used to identiy fired ActionEvents. |
java.util.Date |
getDate()
Returns the currently selected date. |
javax.swing.JFormattedTextField |
getDateField()
|
javax.swing.JFormattedTextField.AbstractFormatterFactory |
getDateFormatterFactory()
Return the AbstractFormatterFactory for this instance of the JXDatePicker. |
long |
getDateInMillis()
Returns the currently selected date in milliseconds. |
javax.swing.JFormattedTextField |
getEditor()
Returns the formatted text field used to edit the date selection. |
java.awt.Dimension |
getMinimumSize()
|
java.awt.Dimension |
getPreferredSize()
|
java.lang.Object |
getValue()
|
boolean |
isEditValid()
Returns true if the current value being edited is valid. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes an ActionListener. |
void |
setActionCommand(java.lang.String actionCommand)
Sets the string used to identify fired ActionEvents. |
void |
setDate(java.util.Date date)
Set the currently selected date. |
void |
setDateFormatterFactory(javax.swing.JFormattedTextField.AbstractFormatterFactory dateFormatterFactory)
Set the AbstractFormatterFactory to be used by this instance of the JXDatePicker. |
void |
setDateInMillis(long millis)
Set the currently selected date. |
void |
setEnabled(boolean value)
Enables or disables the date picker and all its subcomponents. |
void |
updateUI()
Resets the UI property to a value from the current look and feel. |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected javax.swing.JFormattedTextField _dateField
protected com.martealert.martealertDatePicker.marteDatePickerPopup _popup
Constructor Detail |
public martealertDatePicker()
public martealertDatePicker(long millis)
millis
- initial time in millisecondsMethod Detail |
public void updateUI()
public void setDate(java.util.Date date)
date
- datepublic void setDateInMillis(long millis)
millis
- millisecondspublic java.util.Date getDate()
public long getDateInMillis()
public javax.swing.JFormattedTextField getEditor()
public javax.swing.JFormattedTextField.AbstractFormatterFactory getDateFormatterFactory()
public void setDateFormatterFactory(javax.swing.JFormattedTextField.AbstractFormatterFactory dateFormatterFactory)
dateFormatterFactory
- the AbstractFormatterFactorypublic boolean isEditValid()
public void commitEdit() throws java.text.ParseException
java.text.ParseException
public void setEnabled(boolean value)
value
- true to enable, false to disablepublic java.lang.String getActionCommand()
public void setActionCommand(java.lang.String actionCommand)
actionCommand
- The string used for identifying ActionEvents.public void addActionListener(java.awt.event.ActionListener l)
The ActionListener will receive an ActionEvent when a selection has been made.
l
- The ActionListener that is to be notifiedpublic void removeActionListener(java.awt.event.ActionListener l)
l
- The action listener to remove.protected void fireActionPerformed()
public void doLayout()
public java.awt.Dimension getMinimumSize()
public java.awt.Dimension getPreferredSize()
public java.lang.Object getValue()
public javax.swing.JFormattedTextField getDateField()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |