|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUserInputWidget
Says that implementing object contains a composite and some controls.
Method Summary | |
---|---|
void |
addMessageListener(IMessagesChangeListener listener)
Registers given error listener. |
void |
addModifyListener(IModifyListener listener)
Registers given modify listener. |
Composite |
getComposite()
Returns composite that is encapsulated in this object. |
ValidityMessages |
getMessages()
Checks if data contained in the widget are correct. |
Object |
getState()
Returns the state of this widget. |
Class<?> |
getStateClass()
Returns the class of the state that the widget accepts. |
void |
removeMessageListener(IMessagesChangeListener listener)
Unregisters given error listener. |
void |
removeModifyListener(IModifyListener listener)
Unregisters given modify listener. |
void |
setState(Object state)
Sets new state for the widget. |
Method Detail |
---|
Composite getComposite()
void addModifyListener(IModifyListener listener)
listener
- listener to register.void removeModifyListener(IModifyListener listener)
listener
- listener to unregister.void addMessageListener(IMessagesChangeListener listener)
listener
- the error listener called when last error changes.void removeMessageListener(IMessagesChangeListener listener)
listener
- the error listener called when last error changes.ValidityMessages getMessages()
null
if data is correct, or instance of
ValidityMessages
if there is error, warning or info
message.Object getState()
void setState(Object state)
state
- the model to set. You may use the construct
setModel(getModel())
to reflect changes made in the model.
Please note that nearly all widgets rejects null
value.
ClassCastException
- if given model is not castable to the
supported model class
.
UnsupportedOperationException
- if state change is not supported.
IllegalArgumentException
- if new state is invalid.Class<?> getStateClass()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |