|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.application.swt.SWTThickClientDialogGuiImpl
org.opensubsystems.patterns.thickclient.application.swt.CharacterPadDialog
public class CharacterPadDialog
Dialog used to enter text using mouse or finger.
| Field Summary | |
|---|---|
protected CharacterPad |
m_chpad
character pad for this dialog |
protected int |
m_iCancelButtonId
What is the ID of the cancel button. |
protected java.lang.String |
m_initialText
initial text for CharacterPad |
protected java.util.Set |
m_setListeners
Set where all listeners listening to the event notifications specific to this object are stored. |
| Fields inherited from class org.opensubsystems.core.application.swt.SWTThickClientDialogGuiImpl |
|---|
m_client, m_oldClientLocation, m_outsideBoundingArea, m_parent, m_shell |
| Constructor Summary | |
|---|---|
CharacterPadDialog()
|
|
| Method Summary | |
|---|---|
void |
addCharacterPadListener(CharacterPadListener listener)
Add listener for this character pad. |
protected org.eclipse.swt.graphics.Point |
createClientArea(java.lang.String strFirstLineText,
java.lang.String[] specialButtons,
CharacterPad.CharacterPadLayout keyboardLayout,
int specialFlags,
boolean bBigButtons)
Create the client area of the dialog. |
protected void |
displayDialog(java.lang.String strFirstLineText,
java.lang.String[] arSpecialButtonText,
CharacterPad.CharacterPadLayout keyboardLayout,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
CharacterPadListener specialButtonListener)
Show the dialog. |
void |
displayDialog(org.opensubsystems.core.application.ThickClientDialog parentDialog,
java.lang.String strTitle,
java.lang.String strFirstLineText,
java.lang.String[] arSpecialButtonText,
CharacterPad.CharacterPadLayout keyboardLayout,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
CharacterPadListener specialButtonListener)
Show the dialog. |
void |
displayDialog(org.opensubsystems.core.application.ThickClient client,
java.lang.String strTitle,
java.lang.String strFirstLineText,
java.lang.String[] arSpecialButtonText,
CharacterPad.CharacterPadLayout keyboardLayout,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
CharacterPadListener specialButtonListener)
Show the dialog. |
void |
removeCharacterPadListener(CharacterPadListener listener)
Remove listener from this ncharacter pad. |
void |
setText(java.lang.String initialText)
Set the initial text for the dialog. |
boolean |
setTextLimit(int iLimit)
This function sets maximal nuber of characters typed |
| Methods inherited from class org.opensubsystems.core.application.swt.SWTThickClientDialogGuiImpl |
|---|
createDialogWindow, createDialogWindow, createDialogWindow, displayDialogWindow, displayMessage, getClient, getShell, interactWithUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Set m_setListeners
protected CharacterPad m_chpad
protected java.lang.String m_initialText
protected int m_iCancelButtonId
| Constructor Detail |
|---|
public CharacterPadDialog()
| Method Detail |
|---|
public void displayDialog(org.opensubsystems.core.application.ThickClient client,
java.lang.String strTitle,
java.lang.String strFirstLineText,
java.lang.String[] arSpecialButtonText,
CharacterPad.CharacterPadLayout keyboardLayout,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
CharacterPadListener specialButtonListener)
client - - application displaying this dialogstrTitle - - title of the dialogstrFirstLineText - - text displayed in the first line of the dialogarSpecialButtonText - - texts on the buttonskeyboardLayout - - layout of keys for the keyboard pad, see the
CharacterPad.KEY_LAYOUT_XXX constantsstrMaxTextLength - - maximal length of the text that can be enteredstrInitialText - - initial text to put to the dialogbBigButtons - - if true then the buttons will be displayed large
otherwise they will be displayed middle sizespecialButtonListener - - listener executed when the button is clicked
public void displayDialog(org.opensubsystems.core.application.ThickClientDialog parentDialog,
java.lang.String strTitle,
java.lang.String strFirstLineText,
java.lang.String[] arSpecialButtonText,
CharacterPad.CharacterPadLayout keyboardLayout,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
CharacterPadListener specialButtonListener)
parentDialog - - parent dialog displaying this dialogstrTitle - - title of the dialogstrFirstLineText - - text displayed in the first line of the dialogarSpecialButtonText - - texts on the buttonskeyboardLayout - - layout of keys for the keyboard pad, see the
CharacterPad.KEY_LAYOUT_XXX constantsstrMaxTextLength - - maximal length of the text that can be enteredstrInitialText - - initial text to put to the dialogbBigButtons - - if true then the buttons will be displayed large
otherwise they will be displayed middle sizespecialButtonListener - - listener executed when the button is clickedpublic void setText(java.lang.String initialText)
initialText - - initial text displayed in CharacterPadpublic boolean setTextLimit(int iLimit)
iLimit - - maximal number of chracters
public void addCharacterPadListener(CharacterPadListener listener)
listener - - listener to addpublic void removeCharacterPadListener(CharacterPadListener listener)
listener - - listener to remove
protected void displayDialog(java.lang.String strFirstLineText,
java.lang.String[] arSpecialButtonText,
CharacterPad.CharacterPadLayout keyboardLayout,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
CharacterPadListener specialButtonListener)
strFirstLineText - - text displayed in the first line of the dialogarSpecialButtonText - - texts on the buttonskeyboardLayout - - layout of keys for the keyboard pad, see the
CharacterPad.KEY_LAYOUT_XXX constantsstrMaxTextLength - - maximal length of the text that can be enteredstrInitialText - - initial text to put to the dialogbBigButtons - - if true then the buttons will be displayed large
otherwise they will be displayed middle sizespecialButtonListener - - listener executed when the button is clicked
protected org.eclipse.swt.graphics.Point createClientArea(java.lang.String strFirstLineText,
java.lang.String[] specialButtons,
CharacterPad.CharacterPadLayout keyboardLayout,
int specialFlags,
boolean bBigButtons)
strFirstLineText - - text displayed in the first line of the dialogspecialButtons - - array of strings for special action buttons
displayed on the bottom of the dialogkeyboardLayout - - layout of keys for the keyboard pad, see the
CharacterPad.KEY_LAYOUT_XXX constantsspecialFlags - - special styles for character pad, combination of
CHP_XXX valuesbBigButtons - - if true then the buttons will be displayed large
otherwise they will be displayed middle size
TODO: Bug: SWT 3.1.2: This should be returning void, but due to the bug
bellow we need to return the size so we can adjust the size of the window
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||