java.lang.Object | +--com.ibm.commerce.tools.common.ui.DynamicTreeIconType
Creates an icon type to be matched in DynamicTreeNode.iconType.
An icon type can contain many icons. When a DynamicTreeNode.iconType matches
a DynamicTreeIconType.iconType, the icon(s) specified inicons
is
displayed in front of this DynamicTreeNode in the client browser tree.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
protected
java.lang.String[] |
icons Contains the icon image filenames qualified from the /web/images/tools/ directory. |
protected
java.lang.String |
iconType Defines the name of the DynamicTreeIconType. |
Constructor Summary | |
---|---|
DynamicTreeIconType() Default constructor. | |
DynamicTreeIconType(java.lang.String iconType,
java.lang.String icons) Creates a new DynamicTreeIconType loaded with an iconType and the list of icon image values. | |
DynamicTreeIconType(java.lang.String iconType,
java.lang.String[] icons) Creates a new DynamicTreeIconType loaded with an iconType and the list of icon image values. |
Method Summary | |
---|---|
java.lang.String[] |
getIcons() Returns the icons field. |
java.lang.String |
getIconType() Returns the icon type field. |
void |
iconToJS(java.lang.StringBuffer sb, int i) Converts the icons field to JavaScript. |
void |
setIcons(java.lang.String[] newIcons) Sets the icons field |
void |
setIconType(java.lang.String newIconType) Sets the iconType field |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.String iconType
DynamicTreeNode.iconType
protected java.lang.String[] icons
Constructor Detail |
---|
public DynamicTreeIconType()
public DynamicTreeIconType(java.lang.String iconType, java.lang.String[] icons)
iconType
- The name of this DynamicTreeIconType.icons
- The list of icon image files qualified from
/web/images/tools/public DynamicTreeIconType(java.lang.String iconType, java.lang.String icons)
iconType
- The name of this DynamicTreeIconType.icons
- The icon image file qualified from /web/images/tools/
if relative path is used. This value is converted into an array and put into
the icons
field.Method Detail |
---|
public java.lang.String[] getIcons()
icons
field.
public java.lang.String getIconType()
public void iconToJS(java.lang.StringBuffer sb, int i)
public void setIcons(java.lang.String[] newIcons)
icons
field
newIcons
- An array of icon image paths qualified by
/web/images/tools/. New Strings are created for each element in case a
reference was passed.public void setIconType(java.lang.String newIconType)
iconType
field
newIconType
- The iconType.