com.esri.adf.web.data
Class SimpleTocNodeContent

java.lang.Object
  extended by com.esri.adf.web.data.TocNodeContent
      extended by com.esri.adf.web.data.SimpleTocNodeContent
All Implemented Interfaces:
Serializable

public class SimpleTocNodeContent
extends TocNodeContent

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.adf.web.data.TocNodeContent
disabled
 
Constructor Summary
SimpleTocNodeContent()
           
SimpleTocNodeContent(String text)
           
SimpleTocNodeContent(String text, String url)
           
 
Method Summary
 String getImageUrl()
          Returns a URL to the image to be displayed for this node.
 String getText()
          Returns the text displayed on the node.
 void handleNodeEvent(TocEvent args)
          Handles the event which occurs at a content node.
 void setImageUrl(String url)
          Sets a URL to an image to be displayed for this node.
 void setText(String text)
          Sets the text displayed on the node.
 
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
 

Constructor Detail

SimpleTocNodeContent

public SimpleTocNodeContent(String text,
                            String url)

SimpleTocNodeContent

public SimpleTocNodeContent(String text)

SimpleTocNodeContent

public SimpleTocNodeContent()
Method Detail

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