|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.data.TocNodeContent
com.esri.adf.web.data.graphics.GraphicsTocLayerContent
public class GraphicsTocLayerContent
GraphicsTocLayerContent stores the content of a TocNode when working with
GraphicsLayer.
| Field Summary | |
|---|---|
protected GraphicsLayer |
layer
The GraphicsLayer object. |
protected GraphicsTocFunctionality |
tocFunc
The GraphicsTocFunctionality in which the layer belongs. |
| Constructor Summary | |
|---|---|
GraphicsTocLayerContent()
Constructs an empty GraphicsTocLayerContent with the layer and toc funtionality set to null. |
|
GraphicsTocLayerContent(GraphicsTocFunctionality tocFunc,
GraphicsLayer layer)
Constructs the GraphicsTocLayerContent object and stores the information needed for the layer. |
|
| Method Summary | |
|---|---|
java.lang.String |
getText()
Returns the text displayed on the node. |
void |
handleCheckedEvent(boolean checked,
TocEvent args)
Handles the checked/unchecked event occurring at a node. |
void |
handleNodeEvent(TocEvent args)
Handles the event which occurs at a content node. |
void |
initLayerContent(GraphicsTocFunctionality tocFunc,
GraphicsLayer layer)
Intialize the GraphicsTocLayerContent object and stores the information needed for the layer. |
boolean |
isCheckable()
Returns an indicator whether this node is checkable. |
boolean |
isChecked()
If isCheckable() is true, it indicates whether it is checked. |
| Methods inherited from class com.esri.adf.web.data.TocNodeContent |
|---|
getContextMenuItems, getImageUrl, handleContextMenuEvent, handleExpandCollapseEvent, isDisabled, isSelected, isUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GraphicsLayer layer
GraphicsLayer object.
protected GraphicsTocFunctionality tocFunc
For Example,
tocFunc.getResource.removeGraphicsLayer(layer);
| Constructor Detail |
|---|
public GraphicsTocLayerContent()
public GraphicsTocLayerContent(GraphicsTocFunctionality tocFunc,
GraphicsLayer layer)
tocFunc - the GraphicsTocFunctionality in which the layer belongslayer - the GraphicsLayer object| Method Detail |
|---|
public void initLayerContent(GraphicsTocFunctionality tocFunc,
GraphicsLayer layer)
tocFunc - the GraphicsTocFunctionality in which the layer belongslayer - the GraphicsLayer objectpublic java.lang.String getText()
getText in class TocNodeContentString- the text
public void handleCheckedEvent(boolean checked,
TocEvent args)
throws java.lang.Exception
handleCheckedEvent in class TocNodeContentchecked - if true, node is checkedargs - the TocEvent
java.lang.Exceptionpublic boolean isCheckable()
isCheckable in class TocNodeContentpublic boolean isChecked()
isChecked in class TocNodeContent
public void handleNodeEvent(TocEvent args)
throws java.lang.Exception
TocNodeContent
handleNodeEvent in class TocNodeContentargs - the TocEvent
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||