|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.ecoretools.tabbedproperties.utils.TextChangeListener
public abstract class TextChangeListener
This is a copy of the TextChangeHelper available in GMF with addition to listener on FocusIn and FocusOut events. We only want to avoid a dependency to the GMF component TextChangeListener notifies the listener of text lifecycle events on behalf of the widget(s) it listens to.
| Constructor Summary | |
|---|---|
TextChangeListener()
|
|
| Method Summary | |
|---|---|
void |
finishNonUserChange()
Clients who call startNonUserChange() should call finishNonUserChange() as soon as possible after the change is done. |
void |
focusIn(org.eclipse.swt.widgets.Control control)
This method is method notified when the focus is gained Client may override this method if he desire some particular behavior |
void |
focusOut(org.eclipse.swt.widgets.Control control)
This method is notified when the focus is lost Client may override this method if he desire some particular behavior |
void |
handleEvent(org.eclipse.swt.widgets.Event event)
|
boolean |
isNonUserChange()
Determine if a programmatic change is in progress. |
void |
startListeningForEnter(org.eclipse.swt.widgets.Control control)
Registers this helper with the given control to listen for the Enter key. |
void |
startListeningTo(org.eclipse.swt.widgets.Control control)
Registers this helper with the given control to listen for events which indicate that a change is in progress (or done). |
void |
startNonUserChange()
Marks the start of a programmatic change to the widget contents. |
void |
stopListeningTo(org.eclipse.swt.widgets.Control control)
Unregisters this helper from a control previously passed to startListeningTo() and/or startListeningForEnter(). |
abstract void |
textChanged(org.eclipse.swt.widgets.Control control)
Abstract method notified when a text field has been changed. |
void |
verifyText(org.eclipse.swt.widgets.Control control)
This method is notified when text is been modified Client may override this method if he desire some particular behavior |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextChangeListener()
| Method Detail |
|---|
public void startNonUserChange()
java.lang.IllegalArgumentException - if a programmatic change is already in progress.public void finishNonUserChange()
java.lang.IllegalArgumentException - if no change is in progress.public boolean isNonUserChange()
true if a programmatic change is in progress.public void handleEvent(org.eclipse.swt.widgets.Event event)
handleEvent in interface org.eclipse.swt.widgets.ListenerListener.handleEvent(org.eclipse.swt.widgets.Event)public abstract void textChanged(org.eclipse.swt.widgets.Control control)
control - the given control.public void focusIn(org.eclipse.swt.widgets.Control control)
control - the given control.public void focusOut(org.eclipse.swt.widgets.Control control)
control - the given control.public void verifyText(org.eclipse.swt.widgets.Control control)
control - the given control.public void startListeningTo(org.eclipse.swt.widgets.Control control)
control - the given control.public void startListeningForEnter(org.eclipse.swt.widgets.Control control)
control - the given control.public void stopListeningTo(org.eclipse.swt.widgets.Control control)
control - the given control.
|
Copyright 2007 Anyware Technologies. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||