RasterTreeItem.setAltIcon( altIcon )

Sets the icon displayed in this tree item when the branch is expanded. For this feature to work, a default icon must be set via the setIcon() method.

The altIcon URL might be prefixed by Raster resource-folder tag. The prefix "IMG:" is replaced with the current raster/images location, for example: "IMG:icon.gif" resolves to "$RASTER_HOME$/images/icon.gif". The prefix "CSS:" is replaced with the current css themes images location, for example: "CSS:icon.gif" resolves to "$RASTER_HOME$/themes/$THEME$/images/icon.gif".

Do not place a "/" between the prefix and the rest of the URL, as a forward slash will be inserted automatically. For configuring the RASTER_HOME and THEME use the Raster.config() method.

Parameters

Name Type   Description
altIcon string String containing path of a 16x16 image file or an object that implements the IID_SPRITEINFO interface such as the constants in the ICONS16 object. Set to null to remove the item's alternate icon.

Returns

Type Description
object The tree item object. This allow for chaining multiple setter methods in one single statement.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López