org.apache.myfaces.trinidaddemo.nav
Class MenuModelAdapter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuModelAdapter
public MenuModelAdapter()
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.