Kagetaka

net.hizlab.kagetaka.awt
クラス MessageBox

java.lang.Object
  拡張java.awt.Component
      拡張java.awt.Container
          拡張java.awt.Window
              拡張java.awt.Dialog
                  拡張net.hizlab.kagetaka.awt.DialogBox
                      拡張net.hizlab.kagetaka.awt.MessageBox
すべての実装インタフェース:
Accessible, ImageObserver, MenuContainer, Serializable

public class MessageBox
extends DialogBox

メッセージボックスです。

バージョン:
$Revision: 1.2 $
関連項目:
直列化された形式

入れ子クラスの概要
 
クラス java.awt.Dialog から継承した入れ子クラス
Dialog.AccessibleAWTDialog
 
クラス java.awt.Window から継承した入れ子クラス
Window.AccessibleAWTWindow
 
クラス java.awt.Container から継承した入れ子クラス
Container.AccessibleAWTContainer
 
クラス java.awt.Component から継承した入れ子クラス
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
フィールドの概要
static int BUTTON_OK
          OK ボタン
static int BUTTON_OKCANCEL
          OK とキャンセルボタン
static int BUTTON_YESNO
          YES と NO ボタン
static int BUTTON_YESNOCANCEL
          YES と NO とキャンセルボタン
static int DEFAULT_BUTTON1
          第一ボタンをデフォルトに
static int DEFAULT_BUTTON2
          第二ボタンをデフォルトに
static int DEFAULT_BUTTON3
          第三ボタンをデフォルトに
static int ICON_EXCLAMATION
          エクスクラメーションマーク
static int ICON_INFORMATION
          情報マーク
static int ICON_QUESTION
          クエスチョンマーク
static int ICON_STOP
          ストップマーク
protected static int MASK_ICON
          アイコン用マスク
 
クラス net.hizlab.kagetaka.awt.DialogBox から継承したフィールド
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, BUTTON_CANCEL, BUTTON_OKCANCELAPPLY, COMMAND_APPLY, COMMAND_CANCEL, COMMAND_HELP, COMMAND_NO, COMMAND_OK, COMMAND_YES, DEFAULT_BUTTON4, mainPanel, MASK_ALIGN, MASK_BUTTON, MASK_DEFAULT, OPTION_HELPBUTTON, RESULT_CANCEL, RESULT_NO, RESULT_NONE, RESULT_OK, RESULT_YES
 
クラス java.awt.Component から継承したフィールド
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
インタフェース java.awt.image.ImageObserver から継承したフィールド
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
コンストラクタの概要
MessageBox(Frame owner)
          メッセージグボックスを表示し、その結果を返します。
 
メソッドの概要
 String getMessage()
          設定されているメッセージを返します。
 void setMessage(String value)
          メッセージを設定します。
 void setMode(int value)
          モードを設定します。
static int show(Frame owner, String message, String title, int mode)
          メッセージグボックスを表示し、その結果を返します。
 
クラス net.hizlab.kagetaka.awt.DialogBox から継承したメソッド
addButtonActionListener, addButtonComponentListener, addButtonFocusListener, addButtonKeyListener, addButtonMouseListener, addButtonMouseMotionListener, addComponentListener, addContainerListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addToPanel, clearResult, dialogClosing, getMode, getResult, removeButtonActionListener, removeButtonComponentListener, removeButtonFocusListener, removeButtonKeyListener, removeButtonMouseListener, removeButtonMouseMotionListener, removeComponentListener, removeContainerListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setButtonLabel, setLocationToCenter, setSize
 
クラス java.awt.Dialog から継承したメソッド
addNotify, dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated, show
 
クラス java.awt.Window から継承したメソッド
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
クラス java.awt.Container から継承したメソッド
add, add, add, add, add, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
クラス java.awt.Component から継承したメソッド
action, add, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

BUTTON_OK

public static final int BUTTON_OK
OK ボタン

関連項目:
定数フィールド値

BUTTON_OKCANCEL

public static final int BUTTON_OKCANCEL
OK とキャンセルボタン

関連項目:
定数フィールド値

BUTTON_YESNO

public static final int BUTTON_YESNO
YES と NO ボタン

関連項目:
定数フィールド値

BUTTON_YESNOCANCEL

public static final int BUTTON_YESNOCANCEL
YES と NO とキャンセルボタン

関連項目:
定数フィールド値

DEFAULT_BUTTON1

public static final int DEFAULT_BUTTON1
第一ボタンをデフォルトに

関連項目:
定数フィールド値

DEFAULT_BUTTON2

public static final int DEFAULT_BUTTON2
第二ボタンをデフォルトに

関連項目:
定数フィールド値

DEFAULT_BUTTON3

public static final int DEFAULT_BUTTON3
第三ボタンをデフォルトに

関連項目:
定数フィールド値

ICON_EXCLAMATION

public static final int ICON_EXCLAMATION
エクスクラメーションマーク

関連項目:
定数フィールド値

ICON_INFORMATION

public static final int ICON_INFORMATION
情報マーク

関連項目:
定数フィールド値

ICON_QUESTION

public static final int ICON_QUESTION
クエスチョンマーク

関連項目:
定数フィールド値

ICON_STOP

public static final int ICON_STOP
ストップマーク

関連項目:
定数フィールド値

MASK_ICON

protected static final int MASK_ICON
アイコン用マスク

関連項目:
定数フィールド値
コンストラクタの詳細

MessageBox

public MessageBox(Frame owner)
メッセージグボックスを表示し、その結果を返します。

パラメータ:
owner - オーナー
メソッドの詳細

getMessage

public String getMessage()
設定されているメッセージを返します。

戻り値:
メッセージ

setMessage

public void setMessage(String value)
メッセージを設定します。

パラメータ:
value - メッセージ

setMode

public void setMode(int value)
モードを設定します。

オーバーライド:
クラス DialogBox 内の setMode
パラメータ:
value - モード

show

public static int show(Frame owner,
                       String message,
                       String title,
                       int mode)
メッセージグボックスを表示し、その結果を返します。

パラメータ:
owner - オーナー
message - メッセージ
title - タイトル
mode - モード
戻り値:
押されたボタン

Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'September 12, 2003'