org.opensubsystems.patterns.thickclient.application.swt
Interface CharacterPadListener

All Known Implementing Classes:
CharacterPadTextUpdater

public interface CharacterPadListener

Interface which should be implemented by anybody who wants to get notified when the main CharacterPad special button is clicked.

Version:
$Id: CharacterPadListener.java,v 1.6 2007/01/07 06:14:15 bastafidli Exp $
Author:
Martin Cerba
Code reviewer:
Miro Halas
Code reviewed:
1.4 2006/04/05 05:32:29 bastafidli

Method Summary
 boolean takeAction(CharacterPad chpad, int iActionButton, java.lang.String strButtonName, java.lang.String strText)
          This method is called when action button of the dialog is clicked.
 

Method Detail

takeAction

boolean takeAction(CharacterPad chpad,
                   int iActionButton,
                   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.

Parameters:
chpad - - what character pad generated this event
iActionButton - - 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
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.