public class InputDialogWrapper<INPUT_TYPE> extends WindowWrapper implements IInputDialog<INPUT_TYPE>
Constructor and Description |
---|
InputDialogWrapper(IInputDialog<INPUT_TYPE> widget) |
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<INPUT_TYPE> validator)
Adds a validator to the input component
|
INPUT_TYPE |
getValue()
Gets the value
|
protected IInputDialog<INPUT_TYPE> |
getWidget() |
boolean |
hasModifications()
Determines if modifications has been occurred since object creation or the last invocation of
resetModificationState().
|
boolean |
isEditable()
Gets the editable state
|
boolean |
isOkPressed() |
void |
removeInputListener(IInputListener listener)
Removes an input listener
|
void |
removeValidationConditionListener(IValidationConditionListener listener)
Removes a validation condition listener
|
void |
resetModificationState()
Resets the modification state.
|
void |
setEditable(boolean editable)
Sets the editable state of the input component.
|
void |
setMinSize(Dimension minSize) |
void |
setValue(INPUT_TYPE value)
Sets the value
|
IValidationResult |
validate()
Does the validation
|
addWindowListener, centerLocation, createChildWindow, dispose, getChildWindows, getParent, getParentBounds, pack, removeWindowListener, setMaxPackSize, setMinPackSize, setParent
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, getRoot, getUiReference, isDisposed, isEnabled, removeDisposeListener, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
centerLocation, createChildWindow, getChildWindows, setMaxPackSize, setMinPackSize
dispose, getParentBounds, pack
addWindowListener, removeWindowListener
createPopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreen
dispose, getRoot, isDisposed
addDisposeListener, removeDisposeListener
addShowingStateListener, removeShowingStateListener
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 InputDialogWrapper(IInputDialog<INPUT_TYPE> widget)
protected IInputDialog<INPUT_TYPE> getWidget()
getWidget
in class WindowWrapper
public void addValidator(IValidator<INPUT_TYPE> validator)
IInputComponent
addValidator
in interface IInputComponent<INPUT_TYPE>
validator
- The validator to add, must not be nullpublic boolean hasModifications()
IInputComponent
IInputComponent.resetModificationState()
method will be invoked,
so the method IInputComponent.hasModifications()
returns false.
After pressing the '2' key, the method IInputComponent.hasModifications()
returns true, but the value is still null.
After pressing the keys '0', '1' , '1', the method IInputComponent.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 IInputComponent.hasModifications()
returns false again, which indicates that the field is in it's
original state.hasModifications
in interface IInputComponent<INPUT_TYPE>
IInputComponent.hasModifications()
public void resetModificationState()
IInputComponent
IInputComponent.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.resetModificationState
in interface IInputComponent<INPUT_TYPE>
public void setValue(INPUT_TYPE value)
IInputValueAccessor
setValue
in interface IInputValueAccessor<INPUT_TYPE>
value
- The value, may be nullpublic INPUT_TYPE getValue()
IInputValueAccessor
getValue
in interface IInputValueAccessor<INPUT_TYPE>
public IValidationResult validate()
IValidateable
validate
in interface IValidateable
public void addValidationConditionListener(IValidationConditionListener listener)
IValidateable
addValidationConditionListener
in interface IValidateable
listener
- The listener to addpublic void removeValidationConditionListener(IValidationConditionListener listener)
IValidateable
removeValidationConditionListener
in interface IValidateable
listener
- The listener to removepublic void setEditable(boolean editable)
IInputComponentCommon
setEditable
in interface IInputComponentCommon
editable
- The editable state to setpublic boolean isEditable()
IInputComponent
isEditable
in interface IInputComponent<INPUT_TYPE>
public void setMinSize(Dimension minSize)
setMinSize
in interface IInputDialog<INPUT_TYPE>
public void addInputListener(IInputListener listener)
IInputObservable
addInputListener
in interface IInputObservable
listener
- The listener to addpublic void removeInputListener(IInputListener listener)
IInputObservable
removeInputListener
in interface IInputObservable
listener
- The listener to removepublic boolean isOkPressed()
isOkPressed
in interface IInputDialog<INPUT_TYPE>
Siehe auch Jowidgets Nutzerhandbuch