com.skyarts.midp.ui.palm
??? Dialog

java.lang.Object
  |
  +--javax.microedition.lcdui.Displayable
        |
        +--javax.microedition.lcdui.Canvas
              |
              +--com.skyarts.midp.ui.AbstractDialog
                    |
                    +--com.skyarts.midp.ui.palm.Dialog
?????????????:
ButtonOwnerable

public final class Dialog
extends AbstractDialog
implements ButtonOwnerable

MIDP for Palm OS?????????????????


????????
static int BUTTON_CANCEL
          The constant passed to Listener when Cancel button is pushed.
static int BUTTON_NO
          The constant passed to Listener when No button is pushed.
static int BUTTON_OK
          The constant passed to Listener when OK button is pushed.
static int BUTTON_YES
          The constant passed to Listener when Yes button is pushed.
static int CANCEL_BUTTONSET
          The constant used when specifying Cancel button
static int CONFIRM
          The constant which specifies confirm dialog.
static int ERROR
          The constant which specifies error dialog.
static int INFO
          The constant which specifies Info dialog.
static int LANG_EN
          The constant used when specifying the text of a button to be English. (default)
static int LANG_JP
          The constant used when specifying the text of a button to be Japanese.
static int OK_BUTTONSET
          The constant used when specifying OK button
static int WRNING
          The constant which specifies warning dialog.
static int YES_NO_BUTTONSET
          The constant used when specifying Yes, No button
static int YES_NO_CANCEL_BUTTONSET
          The constant used when specifying Yes, No, and Cancel button
 
??? javax.microedition.lcdui.Canvas ???????????
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP
 
??????????
Dialog()
          Constractor
 
???????
 void buttonPressed(Button button)
           
 int getButtonLanguage()
          The method to which the text of a button returns whether they are English or Japanese.
 int getButtonSet()
          The method which returns the button set of a dialog
 DialogListener getDialogListener()
          The method which returns DialogListener set.
 java.lang.String getText()
          The method which returns the text displayed on a dialog.
 java.lang.String getTitle()
          The method which returns the title text displayed on a dialog.
 int getType()
          The method which returns the type of a dialog.
 void preRepaint(int x, int y, int width, int height)
           
 void setButtonLanguage(int lang)
          The method for changing English and Japanese for the text of a button.
 void setButtonSet(int buttonSet)
          The method which sets the button set of a dialog.
 void setDialogListener(DialogListener listener)
          The method which sets DialogListener.
 void setText(java.lang.String text)
          The method which sets the text displayed on a dialog.
 void setTitle(java.lang.String title)
          The method which sets the title text displayed on a dialog.
 void setType(int type)
          The method which sets the type of a dialog.
 
??? com.skyarts.midp.ui.AbstractDialog ??????????
getDialogColor, setDialogColor
 
??? javax.microedition.lcdui.Canvas ??????????
getGameAction, getHeight, getKeyCode, getKeyName, getWidth, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, repaint, repaint, serviceRepaints
 
??? javax.microedition.lcdui.Displayable ??????????
addCommand, isShown, removeCommand, setCommandListener
 
??? java.lang.Object ??????????
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

????????

INFO

public static final int INFO
The constant which specifies Info dialog.

CONFIRM

public static final int CONFIRM
The constant which specifies confirm dialog.

ERROR

public static final int ERROR
The constant which specifies error dialog.

WRNING

public static final int WRNING
The constant which specifies warning dialog.

YES_NO_CANCEL_BUTTONSET

public static final int YES_NO_CANCEL_BUTTONSET
The constant used when specifying Yes, No, and Cancel button

YES_NO_BUTTONSET

public static final int YES_NO_BUTTONSET
The constant used when specifying Yes, No button

CANCEL_BUTTONSET

public static final int CANCEL_BUTTONSET
The constant used when specifying Cancel button

OK_BUTTONSET

public static final int OK_BUTTONSET
The constant used when specifying OK button

BUTTON_YES

public static final int BUTTON_YES
The constant passed to Listener when Yes button is pushed.

BUTTON_NO

public static final int BUTTON_NO
The constant passed to Listener when No button is pushed.

BUTTON_CANCEL

public static final int BUTTON_CANCEL
The constant passed to Listener when Cancel button is pushed.

BUTTON_OK

public static final int BUTTON_OK
The constant passed to Listener when OK button is pushed.

LANG_EN

public static final int LANG_EN
The constant used when specifying the text of a button to be English. (default)

LANG_JP

public static final int LANG_JP
The constant used when specifying the text of a button to be Japanese.
??????????

Dialog

public Dialog()
Constractor
???????

buttonPressed

public void buttonPressed(Button button)
??:
??????? ButtonOwnerable ?? buttonPressed

preRepaint

public void preRepaint(int x,
                       int y,
                       int width,
                       int height)
??:
??????? ButtonOwnerable ?? preRepaint

setText

public void setText(java.lang.String text)
The method which sets the text displayed on a dialog. A new line can be clearly started by "\n".
???????:
??? AbstractDialog ?? setText
?????:
text - The text displayed on a dialog.

getText

public java.lang.String getText()
The method which returns the text displayed on a dialog.
???????:
??? AbstractDialog ?? getText
???:
String The text displayed on a dialog.

setType

public void setType(int type)
The method which sets the type of a dialog.
???????:
??? AbstractDialog ?? setType
?????:
type - The text displayed on a dialog. INFO or CONFIRM or ERROR or WRNING are specified.

getType

public int getType()
The method which returns the type of a dialog.
???????:
??? AbstractDialog ?? getType
???:
int The type of a dialog. INFO or CONFIRM or ERROR or WRNING.

setDialogListener

public void setDialogListener(DialogListener listener)
The method which sets DialogListener. Only one DialogListener can be set.
???????:
??? AbstractDialog ?? setDialogListener
?????:
listener - The instance of DialogListener which receives the event of a dialog.

getDialogListener

public DialogListener getDialogListener()
The method which returns DialogListener set.
???????:
??? AbstractDialog ?? getDialogListener
???:
DialogListener The instance of DialogListener which receives the event of a dialog. It is null when not set.

setButtonLanguage

public void setButtonLanguage(int lang)
The method for changing English and Japanese for the text of a button.
???????:
??? AbstractDialog ?? setButtonLanguage
?????:
lang - Value for changing English and Japanese. Either LANG_EN or LANG_JP.

getButtonLanguage

public int getButtonLanguage()
The method to which the text of a button returns whether they are English or Japanese.
???????:
??? AbstractDialog ?? getButtonLanguage
???:
int Either LANG_EN or LANG_JP.

setTitle

public void setTitle(java.lang.String title)
The method which sets the title text displayed on a dialog.
???????:
??? AbstractDialog ?? setTitle
?????:
title - The title text displayed on a dialog.

getTitle

public java.lang.String getTitle()
The method which returns the title text displayed on a dialog.
???????:
??? AbstractDialog ?? getTitle
???:
String The title text displayed on a dialog.

setButtonSet

public void setButtonSet(int buttonSet)
The method which sets the button set of a dialog.
???????:
??? AbstractDialog ?? setButtonSet
?????:
buttonSet - YES_NO_CANCEL_BUTTONSET or YES_NO_BUTTONSET or CANCEL_BUTTONSET or OK_BUTTONSET

getButtonSet

public int getButtonSet()
The method which returns the button set of a dialog
???????:
??? AbstractDialog ?? getButtonSet
???:
int YES_NO_CANCEL_BUTTONSET or YES_NO_BUTTONSET or CANCEL_BUTTONSET or OK_BUTTONSET