|
|||||||||
| 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.NumberPadDialog
public class NumberPadDialog
Dialog used to enter number using mouse or finger.
| Field Summary | |
|---|---|
protected NumberPad |
m_npad
Number pad of this dialog |
protected java.util.Set |
m_setListeners
Set where all listeners listening to the event notifications specific to this object are stored. |
protected java.lang.String |
m_text
Variable to store number pad text |
| Fields inherited from class org.opensubsystems.core.application.swt.SWTThickClientDialogGuiImpl |
|---|
m_client, m_oldClientLocation, m_outsideBoundingArea, m_parent, m_shell |
| Constructor Summary | |
|---|---|
NumberPadDialog()
|
|
| Method Summary | |
|---|---|
void |
addNumberPadListener(NumberPadListener listener)
Add listener for this number pad. |
protected org.eclipse.swt.graphics.Point |
createClientArea(java.lang.String strFirstLineText,
java.lang.String strSpecialButtonText,
java.lang.String strInitialText,
boolean bBigButtons,
boolean bDecimalDot)
Create the client area of the dialog. |
protected void |
displayDialog(java.lang.String strFirstLineText,
java.lang.String strSpecialButtonText,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
boolean bDecimalDot,
NumberPadListener specialButtonListener)
Show the dialog. |
void |
displayDialog(org.opensubsystems.core.application.ThickClientDialog parentDialog,
java.lang.String strTitle,
java.lang.String strFirstLineText,
java.lang.String strSpecialButtonText,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
boolean bDecimalDot,
NumberPadListener specialButtonListener)
Show the dialog. |
void |
displayDialog(org.opensubsystems.core.application.ThickClient client,
java.lang.String strTitle,
java.lang.String strFirstLineText,
java.lang.String strSpecialButtonText,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
boolean bDecimalDot,
NumberPadListener specialButtonListener)
Show the dialog. |
java.lang.String |
getText()
Get the number pad text |
void |
removeNumberPadListener(NumberPadListener listener)
Remove listener from this number pad. |
void |
setText(java.lang.String string)
|
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 java.lang.String m_text
protected NumberPad m_npad
| Constructor Detail |
|---|
public NumberPadDialog()
| Method Detail |
|---|
public void displayDialog(org.opensubsystems.core.application.ThickClient client,
java.lang.String strTitle,
java.lang.String strFirstLineText,
java.lang.String strSpecialButtonText,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
boolean bDecimalDot,
NumberPadListener specialButtonListener)
client - - application displaying this dialogstrTitle - - title of the dialogstrFirstLineText - - text displayed in the first line of the dialogstrSpecialButtonText - - text on the buttonstrMaxTextLength - - 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 sizebDecimalDot - - if true extra line with decimal dot will be added
to dialog. If bDecimalDot id true, number of decimal
places can be setspecialButtonListener - - 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 strSpecialButtonText,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
boolean bDecimalDot,
NumberPadListener specialButtonListener)
parentDialog - - dialog displaying this dialogstrTitle - - title of the dialogstrFirstLineText - - text displayed in the first line of the dialogstrSpecialButtonText - - text on the buttonstrMaxTextLength - - 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 sizebDecimalDot - - if true extra line with decimal dot will be added
to dialog. If bDecimalDot id true, number of decimal
places can be setspecialButtonListener - - listener executed when the button is clickedpublic java.lang.String getText()
public void setText(java.lang.String string)
string - - number pad textpublic boolean setTextLimit(int iLimit)
iLimit - - maximal number of chracters
public void addNumberPadListener(NumberPadListener listener)
listener - - listener to addpublic void removeNumberPadListener(NumberPadListener listener)
listener - - listener to remove
protected void displayDialog(java.lang.String strFirstLineText,
java.lang.String strSpecialButtonText,
int strMaxTextLength,
java.lang.String strInitialText,
boolean bBigButtons,
boolean bDecimalDot,
NumberPadListener specialButtonListener)
strFirstLineText - - text displayed in the first line of the dialogstrSpecialButtonText - - text on the buttonstrMaxTextLength - - 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 sizebDecimalDot - - if true extra line with decimal dot will be added
to dialog. If bDecimalDot id true, number of decimal
places can be setspecialButtonListener - - listener executed when the button is clicked
protected org.eclipse.swt.graphics.Point createClientArea(java.lang.String strFirstLineText,
java.lang.String strSpecialButtonText,
java.lang.String strInitialText,
boolean bBigButtons,
boolean bDecimalDot)
strFirstLineText - - text displayed in the first line of the dialogstrSpecialButtonText - - text on the buttonstrInitialText - - initial text to put to the dialogbBigButtons - - if true then the buttons will be displayed large
otherwise they will be displayed middle sizebDecimalDot - - if true extra line with decimal dot will be added
to dialog. If bDecimalDot id true, number of decimal
places can be set
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 | ||||||||