com.esri.adf.web.ve.data.imagery
Class VETocNodeContent

java.lang.Object
  extended by com.esri.adf.web.data.TocNodeContent
      extended by com.esri.adf.web.ve.data.imagery.VETocNodeContent
All Implemented Interfaces:
VEConstants, Serializable

public class VETocNodeContent
extends TocNodeContent
implements VEConstants

VETocNodeContent defines the nodes displayed in the Table-Of-Contents (TOC) for a Bing™ Maps (formerly known as Virtual Earth) Imagery Web Service. It defines the labels to be displayed for the nodes which can be configured in the Res.properties file of the web application. It also defines the context menu used to switch between the different Bing Maps map styles.

See Also:
Serialized Form

Field Summary
protected static String AERIAL_LABEL
          Label for the Bing Maps map style "Aerial"
protected static String AERIAL_WITH_LABELS_LABEL
          Label for the Bing Maps map style "Aerial with labels"
protected static String MAP_STYLE
          Label for the the map style title in the TOC
protected static String ROAD_LABEL
          Label for the Bing Maps map style "Road"
 
Fields inherited from class com.esri.adf.web.data.TocNodeContent
disabled
 
Fields inherited from interface com.esri.adf.web.ve.data.VEConstants
MAP_STYLE_AERIAL, MAP_STYLE_AERIAL_WITH_LABEL, MAP_STYLE_ROAD, MAX_LEVEL_OF_DETAIL, MIN_LEVEL_OF_DETAIL, TILE_HEIGHT, TILE_WIDTH, VIRTUAL_EARTH_GEOCODE_WKID, VIRTUAL_EARTH_SPATIAL_REFERENCE_WKID, VIRTUAL_EARTH_XMAX, VIRTUAL_EARTH_XMIN, VIRTUAL_EARTH_YMAX, VIRTUAL_EARTH_YMIN
 
Constructor Summary
VETocNodeContent()
           
 
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 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(VETocFunctionality toc)
          Initializes the VE TOC layer content.
 
Methods inherited from class com.esri.adf.web.data.TocNodeContent
getImageUrl, handleCheckedEvent, handleExpandCollapseEvent, isCheckable, isChecked, isDisabled, 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

MAP_STYLE

protected static final String MAP_STYLE
Label for the the map style title in the TOC


ROAD_LABEL

protected static final String ROAD_LABEL
Label for the Bing Maps map style "Road"


AERIAL_LABEL

protected static final String AERIAL_LABEL
Label for the Bing Maps map style "Aerial"


AERIAL_WITH_LABELS_LABEL

protected static final String AERIAL_WITH_LABELS_LABEL
Label for the Bing Maps map style "Aerial with labels"

Constructor Detail

VETocNodeContent

public VETocNodeContent()
Method Detail

initLayerContent

public void initLayerContent(VETocFunctionality toc)
Initializes the VE TOC layer content.

Parameters:
toc -

getText

public String getText()
Description copied from class: TocNodeContent
Returns the text displayed on the node.

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

handleContextMenuEvent

public void handleContextMenuEvent(String contextMenuItemValue,
                                   TocEvent args)
                            throws Exception
Description copied from class: TocNodeContent
Handles the context menu event occuring at a node. The method should handle the event according to the contextMenuItemValue parameter. This parameter is based on the context menu items generated by the getContextMenuItems() method.

Overrides:
handleContextMenuEvent in class TocNodeContent
Parameters:
contextMenuItemValue - the value of the context menu item to be processed
args - the TocEvent
Throws:
Exception

handleNodeEvent

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

getContextMenuItems

public List<javax.faces.model.SelectItem> getContextMenuItems()
Description copied from class: TocNodeContent
The list of javax.faces.model.SelectItem objects representing each item of this node's context menu. This default implementation returns null.

Overrides:
getContextMenuItems in class TocNodeContent
Returns:
a List of javax.faces.model.SelectItem objects