- java.lang.Object
-
- javax.swing.AbstractAction
-
- javax.swing.plaf.basic.BasicTreeUI.TreeToggleAction
-
- All Implemented Interfaces:
-
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Enclosing class:
- BasicTreeUI
public class BasicTreeUI.TreeToggleAction extends AbstractAction
对于第一个选定的行展开将被切换。- 另请参见:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields inherited from interface 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
-
-
构造方法摘要
构造方法 Constructor 描述 TreeToggleAction(String name)
构造一个新的实例TreeToggleAction
。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 void
actionPerformed(ActionEvent e)
发生动作时调用。boolean
isEnabled()
如果启用该操作,则返回true。-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
构造方法详细信息
-
TreeToggleAction
public TreeToggleAction(String name)
构造一个新的实例TreeToggleAction
。- 参数
-
name
- 行动名称
-
-
方法详细信息
-
actionPerformed
public void actionPerformed(ActionEvent e)
说明从接口ActionListener
复制发生动作时调用。- 参数
-
e
- 要处理的事件
-
isEnabled
public boolean isEnabled()
描述从类复制:AbstractAction
如果启用该操作,则返回true。- Specified by:
-
isEnabled
在接口Action
- 重写:
-
isEnabled
在AbstractAction
- 结果
- 如果启用该操作,则为true,否则为false
- 另请参见:
-
Action.isEnabled()
-
-