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, toScreen
dispose, getParent, getRoot, isDisposed
addDisposeListener, removeDisposeListener
addShowingStateListener, removeShowingStateListener
getValue, setValue
addValidationConditionListener, removeValidationConditionListener, validate
setEditable
getBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisible
getUiReference, isEnabled, setEnabled
addComponentListener, removeComponentListener
addFocusListener, removeFocusListener
addKeyListener, removeKeyListener
addMouseListener, removeMouseListener
addMouseMotionListener, removeMouseMotionListener
addPopupDetectionListener, removePopupDetectionListener
addInputListener, removeInputListener
void 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