JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.field.validate
Interface PopupFieldEditor

All Superinterfaces:
Serializable
All Known Implementing Classes:
JCDateTimeValidator.DateTimePopup

public interface PopupFieldEditor
extends Serializable

Interface for writing popup field editors.


Method Summary
 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.
 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.
 

Method Detail

getEditorComponent

public JComponent getEditorComponent()
Returns the component in the popup.


addPopupListener

public 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.


removePopupListener

public void removePopupListener(com.klg.jclass.util.swing.JCPopupListener l)
Removes a JCPopupListener.


setValue

public void setValue(Object value)
Sets the value in the popup component.


processKeyEvent

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


setLocale

public void setLocale(Locale locale)
Sets the locale being used by the popup

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

Parameters:
f - the new Font for the popup

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