java.lang.Object
javax.swing.AbstractAction
javax.swing.plaf.basic.BasicTreeUI.TreeTraverseAction
- 所有已实现的接口:
-
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- 封闭类:
-
BasicTreeUI
TreeTraverseAction
是用于左/右键的操作。将切换节点的展开状态,可能还会增加选择。
-
Field Summary
Fields declared in class javax.swing.AbstractAction
changeSupport, enabled
Fields declared in 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 Summary
ConstructorDescriptionTreeTraverseAction
(int direction, String name) 构造一个新的TreeTraverseAction
实例。 -
Method Summary
Methods declared in class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
direction
protected int direction确定遍历的方向,1表示展开,-1表示折叠。
-
-
Constructor Details
-
TreeTraverseAction
构造一个新的TreeTraverseAction
实例。- 参数:
-
direction
- 方向 -
name
- 操作的名称
-
-
Method Details
-
actionPerformed
从接口复制的描述:ActionListener
当发生操作时调用。- 参数:
-
e
- 要处理的事件
-