public class DynamicTreeIconType
extends java.lang.Object
An icon type can contain many icons. When a DynamicTreeNode.iconType
matches a DynamicTreeIconType.iconType, the icon(s) specified in icons
is displayed in front of this DynamicTreeNode in the client browser tree.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
DynamicTreeIconType()
Default constructor.
|
DynamicTreeIconType(java.lang.String iconType,
com.ibm.commerce.tools.common.ui.DynamicTreeIcon[] icons)
Creates a new
DynamicTreeIconType object loaded with an iconType
and a list of DynamicTreeIcon objects. |
DynamicTreeIconType(java.lang.String iconType,
java.lang.String icons)
Creates a new
DynamicTreeIconType object loaded with an iconType
and a list of icon image values. |
DynamicTreeIconType(java.lang.String iconType,
java.lang.String[] icons)
Deprecated.
This method is replaced by
DynamicTreeIconType(String, DynamicTreeIcon[]) |
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.tools.common.ui.DynamicTreeIcon[] |
getDynamicTreeIcons()
Returns the
icons field. |
java.lang.String[] |
getIcons()
Deprecated.
This method is replaced by
getDynamicTreeIcons() |
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(com.ibm.commerce.tools.common.ui.DynamicTreeIcon[] newIcons)
Sets the
icons field |
void |
setIcons(java.lang.String[] newIcons)
Deprecated.
This method is replaced by
setIcons(DynamicTreeIcon[]) |
void |
setIconType(java.lang.String newIconType)
Sets the
iconType field |
public static final java.lang.String COPYRIGHT
public DynamicTreeIconType()
public DynamicTreeIconType(java.lang.String iconType, java.lang.String[] icons)
DynamicTreeIconType(String, DynamicTreeIcon[])
DynamicTreeIconType
object loaded with an iconType
and a list of icon image values.iconType
- the name of the icon typeicons
- an array of icon image files qualified from /web/images/tools/public DynamicTreeIconType(java.lang.String iconType, com.ibm.commerce.tools.common.ui.DynamicTreeIcon[] icons)
DynamicTreeIconType
object loaded with an iconType
and a list of DynamicTreeIcon
objects.iconType
- the name of the icon typeicons
- an array of DynamicTreeIcon
objectspublic DynamicTreeIconType(java.lang.String iconType, java.lang.String icons)
DynamicTreeIconType
object loaded with an iconType
and a list of icon image values.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.public java.lang.String[] getIcons()
getDynamicTreeIcons()
icons
field.public com.ibm.commerce.tools.common.ui.DynamicTreeIcon[] getDynamicTreeIcons()
icons
field.public java.lang.String getIconType()
public void iconToJS(java.lang.StringBuffer sb, int i)
public void setIcons(java.lang.String[] newIcons)
setIcons(DynamicTreeIcon[])
icons
fieldnewIcons
- 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 setIcons(com.ibm.commerce.tools.common.ui.DynamicTreeIcon[] newIcons)
icons
fieldnewIcons
- 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
fieldnewIconType
- The iconType.