JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.field.validate
Class JCDateTimeValidator.DateTimePopup

java.lang.Object
  |
  +--com.klg.jclass.field.validate.JCDateTimeValidator.DateTimePopup
All Implemented Interfaces:
ActionListener, EventListener, PopupFieldEditor, Serializable
Enclosing class:
JCDateTimeValidator

public class JCDateTimeValidator.DateTimePopup
extends Object
implements PopupFieldEditor, ActionListener

See Also:
Serialized Form

Constructor Summary
JCDateTimeValidator.DateTimePopup()
           
JCDateTimeValidator.DateTimePopup(int chooserType, String[] months, String[] shortMonths, String[] days)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 void addPopupListener(com.klg.jclass.util.swing.JCPopupListener l)
          Add a JCPopupListener to the popup to inform when the value in the popup component has been committed.
 JCDateTimeValidator.DateTimeChooser getDateTimeChooser()
          Return the date/time chooser component
 JComponent getEditorComponent()
          Returns the component in the popup.
 boolean processKeyEvent(KeyEvent e)
          Process key events passed from the ComboBox and returns whether or not the popup processed the key.
 void removePopupListener(com.klg.jclass.util.swing.JCPopupListener l)
          Removes a JCPopupListener.
 void setFont(Font f)
          Sets the Font of the popup.
 void setLocale(Locale locale)
          Sets the locale being used by the popup.
 void setValue(Object value)
          Sets the value in the popup component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCDateTimeValidator.DateTimePopup

public JCDateTimeValidator.DateTimePopup()

JCDateTimeValidator.DateTimePopup

public JCDateTimeValidator.DateTimePopup(int chooserType,
                                         String[] months,
                                         String[] shortMonths,
                                         String[] days)
Method Detail

getEditorComponent

public JComponent getEditorComponent()
Description copied from interface: PopupFieldEditor
Returns the component in the popup.

Specified by:
getEditorComponent in interface PopupFieldEditor

addPopupListener

public void addPopupListener(com.klg.jclass.util.swing.JCPopupListener l)
Description copied from interface: PopupFieldEditor
Add a JCPopupListener to the popup to inform when the value in the popup component has been committed.

Specified by:
addPopupListener in interface PopupFieldEditor

removePopupListener

public void removePopupListener(com.klg.jclass.util.swing.JCPopupListener l)
Description copied from interface: PopupFieldEditor
Removes a JCPopupListener.

Specified by:
removePopupListener in interface PopupFieldEditor

setValue

public void setValue(Object value)
Description copied from interface: PopupFieldEditor
Sets the value in the popup component.

Specified by:
setValue in interface PopupFieldEditor

processKeyEvent

public boolean processKeyEvent(KeyEvent e)
Description copied from interface: PopupFieldEditor
Process key events passed from the ComboBox and returns whether or not the popup processed the key.

Specified by:
processKeyEvent in interface PopupFieldEditor

setLocale

public void setLocale(Locale locale)
Sets the locale being used by the popup. In turn, sets it on the chooser, which will set it on its child components.

Specified by:
setLocale in interface PopupFieldEditor
Parameters:
locale - the new locale to be used

setFont

public void setFont(Font f)
Sets the Font of the popup. This font gets propagated to the child components

Specified by:
setFont in interface PopupFieldEditor
Parameters:
f - the new Font for the popup

actionPerformed

public void actionPerformed(ActionEvent event)
Specified by:
actionPerformed in interface ActionListener

getDateTimeChooser

public JCDateTimeValidator.DateTimeChooser getDateTimeChooser()
Return the date/time chooser component

Returns:
The date/time chooser component being used.

Copyright © 2004 Quest Software Inc..
All rights reserved.