com.ibm.mashups.enabler.model
Interface NavigationModel

All Superinterfaces:
com.ibm.mashups.enabler.Discardable, com.ibm.mashups.enabler.Invalidatable, Primeable, com.ibm.mashups.enabler.model.SelectionLocator, com.ibm.mashups.enabler.TreeModelController

public NavigationModel
extends com.ibm.mashups.enabler.TreeModelController, com.ibm.mashups.enabler.model.SelectionLocator, com.ibm.mashups.enabler.Discardable, com.ibm.mashups.enabler.Invalidatable, Primeable

Interface for a navigation model. This tree model describes the topology in which the navigation is structured. Elements in this model are navigation elements, such as navigation nodes or labels.

The navigation model supports the following strategies:


Method Summary
 void setPrimingData(Object data)
           Sets priming data for the navigation model in Json format:
  PRIMED_NODE = {
    id: ID,
    title: TITLE,
    locale: LOCALE,
    theme: THEME
    (, metadata: METADATA)?
 
Methods inherited from interface com.ibm.mashups.enabler.Primeable
setPrimingData
 

Method Detail

setPrimingData

void setPrimingData(Object data)
Sets priming data for the navigation model in Json format:
  PRIMED_NODE = {
    id: ID,
    title: TITLE,
    locale: LOCALE,
    theme: THEME
    (, metadata: METADATA)?
    (, type: TYPE)?
    (, roles: ROLES)?
    (, isPrivate: true | false)?
    (, children: [(END, )? PRIMED_NODE(, PRIMED_NODE)* (, END)?])?
  }

Where:

Additionally, the following rules apply:

Parameters:
data - data to prime the navigation model with; must not be null.


Copyright IBM Corp. 2010 All Rights Reserved.