|
||||||||
????? ????? | ?????? ?????? | |||||||
??: ????? | ????? | ??????? | ???? | ??: ????? | ??????? | ???? |
java.lang.Object | +--javax.microedition.lcdui.Displayable | +--javax.microedition.lcdui.Canvas | +--com.skyarts.midp.ui.AbstractDialog
The class which becomes the origin of a dialog.
???????? | |
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 |
?????????? | |
AbstractDialog()
|
??????? | |
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 |
int |
getDialogColor()
The method which returns the color of the frame 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 |
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 |
setDialogColor(int rgb)
The method which sets the color of the frame 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. |
??? 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 AbstractDialog()
??????? |
public void setText(java.lang.String text)
text
- The text displayed on a dialog.public java.lang.String getText()
public void setType(int type)
type
- ??????????CONFIRM?YES_NO_CANCEL?INFO?CANCEL????????public int getType()
public void setDialogListener(DialogListener listener)
listener
- The instance of DialogListener which receives the event of a dialog.public DialogListener getDialogListener()
public void setTitle(java.lang.String title)
title
- The title text displayed on a dialog.public java.lang.String getTitle()
public void setButtonLanguage(int lang)
lang
- Value for changing English and Japanese. Either LANG_EN or LANG_JP.public int getButtonLanguage()
public void setButtonSet(int buttonSet)
buttonSet
- YES_NO_CANCEL_BUTTONSET or YES_NO_BUTTONSET or CANCEL_BUTTONSET or OK_BUTTONSETpublic int getButtonSet()
public void setDialogColor(int rgb)
public int getDialogColor()
|
||||||||
????? ????? | ?????? ?????? | |||||||
??: ????? | ????? | ??????? | ???? | ??: ????? | ??????? | ???? |