com.skyarts.midp.ui
??? AbstractDialog

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

public abstract class AbstractDialog
extends javax.microedition.lcdui.Canvas

Base Dialog class


????????
static int BUTTON_CANCEL
          The constant passed to Listener when the Cancel button is pushed
static int BUTTON_NO
          The constant passed to Listener when the No button is pushed
static int BUTTON_OK
          The constant passed to Listener when the OK button is pushed
static int BUTTON_YES
          The constant passed to Listener when the Yes button is pushed
static int CANCEL_BUTTONSET
          The constant used when specifying Cancel button
static int CONFIRM
          The constant used when specifying an Confirm dialog
static int ERROR
          The constant used when specifying an Error dialog
static int INFO
          The constant used when specifying an 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 used when specifying an 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 of 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 of 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
 

????????

INFO

public static final int INFO
The constant used when specifying an Info dialog

CONFIRM

public static final int CONFIRM
The constant used when specifying an Confirm dialog

ERROR

public static final int ERROR
The constant used when specifying an Error dialog

WRNING

public static final int WRNING
The constant used when specifying an 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 the Yes button is pushed

BUTTON_NO

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

BUTTON_CANCEL

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

BUTTON_OK

public static final int BUTTON_OK
The constant passed to Listener when the 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
??????????

AbstractDialog

public AbstractDialog()
???????

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.
?????:
text - The text displayed on a dialog

getText

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

setType

public void setType(int type)
The method which sets the type of a dialog
?????:
type - The type of a dialog.CONFIRM,YES_NO_CANCEL,INFO,CANCEL

getType

public int getType()
The method which returns the type of a dialog
???:
int The type of a dialog.CONFIRM,YES_NO_CANCEL,INFO,CANCEL

setDialogListener

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

getDialogListener

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

setTitle

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

getTitle

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

setButtonLanguage

public void setButtonLanguage(int lang)
The method for changing English and Japanese for the text of a button
?????:
lang - The 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
???:
int LANG_EN or LANG_JP

setButtonSet

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

getButtonSet

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

setDialogColor

public void setDialogColor(int rgb)
The method which sets the color of the frame of a dialog
???:
rgb The int value of the color of the frame of a dialog

getDialogColor

public int getDialogColor()
The method which returns the color of the frame of a dialog
???:
int The int value of the color of the frame of a dialog