public abstract class TagAction
extends javax.swing.AbstractAction
implements javax.swing.event.TreeSelectionListener
Modifier and Type | Field and Description |
---|---|
protected DesignerContext |
context |
Constructor and Description |
---|
TagAction(DesignerContext context,
java.lang.String name) |
TagAction(DesignerContext context,
java.lang.String name,
javax.swing.Icon icon) |
Modifier and Type | Method and Description |
---|---|
protected TagProviderNode |
findProvider(TagPathTreeNode node)
Returns the tag provider node above this node, or null if there is none
|
protected TagPathTreeNode |
getNode() |
protected ClientTagManager |
getTagManager() |
protected abstract int |
maxSelectionCount() |
protected void |
reload(java.util.List<TagPathTreeNode> nodes,
boolean startAtParent) |
protected void |
reload(TagPathTreeNode node,
boolean startAtParent) |
protected void |
setTree(javax.swing.JTree tree) |
protected abstract boolean |
shouldBeEnabled(TagPathTreeNode node)
Called for each selected node that isn't a meta node.
|
protected boolean |
shouldBeEnabled(TagPathTreeNode[] nodes) |
void |
valueChanged(javax.swing.event.TreeSelectionEvent e) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected DesignerContext context
public TagAction(DesignerContext context, java.lang.String name, javax.swing.Icon icon)
public TagAction(DesignerContext context, java.lang.String name)
protected ClientTagManager getTagManager()
protected void setTree(javax.swing.JTree tree)
protected void reload(java.util.List<TagPathTreeNode> nodes, boolean startAtParent)
protected void reload(TagPathTreeNode node, boolean startAtParent)
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
protected boolean shouldBeEnabled(TagPathTreeNode[] nodes)
protected abstract boolean shouldBeEnabled(TagPathTreeNode node)
protected abstract int maxSelectionCount()
protected TagPathTreeNode getNode()
protected TagProviderNode findProvider(TagPathTreeNode node)