public class ClassBrowseField extends AbstractChoiceField<java.lang.String> implements EnvStorable
javax.swing.JComboBox.AccessibleJComboBox, javax.swing.JComboBox.KeySelectionManager
javax.swing.JComponent.AccessibleJComponent
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
ClassBrowseField(ApplicationContext ctx,
NlsDatabaseKey nameKey,
boolean isNotNull) |
Modifier and Type | Method and Description |
---|---|
void |
addEnvProperties(EnvMap props)
This method is called on the implementing class in order to give it a chance
to fill the passed Properties object with key-value pairs that should be
saved in the environment properties file.
|
protected void |
applyInsertDefaultValue(java.lang.Object value) |
protected java.lang.String |
createEnvKey() |
java.lang.String[] |
findClassesInPackage(java.lang.String packageName,
ClassFilter classFilter,
boolean isIncludePackages)
Returns the names of the classes found in the given Package.
|
protected void |
fireActionEvent() |
ClassFilter |
getClassFilter() |
java.lang.String |
getEditorText() |
java.lang.String |
getValue()
Returns the field value as an Object - or null if the field is empty.
|
protected boolean |
hasNullItem()
Defines whether this ChoiceField should have a NullItem.
|
void |
initFromEnvStore(EnvStore envStore) |
boolean |
isEmpty()
Tests if the field has input.
|
void |
setClassFilter(ClassFilter classFilter) |
void |
setEditorText(java.lang.String text) |
void |
setNotNull(boolean state)
Sets the field to not-null.
|
void |
setValue(java.lang.String obj)
Sets the field value to the given object.
|
java.lang.String |
toValue(java.lang.Object o)
Tries to convert any object value to the target data type of this field.
|
clear, clearItems, createNullItem, createValue, findItemByText, fire, getIntValue, getJLabel, getLabel, getName, getNlsKey, getNullItem, getStringValue, getUnitComponent, getWidget, inputEquals, inputEquals, inputEquals, inputEquals, isLocked, isNotNull, isNullSelected, isPrimaryKey, isRecordTypeField, isStretchableX, isStretchableY, loadItems, loadItems, setColumnMaxChars, setInsertDefaultValue, setLocked, setModifyFlag, setPrimaryKey, setStretchableX, setStretchableY, setUnitComponent, setUnitString, setValueNumb, toString, toString
actionPerformed, addItems, addItems, contains, fireItemStateChanged, indexOf, isNumb, replaceItem, setNumb
actionPropertyChanged, addActionListener, addItem, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, contentsChanged, createActionPropertyChangeListener, createDefaultKeySelectionManager, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getAction, getActionCommand, getActionListeners, getEditor, getItemAt, getItemCount, getItemListeners, getKeySelectionManager, getMaximumRowCount, getModel, getPopupMenuListeners, getPrototypeDisplayValue, getRenderer, getSelectedIndex, getSelectedItem, getSelectedObjects, getUI, getUIClassID, hidePopup, insertItemAt, installAncestorListener, intervalAdded, intervalRemoved, isEditable, isLightWeightPopupEnabled, isPopupVisible, paramString, processKeyEvent, removeActionListener, removeAllItems, removeItem, removeItemAt, removeItemListener, removePopupMenuListener, selectedItemChanged, selectWithKeyChar, setAction, setActionCommand, setEditable, setEditor, setEnabled, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPopupVisible, setPrototypeDisplayValue, setRenderer, setSelectedIndex, setSelectedItem, setUI, showPopup, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public ClassBrowseField(ApplicationContext ctx, NlsDatabaseKey nameKey, boolean isNotNull)
public ClassFilter getClassFilter()
public void setClassFilter(ClassFilter classFilter)
public void addEnvProperties(EnvMap props)
EnvStorable
addEnvProperties
in interface EnvStorable
public void initFromEnvStore(EnvStore envStore)
initFromEnvStore
in interface EnvStorable
protected java.lang.String createEnvKey()
public void setNotNull(boolean state)
Field
setNotNull
in interface Field<java.lang.String>
setNotNull
in class AbstractChoiceField<java.lang.String>
protected boolean hasNullItem()
AbstractChoiceField
hasNullItem
in class AbstractChoiceField<java.lang.String>
public void setEditorText(java.lang.String text)
public java.lang.String getEditorText()
public boolean isEmpty()
Field
isEmpty
in interface Field<java.lang.String>
isEmpty
in class AbstractChoiceField<java.lang.String>
public java.lang.String getValue()
Field
getValue
in interface Field<java.lang.String>
getValue
in class AbstractChoiceField<java.lang.String>
public void setValue(java.lang.String obj)
Field
setValue
in interface Field<java.lang.String>
setValue
in class AbstractChoiceField<java.lang.String>
protected void fireActionEvent()
fireActionEvent
in class ZComboBox
protected void applyInsertDefaultValue(java.lang.Object value)
applyInsertDefaultValue
in class AbstractChoiceField<java.lang.String>
public java.lang.String toValue(java.lang.Object o)
Field
IllegalArgumentException
is thrown when the type is not supported by the field.toValue
in interface Field<java.lang.String>
toValue
in class AbstractChoiceField<java.lang.String>
public java.lang.String[] findClassesInPackage(java.lang.String packageName, ClassFilter classFilter, boolean isIncludePackages) throws java.lang.Exception
java.lang.Exception
Copyright © 2014 EsprIT-Systems. All Rights Reserved.