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:
- java.io.Serializable
public class SimpleTocNodeContent
- extends TocNodeContent
- See Also:
- Serialized Form
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTocNodeContent
public SimpleTocNodeContent(java.lang.String text,
java.lang.String url)
SimpleTocNodeContent
public SimpleTocNodeContent(java.lang.String text)
SimpleTocNodeContent
public SimpleTocNodeContent()
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)