|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.widgets.UserInputWidgetDelegator
public class UserInputWidgetDelegator
Delegates all calls to given delegate.
Field Summary | |
---|---|
protected IUserInputWidget |
delegate
The delegate. |
Constructor Summary | |
---|---|
UserInputWidgetDelegator(IUserInputWidget delegate)
Creates the delegator. |
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 model)
Sets new state for the widget. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final IUserInputWidget delegate
Constructor Detail |
---|
public UserInputWidgetDelegator(IUserInputWidget delegate)
delegate
- all calls delegated here.Method Detail |
---|
public void addMessageListener(IMessagesChangeListener listener)
IUserInputWidget
addMessageListener
in interface IUserInputWidget
listener
- the error listener called when last error changes.public void addModifyListener(IModifyListener listener)
IUserInputWidget
addModifyListener
in interface IUserInputWidget
listener
- listener to register.public Composite getComposite()
IUserInputWidget
getComposite
in interface IUserInputWidget
public ValidityMessages getMessages()
IUserInputWidget
getMessages
in interface IUserInputWidget
null
if data is correct, or instance of
ValidityMessages
if there is error, warning or info
message.public Object getState()
IUserInputWidget
getState
in interface IUserInputWidget
public Class<?> getStateClass()
IUserInputWidget
getStateClass
in interface IUserInputWidget
null
.public void removeMessageListener(IMessagesChangeListener listener)
IUserInputWidget
removeMessageListener
in interface IUserInputWidget
listener
- the error listener called when last error changes.public void removeModifyListener(IModifyListener listener)
IUserInputWidget
removeModifyListener
in interface IUserInputWidget
listener
- listener to unregister.public void setState(Object model)
IUserInputWidget
setState
in interface IUserInputWidget
model
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |