com.japisoft.xmlpad.tree.action
Class AbstractTreeAction
java.lang.Object
javax.swing.AbstractAction
com.japisoft.xmlpad.action.XMLAction
com.japisoft.xmlpad.tree.action.AbstractTreeAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, Features, Properties, java.io.Serializable, TreeAction
- Direct Known Subclasses:
- AddHistoryAction, CleanHistoryAction, CommentNode, CopyNode, CutNode, EditNode, NextAction, PreviousAction, SelectNode
- public abstract class AbstractTreeAction
- extends XMLAction
- implements TreeAction
Basic class for Tree action
- Author:
- (c) 2003 JAPISOFT / A.Brillant
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class com.japisoft.xmlpad.action.XMLAction |
actionPerformed, autoRequestFocus, dispose, getDefaultAccelerator, getDefaultIcon, getDefaultLabel, getDefaultMnemonic, getDefaultTooltip, getLabel, getName, getParam, getPopupGroup, getProperty, getXMLContainer, getXMLEditor, hasFeature, installUIContent, isPopable, isToolbarable, notifyXMLContainer, notifyXMLEditor, setActionDelegate, setActionReferenceGroup, setActionReferenceIcon, setFeature, setParam, setPopable, setProperty, setToolbarable, setXMLEditor |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
treeToolBar
protected boolean treeToolBar
treePopable
protected boolean treePopable
AbstractTreeAction
public AbstractTreeAction()
AbstractTreeAction
public AbstractTreeAction(java.lang.String referenceAction)
setXMLContainer
public void setXMLContainer(XMLContainer container)
- This override controls if the container has a tree
- Overrides:
setXMLContainer
in class XMLAction
notifyAction
public boolean notifyAction()
- Description copied from class:
XMLAction
- Notify action must be done. It returns INVALID_ACTION if the
action is not accessible and VALID_ACTION if this is correct.
- Specified by:
notifyAction
in class XMLAction
- Returns:
- VALID_ACTION if the action is possible and else INVALID_ACTION
actionForSelection
protected void actionForSelection(javax.swing.tree.TreePath tp)
setTreeToolBarable
public void setTreeToolBarable(boolean treeToolBar)
true
if this action could appear inside the tree toolbar. By default true
isTreeToolBarable
public boolean isTreeToolBarable()
- Specified by:
isTreeToolBarable
in interface TreeAction
- Returns:
true
if this action could be shown in the tree toolBar
setTreePopable
public void setTreePopable(boolean treePopable)
true
if this action is available in the tree popup. By default true
isTreePopable
public boolean isTreePopable()
- Specified by:
isTreePopable
in interface TreeAction
- Returns:
true
if this action is visible in the tree popup
Copyright © 2006 JAPISoft. All Rights Reserved.