java.lang.Object
javax.swing.AbstractAction
javax.swing.plaf.basic.BasicTreeUI.TreeHomeAction
- 所有已实现的接口:
-
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- 封装类:
-
BasicTreeUI
TreeHomeAction 用于处理结束/主页操作。根据方向将第一个或最后一个单元格滚动到可见位置。
-
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
-
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方向。
-
-
Constructor Details
-
TreeHomeAction
构造一个新的TreeHomeAction
实例。- 参数:
-
direction
- 方向 -
name
- 动作的名称
-
-
Method Details
-
actionPerformed
从接口复制的描述:ActionListener
当发生动作时调用。- 参数:
-
e
- 要处理的事件
-