gui
クラス ExitAction

java.lang.Object
  上位を拡張 javax.swing.AbstractAction
      上位を拡張 gui.ExitAction
すべての実装されたインタフェース:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ExitAction
extends javax.swing.AbstractAction

プログラム実行終了アクション

関連項目:
直列化された形式

入れ子のクラスの概要
static class ExitAction.WinExitEventHandler
          プログラム実行終了アクション
 
フィールドの概要
private  java.awt.Component base
          ダイアログの所有者
 
クラス javax.swing.AbstractAction から継承されたフィールド
changeSupport, enabled
 
インタフェース javax.swing.Action から継承されたフィールド
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
コンストラクタの概要
ExitAction(java.awt.Component base)
          アクションオブジェクトを構築する
ExitAction(java.awt.Component base, javax.swing.Icon icon)
          アイコンを指定してアクションオブジェクトを構築する
 
メソッドの概要
static java.lang.String actionName()
          アクション名称を返す
 void actionPerformed(java.awt.event.ActionEvent e)
          プログラムの実行を終了する
private static int confirmDialog(java.awt.Component base)
          確認ダイアログを表示する
 
クラス javax.swing.AbstractAction から継承されたメソッド
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
クラス java.lang.Object から継承されたメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

base

private java.awt.Component base
ダイアログの所有者

コンストラクタの詳細

ExitAction

public ExitAction(java.awt.Component base)
アクションオブジェクトを構築する

パラメータ:
base - ダイアログの所有者

ExitAction

public ExitAction(java.awt.Component base,
                  javax.swing.Icon icon)
アイコンを指定してアクションオブジェクトを構築する

パラメータ:
base - ダイアログの所有者
icon - アイコン
メソッドの詳細

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
プログラムの実行を終了する

パラメータ:
e - アクションが発生したことを示すイベント

confirmDialog

private static int confirmDialog(java.awt.Component base)
確認ダイアログを表示する

パラメータ:
base - ダイアログの所有者
戻り値:
ユーザが選択したオプションを表す整数値

actionName

public static java.lang.String actionName()
アクション名称を返す

戻り値:
アクション名称