|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.events.SelectionAdapter
org.opensubsystems.patterns.thickclient.application.swt.DelegatingSelectionAdapter
org.opensubsystems.patterns.thickclient.application.swt.TextModificationSelectionAdapter
public class TextModificationSelectionAdapter
Adapter used to process selection events that result in text modification.
| Field Summary | |
|---|---|
static java.lang.String |
FUNCTION_CLEAR
Clear last character from the text. |
static java.lang.String |
FUNCTION_CLEAR_ALL
Clear all characters from the text. |
protected org.eclipse.swt.widgets.Text |
m_destination
Text control being monitored and possibly modified by this adapter. |
protected ModificationListener |
m_listener
Listener, which will be notified when the content is changed. |
protected TextProcessor |
m_processor
Text processor, which should be utilized to preprocess text when the text is modified. |
protected java.lang.String |
m_strFunction
What function to perform, either a character to add or one of the FUNCTION_XXX controls. |
| Constructor Summary | |
|---|---|
TextModificationSelectionAdapter(TextProcessor processor,
ModificationListener listener,
java.lang.String strFunction,
org.eclipse.swt.widgets.Text destination)
Construct new adapter processing events from the control. |
|
| Method Summary | |
|---|---|
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent event)
|
| Methods inherited from class org.opensubsystems.patterns.thickclient.application.swt.DelegatingSelectionAdapter |
|---|
widgetDefaultSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FUNCTION_CLEAR
public static final java.lang.String FUNCTION_CLEAR_ALL
protected TextProcessor m_processor
protected ModificationListener m_listener
protected java.lang.String m_strFunction
protected org.eclipse.swt.widgets.Text m_destination
| Constructor Detail |
|---|
public TextModificationSelectionAdapter(TextProcessor processor,
ModificationListener listener,
java.lang.String strFunction,
org.eclipse.swt.widgets.Text destination)
processor - - text processor, which should be utilized to preprocess
text when the text is modified.listener - - listener to call when some modification has happenedstrFunction - - what function to perform, either a character
to add or one of the FUNCTION_XXX controls.destination - - text control being monitored and possibly modified
by this adapter.| Method Detail |
|---|
public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerwidgetSelected in class org.eclipse.swt.events.SelectionAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||