|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.microedition.lcdui.Displayable | +--javax.microedition.lcdui.Canvas | +--com.skyarts.midp.ui.AbstractDialog
ダイアログの元になるクラス。
フィールドの概要 | |
static int |
BUTTON_CANCEL
取消(CANCEL)ボタンが押下されたときにListenerに渡される定数 |
static int |
BUTTON_NO
いいえ(NO)ボタンが押下されたときにListenerに渡される定数 |
static int |
BUTTON_OK
確認(OK)ボタンが押下されたときにListenerに渡される定数 |
static int |
BUTTON_YES
はい(Yes)ボタンが押下されたときにListenerに渡される定数 |
static int |
CANCEL_BUTTONSET
Cancelボタンを指定する時に使用する定数 |
static int |
CONFIRM
確認ダイアログを指定する時に使用する定数 |
static int |
ERROR
エラーダイアログを指定する時に使用する定数 |
static int |
INFO
Infoダイアログを指定する時に使用する定数 |
static int |
LANG_EN
ボタンのテキストを英語に指定する時に使用する定数(デフォルト) |
static int |
LANG_JP
ボタンのテキストを日本語に指定する時に使用する定数 |
static int |
OK_BUTTONSET
OKボタンを指定する時に使用する定数 |
static int |
WRNING
警告ダイアログを指定する時に使用する定数 |
static int |
YES_NO_BUTTONSET
Yes,Noボタンを指定する時に使用する定数 |
static int |
YES_NO_CANCEL_BUTTONSET
Yes,No,Cancelボタンを指定する時に使用する定数 |
クラス 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()
ボタンのテキストが英語、または日本語かを返すメソッド |
int |
getButtonSet()
ダイアログのボタンセットを返すメソッド |
int |
getDialogColor()
ダイアログの枠のカラーを返すメソッド |
DialogListener |
getDialogListener()
セットされているDialogListenerを返すメソッド。 |
java.lang.String |
getText()
ダイアログに表示するテキストを返すメソッド |
java.lang.String |
getTitle()
ダイアログのタイトルテキストを返すメソッド |
int |
getType()
ダイアログのタイプを返すメソッド |
void |
setButtonLanguage(int lang)
ボタンのテキストを英語、日本語を切り替えるためのメソッド |
void |
setButtonSet(int buttonSet)
ダイアログのボタンセットをセットするメソッド |
void |
setDialogColor(int rgb)
ダイアログの枠のカラーをセットするメソッド |
void |
setDialogListener(DialogListener listener)
DialogListenerをセットするメソッド。 |
void |
setText(java.lang.String text)
ダイアログに表示するテキストをセットするメソッド。 |
void |
setTitle(java.lang.String title)
ダイアログのタイトルテキストをセットするメソッド |
void |
setType(int type)
ダイアログのタイプをセットするメソッド |
クラス 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
- ダイアログに表示するテキスト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
- ダイアログのイベントを受け取るDialogListenerのインスタンスpublic DialogListener getDialogListener()
public void setTitle(java.lang.String title)
title
- ダイアログのタイトルテキストpublic java.lang.String getTitle()
public void setButtonLanguage(int lang)
lang
- 英語、日本語を切り替えるための値。LANG_EN、またはLANG_JPのどちらかのみpublic int getButtonLanguage()
public void setButtonSet(int buttonSet)
buttonSet
- YES_NO_CANCEL_BUTTONSET, YES_NO_BUTTONSET, CANCEL_BUTTONSET, OK_BUTTONSETのいづれかpublic int getButtonSet()
public void setDialogColor(int rgb)
public int getDialogColor()
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |