E - the type of the elements of this combo boxpublic class FormComboBox<E> extends JComboBox<E> implements FormComponent, FocusListener
valueEnteredOnSelect is set to false the valueEntered
event will only be fired on focus lost and not whenever the selection is changed.FormFieldComboBox.| Modifier and Type | Class and Description |
|---|---|
class |
FormComboBox.MultiKeySelectionManager<E>
The standard key selection manager selects the first item that starts with
a given character.
This MultiKeySelectionManager keeps an internal "lead-string" of possibly more than one char. |
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManagerJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyactionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminderlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
FormComboBox()
Creates a
FormComboBox with a default data model. |
FormComboBox(ComboBoxModel<E> model)
Creates a
FormComboBox that takes its items from an
existing ComboBoxModel. |
FormComboBox(E[] items)
Creates a
FormComboBox that contains the elements
in the specified array. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Overridden to do nothing!
|
void |
addAllItems(Collection<E> items)
Adds a collection of items to the list of objects.
|
void |
addAllItems(E[] items)
Adds an array of items to the list of objects.
|
void |
addItem(E item) |
void |
addValueListener(ValueListener listener)
Adds a value listener that implements the binding between this component
and the data.
|
void |
clearValueShownModified()
Clears the value shown status.
May be used by components that update the value shown programmatically. |
protected void |
fireActionEvent()
Overridden for the reason of actionEvents not being triggered by setFormValue().
|
void |
fireValueChanged()
Fires all value listeners registered on this component
invoking their
valueChanged-handler.This method is invoked whenever the data has been changed and that change should be reflected in the view. |
void |
fireValueEntered()
Fires all listeners registered on this component
invoking their
valueEntered-handler.This method is invoked whenever the user edited the view and that change should be reflected in the data. |
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
Object[] |
getAllItems()
Gets the current array of items.
|
FormComponentBinding |
getBinding()
Gets the binding.
|
String |
getBindingPath()
Gets the binding path.
|
String |
getComponentPath()
Gets the component path.
|
FocusTraversalGroup |
getFocusTraversalGroup()
Gets the focus traversal group for this component.
|
E |
getFormValue()
Retrieves the value from this component.
The method is used to update the data model if the view has changed because the user edited it. |
String |
getFormValueText()
Gets the text representation of the current selection.
|
String |
getHelpURL()
Gets the online-help URL.
|
int |
getItemIndexWithLeadString(String lead,
ComboBoxModel<E> model)
Returns the index of the first/best matching selection according to a string
|
long |
getLeadKeyTimeout()
Gets the timeout for multi key selections.
|
Window |
getParentWindow()
Gets the parent window of this component.
|
ListCellRenderer<E> |
getPopupRenderer()
Gets the popup renderer.
|
PropertyGroup |
getPropertyGroup()
Gets the property group for this component.
|
String |
getToolTipText() |
Object |
getValueShown()
Gets the value shown to the user.
This is the visual representation, not necessarily the model's value. |
void |
invalidateParentInfo()
Invalidates all container-relevant (cached) information
for the hierarchy of this component's parents.
For optimization purposes. |
boolean |
isAllowDeselect()
Returns the eselect feature for non-editable comboboxes
|
boolean |
isAutoUpdate()
Returns whether the auto-update feature is enabled.
|
boolean |
isBindable()
Determines whether this component is bindable.
|
boolean |
isCellEditorUsage()
Returns whether this component is used as a cell editor.
|
boolean |
isChangeable()
Returns if this component is changeable.
|
boolean |
isFireRunning()
Checks whether a fire-method is running.
|
boolean |
isFormTraversable()
Returns whether this component is form traversable or not.
|
boolean |
isHonourChangeable()
Returns whether this component should honour the changeable-attribute or not.
|
boolean |
isMandatory()
Gets the mandatory option.
|
boolean |
isMultiKeySelectionManager()
Returns whether multi-key selection is enabled.
|
boolean |
isShortLongPopupEnabled()
Returns whether short/long text popup renderer enabled.
|
boolean |
isSmartValueEntered()
Returns whether the model should only be updated
if the component's value really changed.
The default is true. |
boolean |
isTriggerValueChangedEnabled()
Determines whether triggering value changes is enabled.
|
boolean |
isValueAdjusting()
Returns whether currently adjusting the value.
|
boolean |
isValueChanged()
Checks whether the contents have been changed since the last savepoint.
|
boolean |
isValueEnteredOnSelect()
Returns whether valueEntered is fired on select or focus lost (disabled by default).
|
boolean |
isValueShownModified()
Checks whether the currently shown value differs
from the initially shown.
Used to implement smartValueEntered. |
void |
prepareFocusLost()
Prepares for FOCUS_LOST.
Gives this component the opportunity to invoke fireValueEntered() earlier than FOCUS_LOST is really received. |
void |
processKeyEvent(KeyEvent e) |
void |
removeAllItems() |
void |
removeValueListener(ValueListener listener)
Remove a value listener.
|
void |
requestFocusLater()
Requests the keyboard focus for this component by appending
an event to the end of the event queue.
Applications should not use requestFocus() or requestFocusInWindow() unless the order in which the events are processed is unimportant. |
void |
saveValue()
Sets a savepoint for the data of this component.
Allows to decide whether the user has changed the data associated with this component or not. |
boolean |
selectWithLeadString(String lead)
Selects the list item that best corresponds to the specified String
and returns true, if there is an item corresponding
to that lead-string.
|
void |
setAllItems(Collection<E> items)
Replaces all items by a collection of objects.
|
void |
setAllItems(E[] items)
Replaces all items by an array of objects.
|
void |
setAllowDeselect(boolean allowDeselect)
Deselect feature for non-editable comboboxes
|
void |
setAutoUpdate(boolean autoupdate)
Sets the auto-update feature.
By default, all components update the data model if the view changes (due to certain events, for example focus lost). |
void |
setBindable(boolean bindable)
Sets whether this component is bindable.
|
void |
setBinding(FormComponentBinding binding)
Sets the binding.
|
void |
setBindingPath(String bindingPath)
Sets the path to bind this component to.
|
void |
setCellEditorUsage(boolean flag)
Sets a hint that this component is used as a cell editor.
Some components behave differently in tables than in forms, for example. |
void |
setChangeable(boolean changeable)
Set the component to be changeable.
This is a unified abstraction and will be translated to setEditable or setEnabled, whatever is appropriate to this component. |
void |
setComponentPath(String componentPath)
Sets the component path.
|
void |
setEditable(boolean editable) |
void |
setEnabled(boolean enabled) |
void |
setFireRunning(boolean running)
Sets a component's flag that a fire-method is currently running.
Used by the framework to minimize valueChanged/valueEntered processing. |
void |
setFocusTraversalGroup(FocusTraversalGroup group)
Sets the focus traversal group for this component.
|
void |
setFormTraversable(boolean formTraversable)
Sets whether this component is form traversable or not, i.e.
|
void |
setFormValue(Object item)
Sets a value in this component.
The method is used to update the view if the data has changed. |
void |
setFormValueIndex(int index)
Sets the formvalue by its index.
Avoids triggering fireValueEntered if used from application (use instead of setSelectedIndex()) |
boolean |
setFormValueText(String text)
Sets the form value by matching a given text with the objects
in the selection list
Tries to find the value in the object list according to its String-representation and select it if found. |
void |
setFormWrapWindow(FormWindow parent)
Sets the window that will fire a
FormWrapEvent when this
components loses the keyboard focus. |
void |
setHelpURL(String helpURL)
Sets the online-help URL.
If a help url is set for this component, a browser will be launched to show that url. |
void |
setHonourChangeable(boolean flag)
Sets whether this component should honour the changeable-attribute or not.
The default is true. |
void |
setLeadKeyTimeout(long leadKeyTimeout)
Sets the timeout for multi key selections.
|
void |
setMandatory(boolean mandatory)
Sets the mandatory option.
Mandatory fields are differently visualized. |
void |
setMultiKeySelectionManager(boolean flag)
Enables multi-key selection.
The default implementation installs the FormComboBox.MultiKeySelectionManager. |
void |
setPopupRenderer(ListCellRenderer<E> aRenderer)
Set the popup renderer.
By default, a JComboBox uses the same renderer for rendering the combobox itself (the selected item in the arrowButton). |
void |
setPropertyGroup(PropertyGroup group)
Sets the property group for this component.
|
void |
setShortLongPopupEnabled(boolean flag)
Enable the special
ShortLongText popup renderer.A special popupRenderer is implemented in the tentackle-plaf that supports ShortLongText-objects for a two-column popup-List. |
void |
setSmartValueEntered(boolean smartValueEntered)
Sets whether the model should only be updated
if the component's value really changed.
The default is true. |
void |
setTriggerValueChangedEnabled(boolean enabled)
Enables triggering value changes.
Disabling this feature may be necessary for model-agnostic components. |
void |
setValueAdjusting(boolean flag)
sets a flag that we are currently adjusting a value and
no fireValueEntered-Events should be triggered
|
void |
setValueEnteredOnSelect(boolean flag)
Enables valueEntered-Events for every selection change.
The default is to fire actionEvents for selection changes and valueEvents for leaving the field (i.e. |
void |
showErrorPopup(String message)
Shows the error popup for a given message.
The popup component used is an ErrorToolTip. |
void |
showHelp()
Displays online help for this component.
Usually triggered by KeyEvent.VK_F1 or VK_HELP or a button. |
void |
transferFocus()
Transfers keyboard focus forward to the logically next component.
|
void |
transferFocusBackward()
Transfers keyboard focus forward to the logically previous component.
|
void |
triggerValueChanged()
Promotes the fact that value changed to all
FormContainers this
component is a child of. |
void |
updateAllChangeable(boolean allChangeable)
Updates the container's changeable flag.
|
boolean |
wasFocusGainedFromTransfer()
Returns whether the keyboard focus was gained due to
FormComponent.transferFocus()
in the opposite component. |
boolean |
wasFocusGainedFromTransferBackward()
Returns whether the keyboard focus was gained due to
FormComponent.transferFocusBackward()
in the opposite component. |
boolean |
wasTransferFocus()
Returns whether this component lost the keyboard focus due to
FormComponent.transferFocus(). |
boolean |
wasTransferFocusBackward()
Returns whether this component lost the keyboard focus due to
FormComponent.transferFocusBackward(). |
boolean |
wasTransferFocusByEnter()
Returns whether this component lost the keyboard focus due to
KeyEvent.VK_ENTER. |
actionPropertyChanged, addActionListener, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, contentsChanged, createActionPropertyChangeListener, createDefaultKeySelectionManager, fireItemStateChanged, 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, processKeyBinding, removeActionListener, removeItem, removeItemAt, removeItemListener, removePopupMenuListener, selectedItemChanged, selectWithKeyChar, setAction, setActionCommand, setEditor, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPopupVisible, setPrototypeDisplayValue, setRenderer, setSelectedIndex, setSelectedItem, setUI, showPopup, updateUIaddAncestorListener, 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, 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, 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, updateadd, 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, validateTreeaction, 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, getName, 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, toString, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBaseline, hasFocuspublic FormComboBox(ComboBoxModel<E> model)
FormComboBox that takes its items from an
existing ComboBoxModel. Since the
ComboBoxModel is provided, a combo box created using
this constructor does not create a default combo box model and
may impact how the insert, remove and add methods behave.model - the ComboBoxModel that provides the
displayed list of itemsJComboBox.JComboBox(javax.swing.ComboBoxModel)public FormComboBox(E[] items)
FormComboBox that contains the elements
in the specified array. By default the first item in the array
(and therefore the data model) becomes selected.items - an array of objects to insert into the combo boxJComboBox.JComboBox(java.lang.Object[])public FormComboBox()
FormComboBox with a default data model.
The default data model is an empty list of objects.
Use addItem to add items.JComboBox.JComboBox()public void showErrorPopup(String message)
FormComponentErrorToolTip.showErrorPopup in interface FormComponentmessage - the message to be displayed, null to removepublic void processKeyEvent(KeyEvent e)
Overridden for keyboard shortcuts.
processKeyEvent in class JComboBox<E>public void actionPerformed(ActionEvent e)
Reason: pressing ENTER in editable comboboxes would store the "text" of the editorfield into the selectedItem. We don't need this nonsense because FormComboBoxes are able to distinguish between the text-value and the selected object due the data binding via valueListeners.
actionPerformed in interface ActionListeneractionPerformed in class JComboBox<E>e - the action eventfireActionEvent()protected void fireActionEvent()
fireActionEvent in class JComboBox<E>actionPerformed(java.awt.event.ActionEvent)public void setEditable(boolean editable)
Overridden due to focus handling
setEditable in class JComboBox<E>editable - true if combobox is editablepublic void setAutoUpdate(boolean autoupdate)
FormComponentsetAutoUpdate in interface FormComponentautoupdate - true if auto update the data (default), false if notpublic boolean isAutoUpdate()
FormComponentisAutoUpdate in interface FormComponentpublic boolean setFormValueText(String text)
text - the string to matchpublic String getFormValueText()
public void setFormValueIndex(int index)
index - the object index, -1 to deselectpublic void addAllItems(E[] items)
items - the array of items to addpublic void addAllItems(Collection<E> items)
items - the collection of items to addpublic void setAllItems(E[] items)
items - the array of itemspublic void setAllItems(Collection<E> items)
items - the collection of itemspublic Object[] getAllItems()
public void removeAllItems()
Overridden to turn off annoying actionEvents during updates
removeAllItems in class JComboBox<E>public void addItem(E item)
Overridden to turn off annoying actionEvents during updates
public void setValueEnteredOnSelect(boolean flag)
flag - true to fire on select, false only on focus lostpublic boolean isValueEnteredOnSelect()
public void setValueAdjusting(boolean flag)
flag - true if is adjustingpublic boolean isValueAdjusting()
public boolean selectWithLeadString(String lead)
lead - the first chars types by userpublic int getItemIndexWithLeadString(String lead, ComboBoxModel<E> model)
lead - the first chars types by usermodel - the data modelpublic void setMultiKeySelectionManager(boolean flag)
FormComboBox.MultiKeySelectionManager.flag - true to enable multi key selection.public boolean isMultiKeySelectionManager()
public long getLeadKeyTimeout()
public void setLeadKeyTimeout(long leadKeyTimeout)
leadKeyTimeout - the timeout in mspublic boolean isAllowDeselect()
public void setAllowDeselect(boolean allowDeselect)
allowDeselect - true if backspace/delete deselects (default), false = ignore keyspublic void setPopupRenderer(ListCellRenderer<E> aRenderer)
Notice that this attribute will only be honoured if one of the tentackle plafs are used.
aRenderer - the popup renderer, null to disablepublic ListCellRenderer<E> getPopupRenderer()
public void setShortLongPopupEnabled(boolean flag)
ShortLongText popup renderer.flag - true if enable short/long text popup rendererpublic boolean isShortLongPopupEnabled()
public Object getValueShown()
FormComponentgetValueShown in interface FormComponentpublic boolean isValueShownModified()
FormComponentisValueShownModified in interface FormComponentpublic void clearValueShownModified()
FormComponentclearValueShownModified in interface FormComponentpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void requestFocusLater()
FormComponentrequestFocusLater in interface FormComponentpublic void addValueListener(ValueListener listener)
FormComponentaddValueListener in interface FormComponentlistener - the value listener to addpublic void removeValueListener(ValueListener listener)
FormComponentremoveValueListener in interface FormComponentlistener - the value listener to removepublic void fireValueChanged()
FormComponentvalueChanged-handler.fireValueChanged in interface FormComponentpublic void fireValueEntered()
valueEntered-handler.note: valueEntered will *ONLY* be fired if the last actionEvent did not fire for the same selectedItem (see fireActionEvent)
fireValueEntered in interface FormComponentpublic void setFormValue(Object item)
Notice: this will compare the objects by "equals" as opposed to setSelectedItem()!
setFormValue in interface FormComponentitem - is the object to set, null means deselectpublic E getFormValue()
Notice: if the combobox is editable the value will be read from the editor field. Otherwise it's read from the selected item.
getFormValue in interface FormComponentpublic void saveValue()
FormComponentsaveValue in interface FormComponentFormComponent.isValueChanged()public boolean isValueChanged()
FormComponentisValueChanged in interface FormComponentFormComponent.saveValue()public void setTriggerValueChangedEnabled(boolean enabled)
FormComponentsetTriggerValueChangedEnabled in interface FormComponentenabled - true if invoke FormComponent.triggerValueChanged() on each change (default), false if not.public boolean isTriggerValueChangedEnabled()
FormComponentisTriggerValueChangedEnabled in interface FormComponentFormComponent.triggerValueChanged() on each change (default), false if not.public void triggerValueChanged()
FormComponentFormContainers this
component is a child of.triggerValueChanged in interface FormComponentpublic void setChangeable(boolean changeable)
FormChangeablesetChangeable in interface FormChangeablechangeable - true the user can edit the data, false if show onlypublic boolean isChangeable()
FormChangeableisChangeable in interface FormChangeablepublic void setHonourChangeable(boolean flag)
FormChangeablesetHonourChangeable in interface FormChangeableflag - true if honour the changeable attribute, false if notpublic boolean isHonourChangeable()
FormChangeableisHonourChangeable in interface FormChangeablepublic void updateAllChangeable(boolean allChangeable)
FormChangeableComponent
Whenever FormChangeable.setChangeable(boolean) is invoked
all of the container's components get this method invoked.
updateAllChangeable in interface FormChangeableComponentallChangeable - true if changeablepublic void setEnabled(boolean enabled)
setEnabled in class JComboBox<E>public void setFireRunning(boolean running)
FormComponentsetFireRunning in interface FormComponentrunning - true if some fire-method is runningpublic boolean isFireRunning()
FormComponentisFireRunning in interface FormComponentpublic void setCellEditorUsage(boolean flag)
FormComponentsetCellEditorUsage in interface FormComponentflag - true if component is a cell editor, false if not.public boolean isCellEditorUsage()
FormComponentisCellEditorUsage in interface FormComponentpublic void prepareFocusLost()
Implementation does nothing.
prepareFocusLost in interface FormComponentpublic void setFormWrapWindow(FormWindow parent)
FormComponentFormWrapEvent when this
components loses the keyboard focus. When fired the reference
to the window is cleared.setFormWrapWindow in interface FormComponentparent - the window (usually the parent window of this component).public String getHelpURL()
FormComponentgetHelpURL in interface FormComponentpublic void setHelpURL(String helpURL)
FormComponentsetHelpURL in interface FormComponenthelpURL - the help urlFormUtilities.openHelpURL(Component)public void showHelp()
FormComponentshowHelp in interface FormComponentpublic Window getParentWindow()
FormComponentgetParentWindow in interface FormComponentpublic void invalidateParentInfo()
FormComponentinvalidateParentInfo in interface FormComponentpublic String getToolTipText()
getToolTipText in class JComponentpublic void transferFocus()
FormComponenttransferFocus in interface FormComponenttransferFocus in class ComponentFormFocusTraversalPolicypublic void transferFocusBackward()
FormComponenttransferFocusBackward in interface FormComponenttransferFocusBackward in class ComponentFormFocusTraversalPolicypublic boolean wasTransferFocus()
FormComponentFormComponent.transferFocus().wasTransferFocus in interface FormComponentpublic boolean wasTransferFocusBackward()
FormComponentFormComponent.transferFocusBackward().wasTransferFocusBackward in interface FormComponentpublic boolean wasFocusGainedFromTransfer()
FormComponentFormComponent.transferFocus()
in the opposite component.wasFocusGainedFromTransfer in interface FormComponentFormFocusTraversalPolicypublic boolean wasFocusGainedFromTransferBackward()
FormComponentFormComponent.transferFocusBackward()
in the opposite component.wasFocusGainedFromTransferBackward in interface FormComponentFormFocusTraversalPolicypublic boolean wasTransferFocusByEnter()
FormComponentKeyEvent.VK_ENTER.wasTransferFocusByEnter in interface FormComponentpublic void setFormTraversable(boolean formTraversable)
FormComponentsetFormTraversable in interface FormComponentformTraversable - true if traversable, false if notpublic boolean isFormTraversable()
FormComponentisFormTraversable in interface FormComponentpublic void setFocusTraversalGroup(FocusTraversalGroup group)
FormComponentsetFocusTraversalGroup in interface FormComponentgroup - the focus traversal grouppublic FocusTraversalGroup getFocusTraversalGroup()
FormComponentgetFocusTraversalGroup in interface FormComponentpublic void setPropertyGroup(PropertyGroup group)
FormComponentsetPropertyGroup in interface FormComponentgroup - the property grouppublic PropertyGroup getPropertyGroup()
FormComponentgetPropertyGroup in interface FormComponentpublic void setMandatory(boolean mandatory)
FormComponentsetMandatory in interface FormComponentmandatory - true if mandatorypublic boolean isMandatory()
FormComponentisMandatory in interface FormComponentpublic void setComponentPath(String componentPath)
FormComponentThe path is <declaring-class-name>.<field-name>. Example "de.krake.invoicer.InvoicePanel.customerNumberField".
Notice: the component path is set during binding.
setComponentPath in interface FormComponentcomponentPath - the component pathpublic String getComponentPath()
FormComponentgetComponentPath in interface FormComponentpublic void setBindingPath(String bindingPath)
FormComponentUsually the binding path will be determined from the components declared name. However, it can be set programatically as well.
setBindingPath in interface FormComponentbindingPath - the binding path, for ex. "invoiceNumber", null if autobindingBinderpublic String getBindingPath()
FormComponentgetBindingPath in interface FormComponentpublic void setBinding(FormComponentBinding binding)
FormComponentsetBinding in interface FormComponentbinding - the binding, null if none.public FormComponentBinding getBinding()
FormComponentgetBinding in interface FormComponentpublic void setBindable(boolean bindable)
FormComponentFormComponents are bindable by default.
setBindable in interface FormComponentbindable - true if bindable, else not eligible for the binding processpublic boolean isBindable()
FormComponentisBindable in interface FormComponentpublic void setSmartValueEntered(boolean smartValueEntered)
FormComponentsetSmartValueEntered in interface FormComponentsmartValueEntered - true if optimize, false if always update the modelpublic boolean isSmartValueEntered()
FormComponentisSmartValueEntered in interface FormComponentTentackle - a domain driven enterprise framework