Skip navigation links


org.apache.myfaces.trinidad.model
Interface XMLMenuModel.MenuContentHandler

Enclosing class:
XMLMenuModel

public static interface XMLMenuModel.MenuContentHandler

Method Summary
 int getId()
          gets the id of this content handler
 java.util.Map<java.lang.String,java.lang.Object> getIdNodeMap(java.lang.Object modelKey)
          Get the Model's idNodeMap
 java.util.Map<java.lang.Object,java.util.List<java.lang.Object>> getNodeFocusPathMap(java.lang.Object modelKey)
          Get the Model's nodeFocusPathMap
 TreeModel getTreeModel(java.lang.String uri)
          Get the TreeModel built while parsing metadata.
 java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getViewIdFocusPathMap(java.lang.Object modelKey)
          Get the Model's viewIdFocusPathMap
 void setId(int id)
          sets the id of this content handler
 void setModelId(java.lang.String modelId)
          Sets the local, sharedNode model's Model id on the ContentHandler so that the local model can be gotten to, if necessary.
 void setRootHandler(boolean isRoot)
           
 void setRootModelKey(java.lang.String key)
          Sets the root model's request map key on the ContentHandler so that the nodes can get back to their root model through the request map.

 

Method Detail

getTreeModel

TreeModel getTreeModel(java.lang.String uri)
Get the TreeModel built while parsing metadata.
Parameters:
uri - String mapkey to a (possibly) treeModel cached on the MenuContentHandlerImpl.
Returns:
TreeModel.

setRootModelKey

void setRootModelKey(java.lang.String key)
Sets the root model's request map key on the ContentHandler so that the nodes can get back to their root model through the request map.

setModelId

void setModelId(java.lang.String modelId)
Sets the local, sharedNode model's Model id on the ContentHandler so that the local model can be gotten to, if necessary.

getIdNodeMap

java.util.Map<java.lang.String,java.lang.Object> getIdNodeMap(java.lang.Object modelKey)
Get the Model's idNodeMap
Returns:
the Model's idNodeMap

getNodeFocusPathMap

java.util.Map<java.lang.Object,java.util.List<java.lang.Object>> getNodeFocusPathMap(java.lang.Object modelKey)
Get the Model's nodeFocusPathMap
Returns:
the Model's nodeFocusPathMap

getViewIdFocusPathMap

java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getViewIdFocusPathMap(java.lang.Object modelKey)
Get the Model's viewIdFocusPathMap
Returns:
the Model's viewIdFocusPathMap

setRootHandler

void setRootHandler(boolean isRoot)

setId

void setId(int id)
sets the id of this content handler

getId

int getId()
gets the id of this content handler
Returns:
the id

Skip navigation links


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.