|
|||||||||
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.wms.data.WMSTocLayerContent
public class WMSTocLayerContent
Defines layer nodes of TOC for WMS resources. Each node represents a WMS layer, which can be either a group layer or a leaf layer.
Field Summary | |
---|---|
protected static ArrayList<javax.faces.model.SelectItem> |
commonItems
|
protected boolean |
scaleIndependent
|
static String |
ZOOM_TO_LAYER_CONTEXT_MENU_ITEM
A Context Menu Item name: "zoomToLayer". |
protected static javax.faces.model.SelectItem |
zoomToLayer
|
Fields inherited from class com.esri.adf.web.data.TocNodeContent |
---|
disabled |
Constructor Summary | |
---|---|
WMSTocLayerContent()
Constructs an empty WMSTocLayerContent object. |
|
WMSTocLayerContent(com.esri.wms.client.Layer layer)
Constructs the WMSTocLayerContent object and stores the information needed for the layer. |
|
WMSTocLayerContent(WMSTocFunctionality func,
com.esri.wms.client.Layer wmsLayer)
Constructs the WMSTocLayerContent object and stores the information needed for the layer. |
Method Summary | |
---|---|
List<javax.faces.model.SelectItem> |
getContextMenuItems()
The list of javax.faces.model.SelectItem objects representing each item of this node's context menu. |
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 |
handleContextMenuEvent(String contextMenuItemValue,
TocEvent args)
Handles the context menu event occuring at a node. |
void |
handleNodeEvent(TocEvent args)
Handles the event which occurs at a content node. |
void |
initLayerContent(WMSTocFunctionality func,
com.esri.wms.client.Layer wmsLayer)
Initializes the WMSTocLayerContent 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. |
boolean |
isDisabled()
Returns an indicator whether this node disabled. |
Methods inherited from class com.esri.adf.web.data.TocNodeContent |
---|
getImageUrl, handleExpandCollapseEvent, isSelected, isUrl, setChecked, setDisabled, setImageUrl, setText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean scaleIndependent
public static final String ZOOM_TO_LAYER_CONTEXT_MENU_ITEM
protected static final javax.faces.model.SelectItem zoomToLayer
protected static final ArrayList<javax.faces.model.SelectItem> commonItems
Constructor Detail |
---|
public WMSTocLayerContent()
public WMSTocLayerContent(com.esri.wms.client.Layer layer)
layer
- the Layer
objectpublic WMSTocLayerContent(WMSTocFunctionality func, com.esri.wms.client.Layer wmsLayer)
func
- the associated TOC functionwmsLayer
- the associated WMS layerMethod Detail |
---|
public void initLayerContent(WMSTocFunctionality func, com.esri.wms.client.Layer wmsLayer)
wmsLayer
- the Layer
objectpublic String getText()
getText
in class TocNodeContent
String
- the textpublic void handleCheckedEvent(boolean checked, TocEvent args) throws Exception
handleCheckedEvent
in class TocNodeContent
checked
- if true, node is checkedargs
- the TocEvent
Exception
public void handleNodeEvent(TocEvent args) throws Exception
handleNodeEvent
in class TocNodeContent
args
- the TocEvent
Exception
public boolean isCheckable()
isCheckable
in class TocNodeContent
public boolean isChecked()
isChecked
in class TocNodeContent
public boolean isDisabled()
isDisabled
in class TocNodeContent
public List<javax.faces.model.SelectItem> getContextMenuItems()
TocNodeContent
getContextMenuItems
in class TocNodeContent
public void handleContextMenuEvent(String contextMenuItemValue, TocEvent args) throws Exception
TocNodeContent
handleContextMenuEvent
in class TocNodeContent
contextMenuItemValue
- the value of the context menu item to be processedargs
- the TocEvent
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |