VALUE_TYPE - The type of the values the input component can handle withpublic interface IInputComponent<VALUE_TYPE> extends IComponent, IInputValueAccessor<VALUE_TYPE>, IValidateable, IInputComponentCommon
| Modifier and Type | Method and Description |
|---|---|
void |
addValidator(IValidator<VALUE_TYPE> validator)
Adds a validator to the input component
|
boolean |
hasModifications()
Determines if modifications has been occurred since object creation or the last invocation of
resetModificationState().
|
boolean |
isEditable()
Gets the editable state
|
void |
resetModificationState()
Resets the modification state.
|
createPopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreendispose, getParent, getRoot, isDisposedaddDisposeListener, removeDisposeListeneraddShowingStateListener, removeShowingStateListenergetValue, setValueaddValidationConditionListener, removeValidationConditionListener, validatesetEditablegetBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisiblegetUiReference, isEnabled, setEnabledaddComponentListener, removeComponentListeneraddFocusListener, removeFocusListeneraddKeyListener, removeKeyListeneraddMouseListener, removeMouseListeneraddMouseMotionListener, removeMouseMotionListeneraddPopupDetectionListener, removePopupDetectionListeneraddInputListener, removeInputListenervoid addValidator(IValidator<VALUE_TYPE> validator)
validator - The validator to add, must not be nullboolean hasModifications()
resetModificationState() method will be invoked,
so the method hasModifications() returns false.
After pressing the '2' key, the method hasModifications() returns true, but the value is still null.
After pressing the keys '0', '1' , '1', the method hasModifications() returns still true and the value is
a Date object representing "12-11-2011". If the user presses the backspace key 4 times, the value
is 'null' and the method hasModifications() returns false again, which indicates that the field is in it's
original state.hasModifications()void resetModificationState()
hasModifications() method must return false,
until modification was made by the user or programmatically.
Remark: This method invocation must not reset the modifications. Only the modification state (modified or not)
will be reseted.boolean isEditable()
Siehe auch Jowidgets Nutzerhandbuch