E - the type of the elements of this combo boxpublic class FormFieldComboBox<E> extends FormComboBox<E> implements FormFieldComponent
FormFieldComboBox is a FormComboBox with a
FormFieldComponent as its editor.FormComboBox.MultiKeySelectionManager<E>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_ALIGNMENTADJUST_LEFT, ADJUST_NONE, ADJUST_RIGHT, ADJUST_TRIM, CONVERT_LC, CONVERT_NONE, CONVERT_UCABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
FormFieldComboBox()
Creates a
FormFielComboBox for a default StringFormField. |
FormFieldComboBox(AbstractFormField editorField)
Creates a
FormFielComboBox for a given AbstractFormField. |
FormFieldComboBox(AbstractFormField editorField,
E[] items)
Creates a
FormFielComboBox for a given AbstractFormField. |
FormFieldComboBox(E[] items)
Creates a
FormFielComboBox for a default StringFormField. |
| Modifier and Type | Method and Description |
|---|---|
void |
clearText()
Clears the contents of this component.
|
String |
doFormat(Object object)
Does the formatting of the given object.
Renders the object and returns the string. |
void |
downRight()
Move the caret to the right side of field and if already there move to next field.
|
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 |
focusLost(FocusEvent e) |
char |
getAdjust()
Gets the current adjustment.
|
int |
getCaretPosition()
Gets the caret position.
|
int |
getColumns()
Gets the columns.
|
char |
getConvert()
Gets the current convesion
|
Function<String,String> |
getConverter()
Gets the current converter.
|
int |
getDefaultColumns()
Gets the default columns.
|
AbstractFormField |
getEditorField()
Gets the editor field.
|
String |
getErrorMessage()
Gets the parsing error message for the first error.
|
int |
getErrorOffset()
Gets the offset in this components text for the first parsing error.
|
char |
getFiller()
Gets the current fill char.
|
String |
getFormat()
Gets the format string.
|
int |
getHorizontalAlignment()
Gets the horizontal alignment.
|
String |
getInvalidChars()
Gets invalid characters.
|
int |
getMaxColumns()
Gets the maximum number of columns.
|
String |
getText()
Gets the text from the view of this component.
|
String |
getToolTipText()
Gets the tooltip text for this component.
|
String |
getValidChars()
Gets allowed characters.
|
Object |
getValueShown()
Gets the value shown to the user.
This is the visual representation, not necessarily the model's value. |
int |
getVerticalAlignment()
Gets the vertical alignment.
|
boolean |
isAutoNext()
Returns whether the auto-next feature is enabled.
|
boolean |
isAutoSelect()
Returns whether the auto-select feature is enabled.
|
boolean |
isAutoUpdate()
Returns whether the auto-update feature is enabled.
|
boolean |
isCaretLeft()
Returns whether carat is at leftmost position.
|
boolean |
isCaretRight()
Returns whether caret is at rightmost position.
|
boolean |
isEmpty()
Determines whether this component is empty.
|
boolean |
isEraseFirst()
Returns whether to erase the field after first setText().
|
boolean |
isInhibitAutoSelect()
Returns whether auto-select is inhibited (once).
|
boolean |
isOverwrite()
Gets the current override mode.
|
boolean |
isStartEditLeftmost()
Returns whether to start edit leftmost in this component (once).
|
void |
postActionEvent()
Invokes the action performed handler.
|
void |
requestFocus() |
boolean |
requestFocusInWindow() |
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. |
void |
setAdjust(char adjust)
Sets character adjustment.
By default the text input data is trimmed, i.e. |
void |
setAutoNext(boolean autonext)
Sets the auto-next feature.
If autonext is enabled the next component will automatically receive the focus if the maximum number of characters is reached. |
void |
setAutoSelect(boolean autoselect)
Sets the auto-select feature.
A component with autoselect enabled will automatically select all characters if the component gets the keyboard focus. |
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 |
setCaretLeft()
Sets the caret to leftmost position.
|
void |
setCaretPosition(int pos)
Sets the caret position.
|
void |
setCaretRight()
Sets the caret to rightmost position.
|
void |
setColumns(int columns)
Sets the number of columns in this component.
The visible width is adjusted according to the current font. |
void |
setConvert(char convert)
Sets character upper/lowercase conversion.
Notice that changing the character conversion will immediately convert. |
void |
setConverter(Function<String,String> converter)
Sets the string converter.
Besides the lower/uppercase conversion an optional converter may be set to translate characters. |
void |
setDefaultColumns(int columns)
Sets the default columns.
The method is mainly provided for GUI-designers and will change the displayed size if, and only if, setColumns() and setMaxColumns() has not been invoked yet. |
void |
setEditorField(AbstractFormField editorField)
Sets the editor field.
|
void |
setEraseFirst(boolean erasefirst)
Sets whether to erase the field after first setText().
|
void |
setErrorMessage(String errorMessage)
Sets the error message.
|
void |
setErrorOffset(int errorOffset)
Sets the error offset.
|
void |
setFiller(char filler)
Sets the fill char.
The fill char determines the adjustment of the text data. |
void |
setFormat(String format)
Sets the format string.
The format string is used to format the view of the data. |
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 |
setHorizontalAlignment(int alignment)
Sets the horizontal alignment.
|
void |
setInhibitAutoSelect(boolean inhibitAutoSelect)
Sets auto-select to be inhibited inhibited (once).
|
void |
setInvalidChars(String str)
Sets invalid characters.
|
void |
setMandatory(boolean mandatory)
Sets the mandatory option.
Mandatory fields are differently visualized. |
void |
setMaxColumns(int columns)
Sets the maximum number of columns.
The number of columns will be enforced by the model. |
void |
setOverwrite(boolean override)
Sets the insert/override mode.
|
void |
setStartEditLeftmost(boolean startEditLeftmost)
Sets whether to start edit leftmost in this component (once).
|
void |
setText(String str)
Sets the given text in the view of this component.
|
void |
setToolTipText(String text)
Sets the tooltip text for this component.
|
protected void |
setup()
setup editor, renderer and popuplistener
|
void |
setValidChars(String str)
Sets allowed characters.
|
void |
setVerticalAlignment(int alignment)
Sets the vertical alignment.
Can only be used in Tentackle-LookAndFeels! |
void |
upLeft()
Move caret to the left side of field and if already there move to previous field.
|
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. |
actionPerformed, addAllItems, addAllItems, addItem, addValueListener, clearValueShownModified, fireActionEvent, fireValueChanged, focusGained, getAllItems, getBinding, getBindingPath, getComponentPath, getFocusTraversalGroup, getFormValue, getFormValueText, getHelpURL, getItemIndexWithLeadString, getLeadKeyTimeout, getParentWindow, getPopupRenderer, getPropertyGroup, invalidateParentInfo, isAllowDeselect, isBindable, isCellEditorUsage, isChangeable, isFireRunning, isFormTraversable, isHonourChangeable, isMandatory, isMultiKeySelectionManager, isShortLongPopupEnabled, isSmartValueEntered, isTriggerValueChangedEnabled, isValueAdjusting, isValueChanged, isValueEnteredOnSelect, isValueShownModified, prepareFocusLost, processKeyEvent, removeAllItems, removeValueListener, selectWithLeadString, setAllItems, setAllItems, setAllowDeselect, setBindable, setBinding, setBindingPath, setCellEditorUsage, setChangeable, setComponentPath, setEditable, setEnabled, setFireRunning, setFocusTraversalGroup, setFormTraversable, setFormValue, setFormValueIndex, setFormWrapWindow, setHelpURL, setHonourChangeable, setLeadKeyTimeout, setMultiKeySelectionManager, setPopupRenderer, setPropertyGroup, setShortLongPopupEnabled, setSmartValueEntered, setTriggerValueChangedEnabled, setValueAdjusting, setValueEnteredOnSelect, showErrorPopup, showHelp, transferFocus, transferFocusBackward, triggerValueChanged, updateAllChangeableactionPropertyChanged, 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, 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, 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, waitaddValueListener, clearValueShownModified, fireValueChanged, getBaseline, getBinding, getBindingPath, getComponentPath, getFocusTraversalGroup, getFormValue, getHelpURL, getParentWindow, getPropertyGroup, hasFocus, invalidateParentInfo, isBindable, isCellEditorUsage, isFireRunning, isFormTraversable, isMandatory, isSmartValueEntered, isTriggerValueChangedEnabled, isValueChanged, isValueShownModified, prepareFocusLost, removeValueListener, setBindable, setBinding, setBindingPath, setCellEditorUsage, setComponentPath, setFireRunning, setFocusTraversalGroup, setFormTraversable, setFormValue, setFormWrapWindow, setHelpURL, setPropertyGroup, setSmartValueEntered, setTriggerValueChangedEnabled, showErrorPopup, showHelp, transferFocus, transferFocusBackward, triggerValueChangedupdateAllChangeableisChangeable, isHonourChangeable, setChangeable, setHonourChangeablepublic FormFieldComboBox(AbstractFormField editorField)
FormFielComboBox for a given AbstractFormField.editorField - the AbstractFormField used as the editor field and formatting
null, if standard StringFormFieldpublic FormFieldComboBox()
FormFielComboBox for a default StringFormField.public FormFieldComboBox(AbstractFormField editorField, E[] items)
FormFielComboBox for a given AbstractFormField.editorField - the AbstractFormField used for editing and formatting,
null if standard StringFormFielditems - the array of itemspublic FormFieldComboBox(E[] items)
FormFielComboBox for a default StringFormField.items - the array of itemsprotected void setup()
public void setEditorField(AbstractFormField editorField)
editorField - the AbstractFormField used for editing and formatting,
null if standard StringFormFieldpublic AbstractFormField getEditorField()
public boolean requestFocusInWindow()
Overridden so that the editor field gets the focus.
requestFocusInWindow in class JComponentpublic void requestFocus()
Overridden so that the editor field gets the focus.
requestFocus in class JComponentpublic void setToolTipText(String text)
Overridden to store tooltip in editorfield. This allows editable comboboxes handle tooltips the same way as non-editable.
setToolTipText in interface FormFieldComponentsetToolTipText in class JComponenttext - the tooltip text, null = nonepublic String getToolTipText()
Overridden to get the tooltip from the editorfield. This allows editable comboboxes handle tooltips the same way as non-editable.
getToolTipText in interface FormFieldComponentgetToolTipText in class FormComboBox<E>public boolean wasTransferFocus()
FormComponentFormComponent.transferFocus().wasTransferFocus in interface FormComponentwasTransferFocus in class FormComboBox<E>public boolean wasTransferFocusBackward()
FormComponentFormComponent.transferFocusBackward().wasTransferFocusBackward in interface FormComponentwasTransferFocusBackward in class FormComboBox<E>public boolean wasFocusGainedFromTransfer()
FormComponentFormComponent.transferFocus()
in the opposite component.wasFocusGainedFromTransfer in interface FormComponentwasFocusGainedFromTransfer in class FormComboBox<E>FormFocusTraversalPolicypublic boolean wasFocusGainedFromTransferBackward()
FormComponentFormComponent.transferFocusBackward()
in the opposite component.wasFocusGainedFromTransferBackward in interface FormComponentwasFocusGainedFromTransferBackward in class FormComboBox<E>FormFocusTraversalPolicypublic boolean wasTransferFocusByEnter()
FormComponentKeyEvent.VK_ENTER.wasTransferFocusByEnter in interface FormComponentwasTransferFocusByEnter in class FormComboBox<E>public Object getValueShown()
FormComponentgetValueShown in interface FormComponentgetValueShown in class FormComboBox<E>public void fireValueEntered()
valueEntered-handler.note: valueEntered will *ONLY* be fired if the last actionEvent did not fire for the same selectedItem (see fireActionEvent)
Overridden to setFormValueText
fireValueEntered in interface FormComponentfireValueEntered in class FormComboBox<E>public void focusLost(FocusEvent e)
Overridden to show the value if editable.
focusLost in interface FocusListenerfocusLost in class FormComboBox<E>e - the focus lost eventpublic boolean setFormValueText(String text)
FormComboBoxsetFormValueText in class FormComboBox<E>text - the string to matchpublic void setFormat(String format)
FormFieldComponentsetFormat in interface FormFieldComponentformat - the format stringpublic String getFormat()
FormFieldComponentgetFormat in interface FormFieldComponentpublic void setColumns(int columns)
FormFieldComponentsetColumns in interface FormFieldComponentcolumns - the number of columns ≥ 0public int getColumns()
FormFieldComponentgetColumns in interface FormFieldComponentpublic void setAutoSelect(boolean autoselect)
FormFieldComponentsetAutoSelect in interface FormFieldComponentautoselect - true if autoselect enabled, false if disabled (default)public boolean isAutoSelect()
FormFieldComponentisAutoSelect in interface FormFieldComponentpublic void setAutoNext(boolean autonext)
FormFieldComponentsetAutoNext in interface FormFieldComponentautonext - true if autonext enabled, false if disabled (default)public boolean isAutoNext()
FormFieldComponentisAutoNext in interface FormFieldComponentpublic void setAutoUpdate(boolean autoupdate)
FormComponentsetAutoUpdate in interface FormComponentsetAutoUpdate in class FormComboBox<E>autoupdate - true if auto update the data (default), false if notpublic boolean isAutoUpdate()
FormComponentisAutoUpdate in interface FormComponentisAutoUpdate in class FormComboBox<E>public void setConvert(char convert)
FormFieldComponentsetConvert in interface FormFieldComponentconvert - one of FormField.CONVERT_...public char getConvert()
FormFieldComponentgetConvert in interface FormFieldComponentpublic void setAdjust(char adjust)
FormFieldComponentsetAdjust in interface FormFieldComponentadjust - one of FormField.ADJUST_...FormFieldComponent.setFiller(char)public void setConverter(Function<String,String> converter)
FormFieldComponentsetConverter in interface FormFieldComponentconverter - the converter, null if none (default)public Function<String,String> getConverter()
FormFieldComponentgetConverter in interface FormFieldComponentpublic char getAdjust()
FormFieldComponentgetAdjust in interface FormFieldComponentpublic void setMaxColumns(int columns)
FormFieldComponent
If JTextField.getColumns() == 0 the component will resize as
if setColumns has been invoked with the given maxColumns. However,
getColumns() remains 0.
setMaxColumns in interface FormFieldComponentcolumns - the maximum number of columns, 0 if unlimited (default)public int getMaxColumns()
FormFieldComponentgetMaxColumns in interface FormFieldComponentpublic void setDefaultColumns(int columns)
FormFieldComponentWith defaultColumns it is possible to set the width of a field to a reasonable size and let the application use setMaxColumn() to set the real value from the model (which is not available at design time).
setDefaultColumns in interface FormFieldComponentcolumns - the default columnspublic int getDefaultColumns()
FormFieldComponentgetDefaultColumns in interface FormFieldComponentpublic void setFiller(char filler)
FormFieldComponentsetFiller in interface FormFieldComponentfiller - the fill characterFormFieldComponent.setAdjust(char)public char getFiller()
FormFieldComponentgetFiller in interface FormFieldComponentpublic void setOverwrite(boolean override)
FormFieldComponentsetOverwrite in interface FormFieldComponentoverride - true if override, false if insert (default)public boolean isOverwrite()
FormFieldComponentisOverwrite in interface FormFieldComponentpublic void setValidChars(String str)
FormFieldComponentsetValidChars in interface FormFieldComponentstr - the valid characters, null = all (default)public String getValidChars()
FormFieldComponentgetValidChars in interface FormFieldComponentpublic void setInvalidChars(String str)
FormFieldComponentsetInvalidChars in interface FormFieldComponentstr - the invalid characters, null = none (default)public String getInvalidChars()
FormFieldComponentgetInvalidChars in interface FormFieldComponentpublic void setEraseFirst(boolean erasefirst)
FormFieldComponentsetEraseFirst in interface FormFieldComponenterasefirst - true to clear after first setTextpublic boolean isEraseFirst()
FormFieldComponentisEraseFirst in interface FormFieldComponentpublic void setCaretPosition(int pos)
FormFieldComponentsetCaretPosition in interface FormFieldComponentpos - the caret position, 0 = start of fieldpublic int getCaretPosition()
FormFieldComponentgetCaretPosition in interface FormFieldComponentpublic boolean isCaretLeft()
FormFieldComponentisCaretLeft in interface FormFieldComponentpublic boolean isCaretRight()
FormFieldComponentisCaretRight in interface FormFieldComponentpublic void setHorizontalAlignment(int alignment)
FormFieldComponentsetHorizontalAlignment in interface FormFieldComponentalignment - the alignmentComponentpublic int getHorizontalAlignment()
FormFieldComponentgetHorizontalAlignment in interface FormFieldComponentComponentpublic void setVerticalAlignment(int alignment)
FormFieldComponentsetVerticalAlignment in interface FormFieldComponentalignment - the vertical alignmentpublic int getVerticalAlignment()
FormFieldComponentgetVerticalAlignment in interface FormFieldComponentpublic void requestFocusLater()
FormComponentrequestFocusLater in interface FormComponentrequestFocusLater in class FormComboBox<E>public boolean isInhibitAutoSelect()
FormFieldComponentisInhibitAutoSelect in interface FormFieldComponentpublic void setInhibitAutoSelect(boolean inhibitAutoSelect)
FormFieldComponentsetInhibitAutoSelect in interface FormFieldComponentinhibitAutoSelect - true if inhibitedpublic void clearText()
FormFieldComponentclearText in interface FormFieldComponentpublic void setCaretLeft()
FormFieldComponentsetCaretLeft in interface FormFieldComponentpublic void setCaretRight()
FormFieldComponentsetCaretRight in interface FormFieldComponentpublic void upLeft()
If the popup is visible the UP-key will move to the item above the current item.
upLeft in interface FormFieldComponentpublic void downRight()
If the popup is visible the DOWN-key will move to the item below the current item.
downRight in interface FormFieldComponentpublic int getErrorOffset()
FormFieldComponentgetErrorOffset in interface FormFieldComponentpublic void setErrorOffset(int errorOffset)
FormFieldComponentsetErrorOffset in interface FormFieldComponenterrorOffset - the error offset in the text component, -1 to clearpublic String getErrorMessage()
FormFieldComponentgetErrorMessage in interface FormFieldComponentpublic void setErrorMessage(String errorMessage)
FormFieldComponentsetErrorMessage in interface FormFieldComponenterrorMessage - the message, null to clearpublic void setText(String str)
FormFieldComponentsetText in interface FormFieldComponentstr - the textpublic String getText()
FormFieldComponentgetText in interface FormFieldComponentpublic boolean isEmpty()
FormFieldComponentisEmpty in interface FormFieldComponentpublic String doFormat(Object object)
FormFieldComponentdoFormat in interface FormFieldComponentobject - the objectpublic void setStartEditLeftmost(boolean startEditLeftmost)
FormFieldComponentsetStartEditLeftmost in interface FormFieldComponentstartEditLeftmost - true if start edit leftmostpublic boolean isStartEditLeftmost()
FormFieldComponentisStartEditLeftmost in interface FormFieldComponentpublic void postActionEvent()
FormFieldComponentpostActionEvent in interface FormFieldComponentpublic void saveValue()
FormComponentsaveValue in interface FormComponentsaveValue in class FormComboBox<E>FormComponent.isValueChanged()public void setMandatory(boolean mandatory)
FormComponentsetMandatory in interface FormComponentsetMandatory in class FormComboBox<E>mandatory - true if mandatoryTentackle - a domain driven enterprise framework