org.opensubsystems.patterns.thickclient.application.swt
Class CharacterPadTextUpdater
java.lang.Object
org.opensubsystems.patterns.thickclient.application.swt.CharacterPadTextUpdater
- All Implemented Interfaces:
- CharacterPadListener
public class CharacterPadTextUpdater
- extends java.lang.Object
- implements CharacterPadListener
Implementation of character pad listener which simply updatest text control
when notified by character pad.
- Version:
- $Id: CharacterPadTextUpdater.java,v 1.4 2007/01/07 06:14:15 bastafidli Exp $
- Author:
- Miro Halas
- Code reviewer:
- Miro Halas
- Code reviewed:
- 1.2 2006/04/05 05:32:41 bastafidli
|
Field Summary |
protected org.eclipse.swt.widgets.Text |
m_text
Text control to update. |
|
Method Summary |
boolean |
takeAction(CharacterPad chpad,
int iNumberValue,
java.lang.String strButtonName,
java.lang.String strText)
This method is called when action button of the dialog is clicked. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_text
protected org.eclipse.swt.widgets.Text m_text
- Text control to update.
CharacterPadTextUpdater
public CharacterPadTextUpdater(org.eclipse.swt.widgets.Text text)
- Constructor.
- Parameters:
text - - text control to be updated by the character pad
takeAction
public boolean takeAction(CharacterPad chpad,
int iNumberValue,
java.lang.String strButtonName,
java.lang.String strText)
- This method is called when action button of the dialog is clicked. This
means that user is finished with the changes and want to take some action
with those changes. This method is NOT called when user wants to cancel
the changes which he has done.
- Specified by:
takeAction in interface CharacterPadListener
- Parameters:
chpad - - what character pad generated this eventiNumberValue - - integer offset of special button in special buttons
arraystrButtonName - - what was the name of the buttonstrText - - what was the text and the moment of click
- Returns:
- boolean - if true is returned the the text in the CharacterPad is
cleared otherwise the value is kept there
Copyright © 2003 - 2006 OpenSubsystems s.r.o.