com.lavantech.gui.comp
Class DateTimePicker

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended bycom.lavantech.gui.comp.DateTimePicker
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class DateTimePicker
extends javax.swing.JComponent

DateTimePicker allows a user to select a date and time.

See Also:
Serialized Form

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
 
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
DateTimePicker()
          Constructs a DateTimePicker component.
DateTimePicker(java.util.Date date, java.lang.String format)
          Constructs a DateTimePicker component.
DateTimePicker(java.util.Date date, java.lang.String format, boolean dispCal, boolean dispClock)
          Constructs a DateTimePicker component.
DateTimePicker(java.util.Date date, java.lang.String format, boolean dispCal, boolean dispClock, java.util.Locale locale)
          Constructs a DateTimePicker component.
DateTimePicker(java.util.GregorianCalendar cal, java.lang.String format)
          Constructs a DateTimePicker component.
DateTimePicker(java.util.GregorianCalendar cal, java.lang.String format, boolean dispCal, boolean dispClock)
          Constructs a DateTimePicker component.
DateTimePicker(java.util.GregorianCalendar cal, java.lang.String format, boolean dispCal, boolean dispClock, java.util.Locale locale)
          Constructs a DateTimePicker component for the given locale.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener ls)
          Adds an ActionListener.
 void addEditorListener(com.lavantech.gui.comp.PickerEditorListener ls)
          Adds an PickerEditorListener.
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Add a PropertyChangeListener for this Date Time Picker.
protected  javax.swing.JButton createDropDownButton()
          Returns a arrow button used to activate/close the Date Time Popup.
 java.util.GregorianCalendar getCalendar()
          Returns the current selected Date, Time and Timezone.
 CalendarPanel getCalendarPanel()
          Returns the CalendarPanel used in the picker popup.
 java.util.Date getDate()
          Returns the current selected Date.
 DateUnavailabilityModel getDateUnavailabilityModel()
          Returns the DateUnavailabilityModel for the CalendarPanel in the Picker.
 boolean getDisplayCalendar()
          Returns whether Calendar will be displayed for Date Modification.
 boolean getDisplayClock()
          Returns whether Clock will be displayed for Time Modification.
 javax.swing.JButton getDropDownButton()
          Returns the drop down button used in the picker
 javax.swing.JFormattedTextField getEditor()
          Returns the Editor(Used in editable mode) that is used by the Picker.
 java.util.GregorianCalendar getMaxSelectableTime()
          Returns the maximum time that can be selected in the date time picker.
 java.util.GregorianCalendar getMinSelectableTime()
          Returns the minimum time that can be selected in the date time picker.
 java.lang.String getPattern()
          Returns the pattern used for displaying in the selected date/time.
 boolean getPopupModal()
          Returns whether the popup window for the DateTimePicker will be modal or not.
 javax.swing.JPanel getPopupPanel()
          Returns the Panel that is used in the Popup Window.
 javax.swing.JButton getRenderer()
          Returns the Renderer(Used in non editable mode) that is used by the Picker.
 TimePanel getTimePanel()
          Returns the TimePanel used in the picker poup.
 boolean isDateRollOverByClockEnabled()
          Returns whether the analog clock time change can affect the Date(Increment date when needle is moved past 23:59:59 in the clockwise direction and decrement date when needle is moved past 00:00:00 in the anti-clockwise direction.
 boolean isDateTimePopupAutoCancelEnabled()
          Returns whether the Date and Time popup window will be automatically cancelled when the user clicks on some other component in the same window as the DateTimePicker.
 boolean isDisplayClearButton()
          Returns whether a Clear button will be displayed to clear the date time selection.
 boolean isDisplayNowButton()
          Returns whether a now button will be displayed to change calendar to current date and time.
 boolean isDisplayTodayButton()
          Returns whether a today button will be displayed to change calendar to today's date.
 boolean isEditable()
          Returns whether the DateTimePicker is editable through Keyboard
 void removeActionListener(java.awt.event.ActionListener ls)
          Removes an ActionListener.
 void removeEditorListener(com.lavantech.gui.comp.PickerEditorListener ls)
          Removes an PickerEditorListener.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Remove a PropertyChangeListener for this Date Time Picker.
 void setBackground(java.awt.Color bg)
          Set the background color of this component.
 void setCalendar(java.util.GregorianCalendar cal)
          Set the selected Date, Time and Timezone.
 void setDate(java.util.Date date)
          Set the selected Date and Time.
 void setDateRollOverByClockEnabled(boolean roll)
          Sets whether the analog clock time change can affect the Date(Increment date when needle is moved past 23:59:59 in the clockwise direction and decrement date when needle is moved past 00:00:00 in the anti-clockwise direction.
 void setDateTimePopupAutoCancelEnabled(boolean enable)
          Sets whether the Date and Time popup window will be automatically cancelled when the user clicks on some other component in the same window as the DateTimePicker.
 void setDateUnavailabilityModel(DateUnavailabilityModel model)
          Sets the DateUnavailabilityModel for the CalendarPanel in the Picker.
 void setDisplayCalendar(boolean disp)
          Sets whether Calendar will be displayed for Date Modification.
 void setDisplayClearButton(boolean enable)
          Sets whether a Clear button will be displayed to clear the date time selection.
 void setDisplayClock(boolean disp)
          Sets whether Clock will be displayed for Time Modification.
 void setDisplayNowButton(boolean enable)
          Sets whether a today button will be displayed to change calendar to current date and time.
 void setDisplayTodayButton(boolean enable)
          Sets whether a today button will be displayed to change calendar to today's date.
 void setEditable(boolean editable)
          Sets whether the DateTimePicker is editable through Keyboard
 void setEnabled(boolean enabled)
          Sets whether or not this picker is enabled.
 void setFont(java.awt.Font font)
          Set the font for this component.
 void setForeground(java.awt.Color fg)
          Set the foreground color of this component.
 void setMaxSelectableTime(java.util.GregorianCalendar maxTime)
          Set the maximum time that can be selected with the picker.
 void setMinSelectableTime(java.util.GregorianCalendar minTime)
          Set the minimum date/time that can be selected with the picker.
 void setPattern(java.lang.String pattern)
          Set the pattern for displaying in the selected date/time.
 void setPopupModal(boolean modal)
          Sets whether the popup window for the DateTimePicker wll be modal or not.
 void setToolTipText(java.lang.String text)
          Set the tooltip text for this component.
 void togglePopup()
          Toggle the popup window.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, 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, getMinimumSize, getNextFocusableComponent, getPreferredSize, 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, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, 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
 

Constructor Detail

DateTimePicker

public DateTimePicker()
Constructs a DateTimePicker component.


DateTimePicker

public DateTimePicker(java.util.Date date,
                      java.lang.String format)
Constructs a DateTimePicker component. Use the constructor with Calendar to set TimeZone.

Parameters:
date - The initial date that will be selected.
format - The format string for displaying the selected date/time. The format string is the one used in java.text.SimpleDateFormat.
See Also:
SimpleDateFormat

DateTimePicker

public DateTimePicker(java.util.Date date,
                      java.lang.String format,
                      boolean dispCal,
                      boolean dispClock)
Constructs a DateTimePicker component. Use the constructor with Calendar to set TimeZone.

Parameters:
date - The initial date that will be selected.
format - The format string for displaying the selected date/time.
dispCal - Boolean indicating whether to display Calendar for Date modification if both dispCal and dispClock are false, then dispCal will be true.
dispClock - Boolean indicating whether to display Clock for Time modification.
See Also:
SimpleDateFormat

DateTimePicker

public DateTimePicker(java.util.Date date,
                      java.lang.String format,
                      boolean dispCal,
                      boolean dispClock,
                      java.util.Locale locale)
Constructs a DateTimePicker component. Use the constructor with Calendar to set TimeZone.

Parameters:
date - The initial date that will be selected.
format - The format string for displaying the selected date/time.
dispCal - Boolean indicating whether to display Calendar for Date modification if both dispCal and dispClock are false, then dispCal will be true.
dispClock - Boolean indicating whether to display Clock for Time modification.
locale - Locale to use for displaying calendar month and weekday names.
See Also:
SimpleDateFormat

DateTimePicker

public DateTimePicker(java.util.GregorianCalendar cal,
                      java.lang.String format)
Constructs a DateTimePicker component.

Parameters:
cal - The Calendar that will be used to initialize the picker.
format - The format string for displaying the selected date/time. The format string is the one used in java.text.SimpleDateFormat.
See Also:
SimpleDateFormat

DateTimePicker

public DateTimePicker(java.util.GregorianCalendar cal,
                      java.lang.String format,
                      boolean dispCal,
                      boolean dispClock)
Constructs a DateTimePicker component.

Parameters:
cal - The Calendar that will be used to initialize the picker.
format - The format string for displaying the selected date/time.
dispCal - Boolean indicating whether to display Calendar for Date modification if both dispCal and dispClock are false, then dispCal will be true.
dispClock - Boolean indicating whether to display Clock for Time modification.
See Also:
SimpleDateFormat

DateTimePicker

public DateTimePicker(java.util.GregorianCalendar cal,
                      java.lang.String format,
                      boolean dispCal,
                      boolean dispClock,
                      java.util.Locale locale)
Constructs a DateTimePicker component for the given locale.

Parameters:
cal - The Calendar that will be used to initialize the picker.
format - The format string for displaying the selected date/time.
dispCal - Boolean indicating whether to display Calendar for Date modification if both dispCal and dispClock are false, then dispCal will be true.
dispClock - Boolean indicating whether to display Clock for Time modification.
locale - Locale to use for displaying calendar month and weekday names.
See Also:
SimpleDateFormat
Method Detail

createDropDownButton

protected javax.swing.JButton createDropDownButton()
Returns a arrow button used to activate/close the Date Time Popup. Override this method to have custom drop down buttons.

Returns:
JButton This method should return a JButton component.

togglePopup

public void togglePopup()
Toggle the popup window.


getMinSelectableTime

public java.util.GregorianCalendar getMinSelectableTime()
Returns the minimum time that can be selected in the date time picker. If there is no minimum time limit, null is returned.

Returns:
GregorianCalendar Minimum time that can be selected or null if no minimum time limit.

setMinSelectableTime

public void setMinSelectableTime(java.util.GregorianCalendar minTime)
                          throws java.lang.IllegalArgumentException
Set the minimum date/time that can be selected with the picker. This method restricts the user from browsing the calendar beyond the given date/time. null should be passed to remove any previously set limit. If the current selected time is less than the minimum time, the current selected time is set to the minimum time.

Parameters:
minTime - Minimum time that can be selected in DateTimePicker. null can be passed to remove minimum limit.
Throws:
java.lang.IllegalArgumentException - If minTime is greater than maxSelectableTime
See Also:
setDateUnavailabilityModel(com.lavantech.gui.comp.DateUnavailabilityModel)

getMaxSelectableTime

public java.util.GregorianCalendar getMaxSelectableTime()
Returns the maximum time that can be selected in the date time picker. If there is no maximum time limit, null is returned.

Returns:
GregorianCalendar Maximum time that can be selected or null if no maximum time limit.

setMaxSelectableTime

public void setMaxSelectableTime(java.util.GregorianCalendar maxTime)
                          throws java.lang.IllegalArgumentException
Set the maximum time that can be selected with the picker. This method restricts the user from browsing the calendar beyond the give date/time. null should be passed to remove any previously set limit. If the current selected time is greater than the maximum time, the current selected time is set to the maximum time.

Parameters:
maxTime - Maximum time that can be selected in DateTimePicker. null can be passed to remove maximum limit.
Throws:
java.lang.IllegalArgumentException - If maxTime is less than minSelectableTime
See Also:
setDateUnavailabilityModel(com.lavantech.gui.comp.DateUnavailabilityModel)

getPattern

public java.lang.String getPattern()
Returns the pattern used for displaying in the selected date/time.

Returns:
The pattern string for displaying the selected date/time. The format string is in the syntax used in java.text.SimpleDateFormat.

setPattern

public void setPattern(java.lang.String pattern)
Set the pattern for displaying in the selected date/time.

Parameters:
pattern - The pattern string for displaying the selected date/time. The pattern string should be in the syntax used in java.text.SimpleDateFormat.

setFont

public void setFont(java.awt.Font font)
Set the font for this component.

Parameters:
font - the desired Font for this component

setForeground

public void setForeground(java.awt.Color fg)
Set the foreground color of this component.

Parameters:
fg - the desired foreground Color.

setToolTipText

public void setToolTipText(java.lang.String text)
Set the tooltip text for this component.

Parameters:
text - Tooltip text.

setBackground

public void setBackground(java.awt.Color bg)
Set the background color of this component.

Parameters:
bg - the desired background Color.

setEditable

public void setEditable(boolean editable)
Sets whether the DateTimePicker is editable through Keyboard


isEditable

public boolean isEditable()
Returns whether the DateTimePicker is editable through Keyboard


setEnabled

public void setEnabled(boolean enabled)
Sets whether or not this picker is enabled. A DateTimePicker that is enabled responds to user input, while a DateTimePicker that is not enabled doesn't respond to any user input.


getDisplayCalendar

public boolean getDisplayCalendar()
Returns whether Calendar will be displayed for Date Modification.


setDisplayCalendar

public void setDisplayCalendar(boolean disp)
Sets whether Calendar will be displayed for Date Modification. Both DisplayCalendar and DisplayClock cannot be false. If DisplayClock is already false and this method is called to set DisplayCalendar also to false, then DisplayClock will be set to true.


getDisplayClock

public boolean getDisplayClock()
Returns whether Clock will be displayed for Time Modification.


setDisplayClock

public void setDisplayClock(boolean disp)
Sets whether Clock will be displayed for Time Modification. Both DisplayCalendar and DisplayClock cannot be false. If DisplayCalendar is already false and this method is called to set DisplayClock also to false, then DisplayCalendar will be set to true.


isDateRollOverByClockEnabled

public boolean isDateRollOverByClockEnabled()
Returns whether the analog clock time change can affect the Date(Increment date when needle is moved past 23:59:59 in the clockwise direction and decrement date when needle is moved past 00:00:00 in the anti-clockwise direction. This date roll over will happen only when the Clock time is changed by dragging the clock needles. The default value is true.


setDateRollOverByClockEnabled

public void setDateRollOverByClockEnabled(boolean roll)
Sets whether the analog clock time change can affect the Date(Increment date when needle is moved past 23:59:59 in the clockwise direction and decrement date when needle is moved past 00:00:00 in the anti-clockwise direction. This date roll over will happen only when the Clock time is changed by dragging the clock needles. The default value is true.


isDateTimePopupAutoCancelEnabled

public boolean isDateTimePopupAutoCancelEnabled()
Returns whether the Date and Time popup window will be automatically cancelled when the user clicks on some other component in the same window as the DateTimePicker. The auto cancel is only valid for mouse clicks. If the Component is moved or resized, the Popup will still be closed. The default value is true.


setDateTimePopupAutoCancelEnabled

public void setDateTimePopupAutoCancelEnabled(boolean enable)
Sets whether the Date and Time popup window will be automatically cancelled when the user clicks on some other component in the same window as the DateTimePicker. The auto cancel is only valid for mouse clicks. If the Component is moved or resized, the Popup will still be closed. The default value is true.


getPopupModal

public boolean getPopupModal()
Returns whether the popup window for the DateTimePicker will be modal or not.


setPopupModal

public void setPopupModal(boolean modal)
Sets whether the popup window for the DateTimePicker wll be modal or not.


isDisplayTodayButton

public boolean isDisplayTodayButton()
Returns whether a today button will be displayed to change calendar to today's date.


setDisplayTodayButton

public void setDisplayTodayButton(boolean enable)
Sets whether a today button will be displayed to change calendar to today's date.


isDisplayNowButton

public boolean isDisplayNowButton()
Returns whether a now button will be displayed to change calendar to current date and time.


setDisplayNowButton

public void setDisplayNowButton(boolean enable)
Sets whether a today button will be displayed to change calendar to current date and time.


isDisplayClearButton

public boolean isDisplayClearButton()
Returns whether a Clear button will be displayed to clear the date time selection. When cleared, getDate() and getCalender() will return null.


setDisplayClearButton

public void setDisplayClearButton(boolean enable)
Sets whether a Clear button will be displayed to clear the date time selection. When cleared, getDate() and getCalender() will return null.


getDateUnavailabilityModel

public DateUnavailabilityModel getDateUnavailabilityModel()
Returns the DateUnavailabilityModel for the CalendarPanel in the Picker. If no DateUnavailabilityModel is set before or Display Calendar is not enabled, the return value will be null.


setDateUnavailabilityModel

public void setDateUnavailabilityModel(DateUnavailabilityModel model)
Sets the DateUnavailabilityModel for the CalendarPanel in the Picker. DateUnavailabilityModel provides a list of unavailable dates that will be disabled for selection in the CalendarPanel.


getCalendarPanel

public CalendarPanel getCalendarPanel()
Returns the CalendarPanel used in the picker popup.


getTimePanel

public TimePanel getTimePanel()
Returns the TimePanel used in the picker poup.


getDate

public java.util.Date getDate()
Returns the current selected Date.


setDate

public void setDate(java.util.Date date)
Set the selected Date and Time. Use setCalendar to set TimeZone.

Parameters:
date - Date to be selected

getCalendar

public java.util.GregorianCalendar getCalendar()
Returns the current selected Date, Time and Timezone.

Returns:
Calendar with the selected Date, Time and Timezone.

setCalendar

public void setCalendar(java.util.GregorianCalendar cal)
                 throws java.lang.IllegalArgumentException
Set the selected Date, Time and Timezone.

Parameters:
cal - Calendar to use to set the selected Date, Time and Timezone.
Throws:
java.lang.IllegalArgumentException - If min or max time limit is set and the given time is beyond the set limit.

getPopupPanel

public javax.swing.JPanel getPopupPanel()
Returns the Panel that is used in the Popup Window. The Popup Panel has the Calendar Panel and Time Panel in it.


getDropDownButton

public javax.swing.JButton getDropDownButton()
Returns the drop down button used in the picker


getRenderer

public javax.swing.JButton getRenderer()
Returns the Renderer(Used in non editable mode) that is used by the Picker.


getEditor

public javax.swing.JFormattedTextField getEditor()
Returns the Editor(Used in editable mode) that is used by the Picker.


addActionListener

public void addActionListener(java.awt.event.ActionListener ls)
Adds an ActionListener. The ActionListener gets notified each time the date or time is changed.


removeActionListener

public void removeActionListener(java.awt.event.ActionListener ls)
Removes an ActionListener.


addEditorListener

public void addEditorListener(com.lavantech.gui.comp.PickerEditorListener ls)
Adds an PickerEditorListener. The PickerEditorListener gets notified on the editor events.


removeEditorListener

public void removeEditorListener(com.lavantech.gui.comp.PickerEditorListener ls)
Removes an PickerEditorListener.


addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener for this Date Time Picker.


removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener for this Date Time Picker.