org.apache.myfaces.trinidaddemo.nav
Class MenuModelAdapter

java.lang.Object
  extended by org.apache.myfaces.trinidaddemo.nav.MenuModelAdapter
All Implemented Interfaces:
Serializable

public class MenuModelAdapter
extends Object
implements Serializable

This class facilitates calling ViewIdPropertyMenuModel.addViewId via an "aliasList".

See Also:
Serialized Form

Constructor Summary
MenuModelAdapter()
           
 
Method Summary
 List<Object> getAliasList()
           
 ViewIdPropertyMenuModel getModel()
           
 void setAliasList(List<Object> aliasList)
          aliasList is just a list of viewId strings grouped into pairs.
 void setModel(ViewIdPropertyMenuModel model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuModelAdapter

public MenuModelAdapter()
Method Detail

setModel

public void setModel(ViewIdPropertyMenuModel model)
Parameters:
model - an instance of ViewIdPropertyMenuModel

getModel

public ViewIdPropertyMenuModel getModel()

getAliasList

public List<Object> getAliasList()

setAliasList

public void setAliasList(List<Object> aliasList)
aliasList is just a list of viewId strings grouped into pairs. We iterate over the list like so: ViewIdPropertyMenuModel.addViewId(aliasList.get(i), aliasList.get(i+1))



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