Navigable.NavigableComparator| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTIES_NODE_LABEL |
BOLD, DEFAULT_CHILD_COMPARATOR_KEY, ITALIC, NAVIGABLE_COMPARATOR, PLAIN| Constructor and Description |
|---|
ProjectContentNavigable() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendChildNavigables(javax.swing.tree.DefaultMutableTreeNode parent, NavigableContext nc)
This method calls
Navigable.getChildNavigables() to get the list of child Navigable objects. |
protected abstract Navigable |
getGenericNavigable(java.lang.String label, java.lang.String contentSetKey) |
java.lang.Class |
getTraversableClass()
Returns the class object of the described
Traversable. |
boolean |
isUsingTraversableDefaultConstructor()
Returns
true of the construction of the associated Traversable uses its default constructor; returns false if a constructor other than the default is used. |
protected boolean |
mayHaveChildren(NavigableContext nc)
Overridable method to determine whether a
Navigable may have children such that a + may be shown next to it in the tree. |
Traversable |
newTraversable(ApplyNotifier applyNotifier)
This method specifies the
Traversable that will be used in association with the Navigable; in general, only NavigableUIContainer implementations should call this method directly. |
static void |
setDefaultContentSet(java.lang.String contentSetKey) |
addChildNavigable, appendChildNodes, appendDetailNavigables, copyTo, copyToImpl, createDetailRootNode, createTreeNode, createTreeNodeImpl, getChildComparator, getChildNavigables, getChildren, getDetailNavigables, getDisplayStyle, getIcon, getLongLabel, getRawShortLabel, getShortLabel, getToolTipText, includeInDefault, setChildComparator, setChildNavigables, setDataScope, setDisplayStyle, setShortLabel, sortNavigables, toStringcopyToImpl, findHelpID, newTraversable, setHelpID, setNameLinkpublic static void setDefaultContentSet(java.lang.String contentSetKey)
protected abstract Navigable getGenericNavigable(java.lang.String label, java.lang.String contentSetKey)
public Traversable newTraversable(ApplyNotifier applyNotifier)
MetaTraversableTraversable that will be used in association with the Navigable; in general, only NavigableUIContainer implementations should call this method directly.
NOTE: Subclasses should override the MetaTraversable.newTraversable() method instead of this method whenever possible. The reason for this is that the implementation of this method takes care of registering the Traversable returned by newTraversable() as an ApplyListener.
Implementations should return a new Traversable instance each time this method is called; specifically the implementation should not attempt to cache the returned Traversable because caching is the responsibility of the NavigableUIContainer that is rendering this Navigable.
By default, this method uses the Class that was specified when this Navigable was created and calls Class.newInstance() on that Class to create the new Traversable. If the class is null or the class does not implement a public default constructor or the newly created object cannot be cast to Traversable, this method will return an instance of DefaultTraversablePanel. If the class implements the ApplyListener interface, then the Traversable instance will be added as an ApplyListener to the NavigableUIContainer as well.
newTraversable in class MetaTraversableapplyNotifier - Subclasses that override this method can register an ApplyListener with the NavigableUIContainer.Traversable which represents the detail UI component that is shown when the user selects this Navigable in the NavigableUIContainer.public java.lang.Class getTraversableClass()
MetaTraversableTraversable.getTraversableClass in class MetaTraversablepublic boolean isUsingTraversableDefaultConstructor()
MetaTraversabletrue of the construction of the associated Traversable uses its default constructor; returns false if a constructor other than the default is used.isUsingTraversableDefaultConstructor in class MetaTraversableprotected boolean mayHaveChildren(NavigableContext nc)
NavigableNavigable may have children such that a + may be shown next to it in the tree. Implementations can override this when the result is known a priori and a call to getChildNavigables() could be expensive. The test should include detail Navigable instances as well if the NavigableContext specifies that detail nodes should be shown as childrenmayHaveChildren in class Navigablenc - The NavigableContext used to determine the context of the check
protected void appendChildNavigables(javax.swing.tree.DefaultMutableTreeNode parent,
NavigableContext nc)
NavigableNavigable.getChildNavigables() to get the list of child Navigable objects. Then this method calls appendChildNodes to append the child Navigables to the specified parent.appendChildNavigables in class Navigableparent - The node to which the child nodes will be added.nc - The NavigableContext in which this Navigable should render the child tree nodes.