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:
java.io.Serializable

public class SimpleTocNodeContent
extends TocNodeContent

See Also:
Serialized Form

Constructor Summary
SimpleTocNodeContent()
           
SimpleTocNodeContent(java.lang.String text)
           
SimpleTocNodeContent(java.lang.String text, java.lang.String url)
           
 
Method Summary
 java.lang.String getImageUrl()
          Returns a URL to the image to displayed for this node.
 java.lang.String getText()
          Returns the text displayed on the node.
 void handleNodeEvent(TocEvent args)
          Handles the event which occurs at a content node.
 void setImageUrl(java.lang.String url)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class com.esri.adf.web.data.TocNodeContent
getContextMenuItems, handleCheckedEvent, handleContextMenuEvent, handleExpandCollapseEvent, isCheckable, isChecked, isDisabled, isSelected, isUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTocNodeContent

public SimpleTocNodeContent(java.lang.String text,
                            java.lang.String url)

SimpleTocNodeContent

public SimpleTocNodeContent(java.lang.String text)

SimpleTocNodeContent

public SimpleTocNodeContent()
Method Detail

handleNodeEvent

public void handleNodeEvent(TocEvent args)
                     throws java.lang.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:
java.lang.Exception

getText

public java.lang.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(java.lang.String text)

getImageUrl

public java.lang.String getImageUrl()
Description copied from class: TocNodeContent
Returns a URL to the image to displayed for this node.

Overrides:
getImageUrl in class TocNodeContent
Returns:
String- the image. The default is null.

setImageUrl

public void setImageUrl(java.lang.String url)