com.ibm.commerce.tools.common.ui
Class DynamicTreeIconType

java.lang.Object
  |
  +--com.ibm.commerce.tools.common.ui.DynamicTreeIconType

public class DynamicTreeIconType
extends java.lang.Object

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 in icons is displayed in front of this DynamicTreeNode in the client browser tree.


Field Summary
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 iconType field.
 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

icons

protected java.lang.String[] icons
Contains the icon image filenames qualified from the /web/images/tools/ directory. Each element in the array represents one icon that is associated with this DynamicTreeIconType.

iconType

protected java.lang.String iconType
Defines the name of the DynamicTreeIconType.
See Also:
DynamicTreeNode.iconType
Constructor Detail

DynamicTreeIconType

public DynamicTreeIconType()
Default constructor.

DynamicTreeIconType

public DynamicTreeIconType(java.lang.String iconType,
                           java.lang.String icons)
Creates a new DynamicTreeIconType loaded with an iconType and the list of icon image values.
Parameters:
iconType - The name of this DynamicTreeIconType.
icons - The icon image file qualified from /web/images/tools/. This value is converted into an array and put into the icons field.

DynamicTreeIconType

public DynamicTreeIconType(java.lang.String iconType,
                           java.lang.String[] icons)
Creates a new DynamicTreeIconType loaded with an iconType and the list of icon image values.
Parameters:
iconType - The name of this DynamicTreeIconType.
icons - The list of icon image files qualified from /web/images/tools/
Method Detail

getIcons

public java.lang.String[] getIcons()
Returns the icons field.
Returns:
java.lang.String[]

getIconType

public java.lang.String getIconType()
Returns the iconType field.
Returns:
java.lang.String

setIcons

public void setIcons(java.lang.String[] newIcons)
Sets the icons field
Parameters:
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.

setIconType

public void setIconType(java.lang.String newIconType)
Sets the iconType field
Parameters:
newIconType - The iconType.