|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.openquark.gems.client.browser.BrowserTreeNode
public abstract class BrowserTreeNode
Specialized version of DefaultMutableTreeNode. Adds a getDisplayedString method that is used by the BrowserTreeCellRenderer to get the displayable string for a node. By default returns toString but can be overridden to return more complex information. This class also adds support for storing node sorting and categorization information.
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
BrowserTreeNode()
Generic constructor |
|
BrowserTreeNode(Object userObject)
Generic constructor |
|
BrowserTreeNode(Object userObject,
boolean allowChildren)
Generic constructor |
|
| Method Summary | |
|---|---|
BrowserTreeNode |
addNewCategoryNode(GemCategory category)
Adds the tree node to use for representing a sub-category of this node. |
GemCategorizer<?> |
getCategorizer()
Returns the categorizer associated with this node. |
String |
getDisplayedString()
Returns the string that will be used by the cell renderer to label the tree node. |
org.openquark.gems.client.browser.BrowserTreeModel.CategoryNodeProvider |
getNodeProvider()
Returns the node provider associated with this node. |
String |
getSecondaryToolTipText()
Returns information about the node hierarchy (ie: number of gems and categories contained), which is displayed in non-bold form in the tooltip. |
GemComparatorSorter |
getSorter()
Returns the sorter associated with this node. |
String |
getToolTipText()
Returns the string that will be used by the browser tree to display the tooltip for this tree node. |
void |
setCategorizer(GemCategorizer<?> categorizer,
org.openquark.gems.client.browser.BrowserTreeModel.CategoryNodeProvider provider)
Associates the given categorizer and node provider with this tree node. |
void |
setSorter(GemComparatorSorter sorter)
Associates the given sorter with this tree node. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BrowserTreeNode()
public BrowserTreeNode(Object userObject)
userObject -
public BrowserTreeNode(Object userObject,
boolean allowChildren)
userObject - allowChildren - | Method Detail |
|---|
public String getDisplayedString()
public void setSorter(GemComparatorSorter sorter)
sorter - the sorter to associated
public void setCategorizer(GemCategorizer<?> categorizer,
org.openquark.gems.client.browser.BrowserTreeModel.CategoryNodeProvider provider)
categorizer - the categorizer to associatedprovider - the node provider for the categorizerpublic GemComparatorSorter getSorter()
public GemCategorizer<?> getCategorizer()
public org.openquark.gems.client.browser.BrowserTreeModel.CategoryNodeProvider getNodeProvider()
public BrowserTreeNode addNewCategoryNode(GemCategory category)
category - the category for which to return a tree node
public String getToolTipText()
public String getSecondaryToolTipText()
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||