|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.diagram.ui.properties.views.TextChangeHelper
public abstract class TextChangeHelper
TextChangeHelper notifies the listner of text lifecycle events on behalf of the widget(s) it listens to.
Constructor Summary | |
---|---|
TextChangeHelper()
|
Method Summary | |
---|---|
void |
finishNonUserChange()
Clients who call startNonUserChange() should call finishNonUserChange() as soon as possible after the change is done. |
void |
handleEvent(Event event)
|
boolean |
isNonUserChange()
Returns true if a programmatic change is in progress. |
void |
startListeningForEnter(Control control)
Registers this helper with the given control to listen for the Enter key. |
void |
startListeningTo(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(Control control)
Unregisters this helper from a control previously passed to startListeningTo() and/or startListeningForEnter(). |
abstract void |
textChanged(Control control)
Abstract method notified when a text field has been changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextChangeHelper()
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, false
otherwisepublic void handleEvent(Event event)
handleEvent
in interface Listener
Listener.handleEvent(org.eclipse.swt.widgets.Event)
public abstract void textChanged(Control control)
control
- public void startListeningTo(Control control)
control
- Control
on which listeners will be registeredpublic void startListeningForEnter(Control control)
control
- Control
on which enter listener will be registeredpublic void stopListeningTo(Control control)
control
- Control
from which listeners will be removed
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.