|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjavax.swing.AbstractAction
org.boxed_economy.besp.presentation.bface.menu.MenuElement
org.boxed_economy.besp.presentation.bface.menu.MenuElementGroup
メニュの要素をグループ化するためのクラス メニュー要素をグループに追加する方針にすることによって、メニュー要素の順序の制御が容易になります。 サブクラス ○MenuBar(メニューバー) ○MenuGroup(メニューの順番を制御するためのグループ) ○Menu(メニュー) ○ActionGroup(メニュー内においてセパレータで区切られるグループ)
フィールドの概要 |
クラス org.boxed_economy.besp.presentation.bface.menu.MenuElement から継承したフィールド |
ICON |
クラス javax.swing.AbstractAction から継承したフィールド |
changeSupport, enabled |
インタフェース javax.swing.Action から継承したフィールド |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
コンストラクタの概要 | |
MenuElementGroup()
|
|
MenuElementGroup(java.lang.String name)
|
メソッドの概要 | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
add(MenuElement element)
子要素を追加します |
void |
add(MenuElement element,
int index)
Index指定で子要素を追加します |
void |
addActionGroupListener(MenuElementGroupListener l)
|
protected void |
fireStateChanged(MenuElementGroupEvent e)
|
java.util.List |
getElements()
子要素の集合を取得します |
protected void |
refresh()
|
MenuElement |
remove(int index)
Index指定で子要素を削除します |
void |
remove(MenuElement element)
子要素を削除します |
void |
removeActionGroupListener(MenuElementGroupListener l)
|
void |
setEnabled(boolean enabled)
子要素が全て設定されるようにオーバーライドします |
protected void |
setPresentationContainer(PresentationContainer container)
ツリー配下の全ての要素に設定します (少しパフォーマンスは落ちますが、ツリーをツリーに足すことが考えられるので、このコードは確実です) |
void |
stateChanged(MenuElementGroupEvent ev)
|
クラス org.boxed_economy.besp.presentation.bface.menu.MenuElement から継承したメソッド |
getAccelerator, getContainer, getIcon, getModelContainer, getName, getPresentationContainer, getSmallIcon, setAccelerator, setIcon, setIcon, setName, setSmallIcon, setSmallIcon |
クラス javax.swing.AbstractAction から継承したメソッド |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener |
クラス java.lang.Object から継承したメソッド |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public MenuElementGroup()
Object.Object()
public MenuElementGroup(java.lang.String name)
AbstractAction.AbstractAction(String)
メソッドの詳細 |
public void add(MenuElement element)
element
- public void add(MenuElement element, int index)
element
- index
- public MenuElement remove(int index)
index
-
public void remove(MenuElement element)
element
- public java.util.List getElements()
protected void setPresentationContainer(PresentationContainer container)
MenuElement
内の setPresentationContainer
public void stateChanged(MenuElementGroupEvent ev)
MenuElementGroupListener
内の stateChanged
protected void refresh()
public final void actionPerformed(java.awt.event.ActionEvent e)
java.awt.event.ActionListener
内の actionPerformed
ActionListener.actionPerformed(ActionEvent)
public void setEnabled(boolean enabled)
javax.swing.Action
内の setEnabled
AbstractAction.setEnabled(boolean)
public void addActionGroupListener(MenuElementGroupListener l)
public void removeActionGroupListener(MenuElementGroupListener l)
protected void fireStateChanged(MenuElementGroupEvent e)
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |