com.esri.adf.web.wms.data
Class WMSTocLayerContent

java.lang.Object
  extended bycom.esri.adf.web.data.TocNodeContent
      extended bycom.esri.adf.web.wms.data.WMSTocLayerContent
All Implemented Interfaces:
java.io.Serializable

public class WMSTocLayerContent
extends TocNodeContent

See Also:
Serialized Form

Constructor Summary
WMSTocLayerContent(com.esri.aims.mtier.model.wmsmap.WmsLayer layer)
          Constructs the AGSTocLayerContent 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 occuring at a node.
 void handleNodeEvent(TocEvent args)
          Handles the event which occurs at a content node.
 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
 

Constructor Detail

WMSTocLayerContent

public WMSTocLayerContent(com.esri.aims.mtier.model.wmsmap.WmsLayer layer)
Constructs the AGSTocLayerContent object and stores the information needed for the layer.

Parameters:
layer - the WmsLayer object
Method Detail

getText

public java.lang.String getText()
Returns the text displayed on the node.

Specified by:
getText in class TocNodeContent
Returns:
String- the text

handleCheckedEvent

public void handleCheckedEvent(boolean checked,
                               TocEvent args)
                        throws java.lang.Exception
Handles the checked/unchecked event occuring at a node.

Overrides:
handleCheckedEvent in class TocNodeContent
Parameters:
checked - if true, node is checked
args - the TocEvent
Throws:
java.lang.Exception

handleNodeEvent

public void handleNodeEvent(TocEvent args)
                     throws java.lang.Exception
Handles the event which occurs at a content node.

Specified by:
handleNodeEvent in class TocNodeContent
Parameters:
args - the TocEvent
Throws:
java.lang.Exception

isCheckable

public boolean isCheckable()
Returns an indicator whether this node is checkable.

Overrides:
isCheckable in class TocNodeContent
Returns:
boolean- if true, the node is checkable. The default is false.

isChecked

public boolean isChecked()
If isCheckable() is true, it indicates whether it is checked.

Overrides:
isChecked in class TocNodeContent
Returns:
boolean- returns false