- java.lang.Object
-
- javax.swing.AbstractAction
-
- javax.swing.plaf.basic.BasicTreeUI.TreePageAction
-
- All Implemented Interfaces:
-
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Enclosing class:
- BasicTreeUI
public class BasicTreeUI.TreePageAction extends AbstractAction
TreePageAction处理页面向上和向下翻页事件。- 另请参见:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 描述 protected int
direction
指定调整选择的方向。-
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 描述 TreePageAction(int direction, String name)
构造一个新的实例TreePageAction
。
-
方法摘要
所有方法 接口方法 具体的方法 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
-
-
-
-
构造方法详细信息
-
TreePageAction
public TreePageAction(int direction, String name)
构造一个新的实例TreePageAction
。- 参数
-
direction
- 方向 -
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()
-
-