public abstract class AbstractInputControl<VALUE_TYPE> extends ControlWrapper implements IInputControl<VALUE_TYPE>
Constructor and Description |
---|
AbstractInputControl(IControl control) |
Modifier and Type | Method and Description |
---|---|
void |
addInputListener(IInputListener listener)
Adds an input listener
|
void |
addValidationConditionListener(IValidationConditionListener listener)
Adds a validation condition listener
|
void |
addValidator(IValidator<VALUE_TYPE> validator)
Adds a validator to the input component
|
protected abstract IValidationResult |
createValidationResult() |
protected void |
fireInputChanged() |
void |
removeInputListener(IInputListener listener)
Removes an input listener
|
void |
removeValidationConditionListener(IValidationConditionListener listener)
Removes a validation condition listener
|
protected void |
setValidationCacheDirty() |
IValidationResult |
validate()
Does the validation
|
addParentListener, getDragSource, getDropTarget, getLayoutConstraints, getMaxSize, getMinSize, getParent, getPreferredSize, getRoot, getWidget, removeParentListener, setLayoutConstraints, setMaxSize, setMinSize, setParent, setPreferredSize, setToolTipText
addComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addPopupDetectionListener, addShowingStateListener, createPopupMenu, fromComponent, getBackgroundColor, getBounds, getForegroundColor, getPosition, getSize, hasFocus, isReparentable, isShowing, isVisible, redraw, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePopupDetectionListener, removeShowingStateListener, requestFocus, setBackgroundColor, setBounds, setCursor, setForegroundColor, setPopupMenu, setPosition, setPosition, setRedrawEnabled, setSize, setSize, setVisible, toComponent, toLocal, toScreen
addDisposeListener, dispose, getUiReference, isDisposed, isEnabled, removeDisposeListener, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDragSource, getDropTarget, getParent, getRoot, setMaxSize, setMinSize, setParent, setPreferredSize
getLayoutConstraints, getMaxSize, getMinSize, getPreferredSize, setLayoutConstraints, setToolTipText
addParentListener, removeParentListener
hasModifications, isEditable, resetModificationState
createPopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreen
dispose, isDisposed
addDisposeListener, removeDisposeListener
addShowingStateListener, removeShowingStateListener
getValue, setValue
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
public AbstractInputControl(IControl control)
protected abstract IValidationResult createValidationResult()
public final void addValidator(IValidator<VALUE_TYPE> validator)
IInputComponent
addValidator
in interface IInputComponent<VALUE_TYPE>
validator
- The validator to add, must not be nullpublic final IValidationResult validate()
IValidateable
validate
in interface IValidateable
public final void addValidationConditionListener(IValidationConditionListener listener)
IValidateable
addValidationConditionListener
in interface IValidateable
listener
- The listener to addpublic final void removeValidationConditionListener(IValidationConditionListener listener)
IValidateable
removeValidationConditionListener
in interface IValidateable
listener
- The listener to removepublic final void addInputListener(IInputListener listener)
IInputObservable
addInputListener
in interface IInputObservable
listener
- The listener to addpublic final void removeInputListener(IInputListener listener)
IInputObservable
removeInputListener
in interface IInputObservable
listener
- The listener to removeprotected final void setValidationCacheDirty()
protected final void fireInputChanged()
Siehe auch Jowidgets Nutzerhandbuch