|
|||||||||
????? ????? | ?????? ?????? | ||||||||
??: ????? | ????? | ??????? | ???? | ??: ????? | ??????? | ???? |
java.lang.Object | +--javax.microedition.lcdui.Displayable | +--javax.microedition.lcdui.Canvas | +--com.skyarts.midp.ui.AbstractDialog | +--com.skyarts.midp.ui.palm.Dialog
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 |
???????? |
public static final int INFO
public static final int CONFIRM
public static final int ERROR
public static final int WRNING
public static final int YES_NO_CANCEL_BUTTONSET
public static final int YES_NO_BUTTONSET
public static final int CANCEL_BUTTONSET
public static final int OK_BUTTONSET
public static final int BUTTON_YES
public static final int BUTTON_NO
public static final int BUTTON_CANCEL
public static final int BUTTON_OK
public static final int LANG_EN
public static final int LANG_JP
?????????? |
public Dialog()
??????? |
public void buttonPressed(Button button)
ButtonOwnerable
?? buttonPressed
public void preRepaint(int x, int y, int width, int height)
ButtonOwnerable
?? preRepaint
public void setText(java.lang.String text)
AbstractDialog
?? setText
text
- The text displayed on a dialog.public java.lang.String getText()
AbstractDialog
?? getText
public void setType(int type)
AbstractDialog
?? setType
type
- The text displayed on a dialog. INFO or CONFIRM or ERROR or WRNING are specified.public int getType()
AbstractDialog
?? getType
public void setDialogListener(DialogListener listener)
AbstractDialog
?? setDialogListener
listener
- The instance of DialogListener which receives the event of a dialog.public DialogListener getDialogListener()
AbstractDialog
?? getDialogListener
public void setButtonLanguage(int lang)
AbstractDialog
?? setButtonLanguage
lang
- Value for changing English and Japanese. Either LANG_EN or LANG_JP.public int getButtonLanguage()
AbstractDialog
?? getButtonLanguage
public void setTitle(java.lang.String title)
AbstractDialog
?? setTitle
title
- The title text displayed on a dialog.public java.lang.String getTitle()
AbstractDialog
?? getTitle
public void setButtonSet(int buttonSet)
AbstractDialog
?? setButtonSet
buttonSet
- YES_NO_CANCEL_BUTTONSET or YES_NO_BUTTONSET or CANCEL_BUTTONSET or OK_BUTTONSETpublic int getButtonSet()
AbstractDialog
?? getButtonSet
|
|||||||||
????? ????? | ?????? ?????? | ||||||||
??: ????? | ????? | ??????? | ???? | ??: ????? | ??????? | ???? |