com.esri.adf.web.data
Class SimpleTocNodeContent
java.lang.Object
com.esri.adf.web.data.TocNodeContent
com.esri.adf.web.data.SimpleTocNodeContent
- All Implemented Interfaces:
- Serializable
public class SimpleTocNodeContent
- extends TocNodeContent
- See Also:
- Serialized Form
Methods inherited from class com.esri.adf.web.data.TocNodeContent |
getContextMenuItems, handleCheckedEvent, handleContextMenuEvent, handleExpandCollapseEvent, isCheckable, isChecked, isDisabled, isSelected, isUrl, setChecked, setDisabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTocNodeContent
public SimpleTocNodeContent(String text,
String url)
SimpleTocNodeContent
public SimpleTocNodeContent(String text)
SimpleTocNodeContent
public SimpleTocNodeContent()
handleNodeEvent
public void handleNodeEvent(TocEvent args)
throws Exception
- Description copied from class:
TocNodeContent
- Handles the event which occurs at a content node. The TocNode delegates event handling for node content operations
to this method, typically when the node is clicked.
- Specified by:
handleNodeEvent
in class TocNodeContent
- Parameters:
args
- the TocEvent
- Throws:
Exception
getText
public String getText()
- Description copied from class:
TocNodeContent
- Returns the text displayed on the node.
- Specified by:
getText
in class TocNodeContent
- Returns:
String
- the text
setText
public void setText(String text)
- Description copied from class:
TocNodeContent
- Sets the text displayed on the node.
- Overrides:
setText
in class TocNodeContent
getImageUrl
public String getImageUrl()
- Description copied from class:
TocNodeContent
- Returns a URL to the image to be displayed for this node.
- Overrides:
getImageUrl
in class TocNodeContent
- Returns:
String
- the image. The default is null.
setImageUrl
public void setImageUrl(String url)
- Description copied from class:
TocNodeContent
- Sets a URL to an image to be displayed for this node.
- Overrides:
setImageUrl
in class TocNodeContent