JClass 4.5.0 API
Documentation

com.klg.jclass.field
Class JCPopupField

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JComboBox
                          |
                          +--com.klg.jclass.field.JCComboField
                                |
                                +--com.klg.jclass.field.JCPopupField
Direct Known Subclasses:
DSdbPopupField, JBdbPopupField, JCPopupFieldCellEditor, JCPopupFieldCellEditorRenderer, JCPopupFieldCellRenderer, VCdbPopupField

public class JCPopupField
extends JCComboField
implements JCPopupListener, com.klg.jclass.util.value.JCValueListener

JCPopupField is subclassed from JCComboField. It uses a combo field to display a monthly calendar when the JCDateTimeValidator is used. Only this JClass Field validator implements the popup; however, you can write your own validator to make use of the popup in other ways.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JComboBox
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager
 
Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Field Summary
protected  PopupFieldEditor popupEditor
           
 
Fields inherited from class com.klg.jclass.field.JCComboField
field, required, text, version
 
Fields inherited from class javax.swing.JComboBox
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder
 
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
 
Constructor Summary
JCPopupField()
          Constructs an empty JCPopupField.
JCPopupField(Class c)
          Constructs an empty JCPopupField which expects an object of the specified class.
JCPopupField(Class c, JCValidator v)
          Constructs an empty JCPopupField which expects an object of the specified class and which uses the specified validator.
JCPopupField(com.klg.jclass.util.value.JCValueModel m)
          Constructs an empty JCPopupField which uses the specified value model to contain its value.
JCPopupField(com.klg.jclass.util.value.JCValueModel m, JCValidator v)
          Constructs an empty JCPopupField which uses the specified value model to contain its value and which uses the specified validator.
 
Method Summary
 void commit(JCPopupEvent e)
          This method is used internally.
 PopupFieldEditor getPopupEditor()
          Returns the popup editor.
 Object getSelectedItem()
          Overridden since this method assumed that a combobox list always exists.
protected  ComboBoxUI inferLookAndFeelUI()
           
 void setPopupEditor(PopupFieldEditor popup)
          Sets the popup editor.
 void setUI(ComboBoxUI ui)
          Sets the look and feel for this component.
 void updateUI()
          Updates the look and feel for this component.
 void valueChanged(com.klg.jclass.util.value.JCValueEvent e)
          This method is used internally.
 void valueChanging(com.klg.jclass.util.value.JCValueEvent e)
          This method is used internally.
 
Methods inherited from class com.klg.jclass.field.JCComboField
add, addActionListener, addNotify, addPropertyChangeListener, addValueListener, commitEdit, createField, getAbout, getDataProperties, getInvalidInfo, getSelectOnEnter, getState, getTextFieldEditor, getValidator, getValue, getValueModel, isRequired, removeActionListener, removePropertyChangeListener, removeValueListener, setAbout, setBackground, setDataProperties, setForeground, setInvalidInfo, setItems, setRequired, setSelectOnEnter, setValidator, setValue, setValueModel
 
Methods inherited from class javax.swing.JComboBox
actionPerformed, addItem, addItemListener, configureEditor, contentsChanged, createDefaultKeySelectionManager, fireActionEvent, fireItemStateChanged, getAccessibleContext, getActionCommand, getEditor, getItemAt, getItemCount, getKeySelectionManager, getMaximumRowCount, getModel, getRenderer, getSelectedIndex, getSelectedObjects, getUI, getUIClassID, hidePopup, insertItemAt, installAncestorListener, intervalAdded, intervalRemoved, isEditable, isFocusTraversable, isLightWeightPopupEnabled, isPopupVisible, paramString, processKeyEvent, removeAllItems, removeItem, removeItemAt, removeItemListener, selectedItemChanged, selectWithKeyChar, setActionCommand, setEditable, setEditor, setEnabled, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPopupVisible, setRenderer, setSelectedIndex, setSelectedItem, showPopup
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setFont, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setCursor, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

popupEditor

protected PopupFieldEditor popupEditor
Constructor Detail

JCPopupField

public JCPopupField()
Constructs an empty JCPopupField.

JCPopupField

public JCPopupField(Class c)
Constructs an empty JCPopupField which expects an object of the specified class.

JCPopupField

public JCPopupField(Class c,
                    JCValidator v)
Constructs an empty JCPopupField which expects an object of the specified class and which uses the specified validator.

JCPopupField

public JCPopupField(com.klg.jclass.util.value.JCValueModel m)
Constructs an empty JCPopupField which uses the specified value model to contain its value.

JCPopupField

public JCPopupField(com.klg.jclass.util.value.JCValueModel m,
                    JCValidator v)
Constructs an empty JCPopupField which uses the specified value model to contain its value and which uses the specified validator.
Method Detail

inferLookAndFeelUI

protected ComboBoxUI inferLookAndFeelUI()

setPopupEditor

public void setPopupEditor(PopupFieldEditor popup)
Sets the popup editor.

getPopupEditor

public PopupFieldEditor getPopupEditor()
Returns the popup editor.

commit

public void commit(JCPopupEvent e)
This method is used internally. You should not have to call it.
Specified by:
commit in interface JCPopupListener

valueChanging

public void valueChanging(com.klg.jclass.util.value.JCValueEvent e)
This method is used internally. You should not have to call it.
Specified by:
valueChanging in interface com.klg.jclass.util.value.JCValueListener

valueChanged

public void valueChanged(com.klg.jclass.util.value.JCValueEvent e)
This method is used internally. You should not have to call it.
Specified by:
valueChanged in interface com.klg.jclass.util.value.JCValueListener

setUI

public void setUI(ComboBoxUI ui)
Sets the look and feel for this component. This method is used internally. You should not have to call it.
Overrides:
setUI in class JCComboField

updateUI

public void updateUI()
Updates the look and feel for this component. This method is used internally. You should not have to call it.
Overrides:
updateUI in class JCComboField

getSelectedItem

public Object getSelectedItem()
Overridden since this method assumed that a combobox list always exists. Do not call this method directly.
Overrides:
getSelectedItem in class JComboBox

Copyright© 1999-2000 KL Group Inc.
All rights reserved.