Class CharacterPadTextUpdater

  extended by org.opensubsystems.patterns.thickclient.application.swt.CharacterPadTextUpdater
All Implemented Interfaces:

public class CharacterPadTextUpdater
extends java.lang.Object
implements CharacterPadListener

Implementation of character pad listener which simply updatest text control when notified by character pad.

$Id:,v 1.4 2007/01/07 06:14:15 bastafidli Exp $
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.
Constructor Summary
CharacterPadTextUpdater(org.eclipse.swt.widgets.Text text)
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

Field Detail


protected org.eclipse.swt.widgets.Text m_text
Text control to update.

Constructor Detail


public CharacterPadTextUpdater(org.eclipse.swt.widgets.Text text)

text - - text control to be updated by the character pad
Method Detail


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
chpad - - what character pad generated this event
iNumberValue - - integer offset of special button in special buttons array
strButtonName - - what was the name of the button
strText - - what was the text and the moment of click
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.