|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.fiverworks.xone.ut.GuiUt
Guiアプリケーションのユーティリティクラスです。
フィールドの概要 | |
static Font |
BOLD_FONT
システムの内部で使用しているボールドフォント |
static int |
CANCEL
ダイアログで「キャンセル」をクリックしたときの値 |
static Font |
DEFAULT_FONT
システムの内部で使用しているデフォルトのフォント |
static int |
NO
ダイアログで「いいえ」をクリックしたときの値 |
static int |
OK
ダイアログで「OK」をクリックしたときの値 |
static int |
YES
ダイアログで「はい」をクリックしたときの値 |
メソッドの概要 | |
static void |
setAllFont(Container container)
指定されたコンテナの全てのフォントをデフォルトのフォントに設定します。 |
static void |
setAllFont(Container container,
Font font)
指定されたコンテナの全てのフォントを指定されたフォントに設定します。 |
static void |
setAllState(Container container,
boolean status)
コンテナ上の全てのコンポーネントの状態を設定します。 |
static void |
setCenterOfParent(Component comp,
Component parent)
指定されたコンポーネントを指定された親コンポーネントの中央の位置に設定します。 |
static void |
setCenterOfScreen(Component comp)
指定されたコンポーネントの位置を画面(スクリーン)の中央に設定します。 |
static void |
setFavoriteLocation(Component comp,
Component parent)
指定されたコンポーネントを指定された親コンポーネントの適当な位置に設定します。 |
static int |
showConfirmDialog(Component parent,
String message)
指定されたパラメータにしたがって確認ダイアログを表示します。 |
static int |
showConfirmDialog(Component parent,
String message,
String title)
指定されたパラメータにしたがって確認ダイアログを表示します。 |
static int |
showDialog(Component parent,
Object message,
String title,
int messageType,
int optionType)
指定されたパラメータにしたがってダイアログを表示します。 |
static void |
showErrorDialog(Component parent,
String message)
指定されたパラメータにしたがってエラーダイアログを表示します。 |
static void |
showErrorDialog(Component parent,
String message,
String title)
指定されたパラメータにしたがってエラーダイアログを表示します。 |
static void |
showInformationDialog(Component parent,
String message,
String title)
指定されたパラメータにしたがって情報ダイアログを表示します。 |
static String |
showInputDialog(Component parent,
String message)
指定されたパラメータにしたがって入力ダイアログを表示します。 |
static void |
showMessageDialog(Component parent,
String message,
String title,
int messageType)
指定されたパラメータにしたがってメッセージダイアログを表示します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final int YES
public static final int NO
public static final int CANCEL
public static final int OK
public static Font DEFAULT_FONT
public static Font BOLD_FONT
メソッドの詳細 |
public static void showMessageDialog(Component parent, String message, String title, int messageType)
parent
- 親のコンポーネントmessage
- 表示するメッセージtitle
- ダイアログのタイトルmessageType
- メッセージのタイプ(javax.swing.JOptionPane
を参照してください)public static void showErrorDialog(Component parent, String message)
parent
- 親のコンポーネントmessage
- 表示するメッセージpublic static void showErrorDialog(Component parent, String message, String title)
parent
- 親のコンポーネントmessage
- 表示するメッセージtitle
- ダイアログのタイトルpublic static void showInformationDialog(Component parent, String message, String title)
parent
- 親のコンポーネントmessage
- 表示するメッセージtitle
- ダイアログのタイトルpublic static int showConfirmDialog(Component parent, String message)
parent
- 親のコンポーネントmessage
- 表示するメッセージ
public static int showConfirmDialog(Component parent, String message, String title)
parent
- 親のコンポーネントmessage
- 表示するメッセージtitle
- ダイアログのタイトル
public static String showInputDialog(Component parent, String message)
parent
- 親のコンポーネントmessage
- 表示するメッセージ
public static int showDialog(Component parent, Object message, String title, int messageType, int optionType)
parent
- 親のコンポーネントmessage
- 表示するメッセージtitle
- ダイアログのタイトルmessageType
- メッセージのタイプ(javax.swing.JOptionPane
を参照してください)optionType
- オプションのタイプ(javax.swing.JOptionPane
を参照してください)
public static void setAllFont(Container container)
container
- ターゲットのコンテナpublic static void setAllFont(Container container, Font font)
container
- ターゲットのコンテナfont
- 設定したいフォントpublic static void setAllState(Container container, boolean status)
container
- ターゲットのコンテナstatus
- 設定したい状態public static void setCenterOfScreen(Component comp)
comp
- コンポーネントpublic static void setFavoriteLocation(Component comp, Component parent)
comp
- 子のコンポーネントparent
- 親のコンポーネント。nullの場合はスクリーンと見なすpublic static void setCenterOfParent(Component comp, Component parent)
comp
- 子のコンポーネントparent
- 親のコンポーネント。nullの場合はスクリーンと見なす(setCenterOfScreen
と同じ)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |