|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.widgets.AbstractUserInputWidget
public abstract class AbstractUserInputWidget
Abstract implementation of widget.
Field Summary | |
---|---|
protected Set<IModifyListener> |
listeners
Modify listeners. |
protected Set<IMessagesChangeListener> |
msgListeners
Message change listeners. |
Constructor Summary | |
---|---|
protected |
AbstractUserInputWidget()
Constructor. |
Method Summary | |
---|---|
void |
addMessageListener(IMessagesChangeListener listener)
Registers given error listener. |
void |
addModifyListener(IModifyListener listener)
Registers given modify listener. |
protected void |
allowModifyEvent()
Allows the data-modify event to be called. |
protected void |
fireDataModified()
Calls all modify listeners. |
void |
removeMessageListener(IMessagesChangeListener listener)
Unregisters given error listener. |
void |
removeModifyListener(IModifyListener listener)
Unregisters given modify listener. |
protected void |
suppressModifyEvent()
Suppresses the data-modify event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sk.uniba.euromath.editor.widgets.IUserInputWidget |
---|
getComposite, getMessages, getState, getStateClass, setState |
Field Detail |
---|
protected final Set<IModifyListener> listeners
protected final Set<IMessagesChangeListener> msgListeners
Constructor Detail |
---|
protected AbstractUserInputWidget()
Method Detail |
---|
protected void fireDataModified()
protected final void suppressModifyEvent()
suppressModifyEvent()
must have
allowModifyEvent()
called.
protected final void allowModifyEvent()
suppressModifyEvent()
calls.
public void addModifyListener(IModifyListener listener)
IUserInputWidget
addModifyListener
in interface IUserInputWidget
listener
- listener to register.public void removeModifyListener(IModifyListener listener)
IUserInputWidget
removeModifyListener
in interface IUserInputWidget
listener
- listener to unregister.public void addMessageListener(IMessagesChangeListener listener)
IUserInputWidget
addMessageListener
in interface IUserInputWidget
listener
- the error listener called when last error changes.public void removeMessageListener(IMessagesChangeListener listener)
IUserInputWidget
removeMessageListener
in interface IUserInputWidget
listener
- the error listener called when last error changes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |