EchoPoint
1.0

echopoint.tree
Class DefaultTreeIcons

java.lang.Object
  extended byechopoint.tree.DefaultTreeIcons
All Implemented Interfaces:
java.io.Serializable, TreeIcons

public class DefaultTreeIcons
extends java.lang.Object
implements TreeIcons, java.io.Serializable

This class hold a series of "named" image icons, used by the Tree during rendering, for visuals such as lines between nodes and expansion handles.

See Also:
Serialized Form

Field Summary
static int DEFAULT_HEIGHT
          the default height of the icons
static int DEFAULT_WIDTH
          the default width of the icons
protected  java.util.Map iconMap
          the map of icons images to names
static nextapp.echo.ImageReference treeEmpty
          default tree icons
static nextapp.echo.ImageReference treeFolder
           
static nextapp.echo.ImageReference treeFolderOpen
           
static nextapp.echo.ImageReference treeJoin
           
static nextapp.echo.ImageReference treeJoinBottom
           
static nextapp.echo.ImageReference treeLeaf
           
static nextapp.echo.ImageReference treeLine
           
static nextapp.echo.ImageReference treeMinus
           
static nextapp.echo.ImageReference treeMinusBottom
           
static nextapp.echo.ImageReference treePlus
           
static nextapp.echo.ImageReference treePlusBottom
           
static nextapp.echo.ImageReference treeRoot
           
 
Fields inherited from interface echopoint.tree.TreeIcons
ICON_EMPTY, ICON_FOLDER, ICON_FOLDEROPEN, ICON_JOIN, ICON_JOINBOTTOM, ICON_JOINNOLINE, ICON_LEAF, ICON_LINE, ICON_MINUS, ICON_MINUSBOTTOM, ICON_PLUS, ICON_PLUSBOTTOM, ICON_ROOT, ICON_ROOTOPEN
 
Constructor Summary
DefaultTreeIcons()
          Creates the DefaultTreeIcons with the default static default icon images
 
Method Summary
 nextapp.echo.ImageReference getIcon(java.lang.String iconName)
          Returns an icon image with the given name
 void setIcon(java.lang.String iconName, nextapp.echo.ImageReference iconImage)
          Sets a named icon into the TreeIcon object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iconMap

protected java.util.Map iconMap
the map of icons images to names


DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
the default width of the icons

See Also:
Constant Field Values

DEFAULT_HEIGHT

public static final int DEFAULT_HEIGHT
the default height of the icons

See Also:
Constant Field Values

treeEmpty

public static nextapp.echo.ImageReference treeEmpty
default tree icons


treeFolder

public static nextapp.echo.ImageReference treeFolder

treeFolderOpen

public static nextapp.echo.ImageReference treeFolderOpen

treeLeaf

public static nextapp.echo.ImageReference treeLeaf

treeJoin

public static nextapp.echo.ImageReference treeJoin

treeJoinBottom

public static nextapp.echo.ImageReference treeJoinBottom

treeLine

public static nextapp.echo.ImageReference treeLine

treeMinus

public static nextapp.echo.ImageReference treeMinus

treeMinusBottom

public static nextapp.echo.ImageReference treeMinusBottom

treePlus

public static nextapp.echo.ImageReference treePlus

treePlusBottom

public static nextapp.echo.ImageReference treePlusBottom

treeRoot

public static nextapp.echo.ImageReference treeRoot
Constructor Detail

DefaultTreeIcons

public DefaultTreeIcons()
Creates the DefaultTreeIcons with the default static default icon images

Method Detail

getIcon

public nextapp.echo.ImageReference getIcon(java.lang.String iconName)
Returns an icon image with the given name

Specified by:
getIcon in interface TreeIcons

setIcon

public void setIcon(java.lang.String iconName,
                    nextapp.echo.ImageReference iconImage)
Sets a named icon into the TreeIcon object

Specified by:
setIcon in interface TreeIcons

EchoPoint
1.0