jp.hishidama.swing.action
クラス DelegateAction

java.lang.Object
  上位を拡張 javax.swing.AbstractAction
      上位を拡張 jp.hishidama.swing.action.DelegateAction
すべての実装されたインタフェース:
ActionListener, Serializable, Cloneable, EventListener, Action
直系の既知のサブクラス:
TextDelegateAction

public class DelegateAction
extends AbstractAction

委譲アクション.

対象コンポーネントにアクションを委譲する。

導入されたバージョン:
2009.04.19
作成者:
ひしだま
関連項目:
直列化された形式

フィールドの概要
 
インタフェース javax.swing.Action から継承されたフィールド
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
コンストラクタの概要
DelegateAction(Component c, Action action)
          コンストラクター.
 
メソッドの概要
 void actionPerformed(ActionEvent e)
           
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 Object getValue(String key)
           
 boolean isEnabled()
           
 void putValue(String key, Object value)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void setEnabled(boolean b)
           
 
クラス javax.swing.AbstractAction から継承されたメソッド
getKeys, getPropertyChangeListeners
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DelegateAction

public DelegateAction(Component c,
                      Action action)
コンストラクター.

パラメータ:
c - 処理対象コンポーネント
action - 委譲先アクション
メソッドの詳細

actionPerformed

public void actionPerformed(ActionEvent e)

getValue

public Object getValue(String key)
定義:
インタフェース Action 内の getValue
オーバーライド:
クラス AbstractAction 内の getValue

putValue

public void putValue(String key,
                     Object value)
定義:
インタフェース Action 内の putValue
オーバーライド:
クラス AbstractAction 内の putValue

setEnabled

public void setEnabled(boolean b)
定義:
インタフェース Action 内の setEnabled
オーバーライド:
クラス AbstractAction 内の setEnabled

isEnabled

public boolean isEnabled()
定義:
インタフェース Action 内の isEnabled
オーバーライド:
クラス AbstractAction 内の isEnabled

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
定義:
インタフェース Action 内の addPropertyChangeListener
オーバーライド:
クラス AbstractAction 内の addPropertyChangeListener

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
定義:
インタフェース Action 内の removePropertyChangeListener
オーバーライド:
クラス AbstractAction 内の removePropertyChangeListener