org.jvnet.flamingo.bcb.core
Class BreadcrumbTreeAdapterSelector.TreeAdapter
java.lang.Object
org.jvnet.flamingo.bcb.core.BreadcrumbTreeAdapterSelector.TreeAdapter
- Enclosing class:
- BreadcrumbTreeAdapterSelector
public abstract static class BreadcrumbTreeAdapterSelector.TreeAdapter
- extends java.lang.Object
Tree adapter that allows plugging a custom rendering logic.
- Author:
- Kirill Grouchnikov
Method Summary |
javax.swing.Icon |
getIcon(java.lang.Object node)
Returns the icon for the specified tree node. |
abstract java.lang.String |
toString(java.lang.Object node)
Returns the caption for the specified tree node. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BreadcrumbTreeAdapterSelector.TreeAdapter
public BreadcrumbTreeAdapterSelector.TreeAdapter()
toString
public abstract java.lang.String toString(java.lang.Object node)
- Returns the caption for the specified tree node. Note that the
extending class must override this method in an
EDT-safe fashion.
- Parameters:
node
- Tree node.
- Returns:
- The caption for the specified tree node.
getIcon
public javax.swing.Icon getIcon(java.lang.Object node)
- Returns the icon for the specified tree node.
- Parameters:
node
- Tree node.
- Returns:
- The icon for the specified tree node.