| java.lang.Object com.methodhead.tree.TreeRenderer
All known Subclasses: com.methodhead.tree.ServerTreeRenderer, com.methodhead.tree.ClientTreeRenderer,
TreeRenderer | abstract public class TreeRenderer (Code) | | A base class for tree renderers that provides some common properties.
|
Field Summary | |
final public static String | DEFAULT_ICON The icon to be used for a node whose icon hint cannot be found in the
renderer's icon images. | final public static String | SPACER_ICON The icon to be used as a spacer in cells where no icon should appear; this
icon should be the same size as other icons, but should match the
background or be transparent. |
DEFAULT_ICON | final public static String DEFAULT_ICON(Code) | | The icon to be used for a node whose icon hint cannot be found in the
renderer's icon images.
|
SPACER_ICON | final public static String SPACER_ICON(Code) | | The icon to be used as a spacer in cells where no icon should appear; this
icon should be the same size as other icons, but should match the
background or be transparent.
|
getClosedHandleImage | public String getClosedHandleImage()(Code) | | Returns URL of the image to display for the handle (the icon clicked to
open or close a node) of a closed node. If no image has been specified,
the renderer should use a reasonable text character in it's place.
|
getIconImages | public Map getIconImages()(Code) | | Returns a map of image URLs for the icons displayed next to each node. A
node's iconHint is looked up in the map. If no image URL is found,
TreeRenderer.DEFAULT_ICON DEFAULT_ICON is looked up; if that image URL is not found,
a blank space should be rendered. If no map is specified at all, no icons
should be at all.
|
getOpenedHandleImage | public String getOpenedHandleImage()(Code) | | Returns URL of the image to display for the handle (the icon clicked to
open or close a node) of a opened node. If no image has been specified,
the renderer should use a reasonable text character in it's place.
|
isRootHidden | public boolean isRootHidden()(Code) | | Returns whether the root node is hidden when the tree is rendered.
|
setClosedHandleImage | public void setClosedHandleImage(String closedHandleImage)(Code) | | |
setIconImages | public void setIconImages(Map iconImages)(Code) | | |
setOpenedHandleImage | public void setOpenedHandleImage(String openedHandleImage)(Code) | | |
setRootHidden | public void setRootHidden(boolean rootHidden)(Code) | | |
|
|