net.sf.navigator.displayer
Class SimpleMenuDisplayer

java.lang.Object
  extended by net.sf.navigator.displayer.AbstractMenuDisplayer
      extended by net.sf.navigator.displayer.MessageResourcesMenuDisplayer
          extended by net.sf.navigator.displayer.SimpleMenuDisplayer
All Implemented Interfaces:
MenuDisplayer
Direct Known Subclasses:
PermissionsFormMenuDisplayer

public class SimpleMenuDisplayer
extends MessageResourcesMenuDisplayer

Version:
Author:
ssayles

Field Summary
protected static String nbsp
           
 
Fields inherited from class net.sf.navigator.displayer.MessageResourcesMenuDisplayer
locale, log, messages
 
Fields inherited from class net.sf.navigator.displayer.AbstractMenuDisplayer
displayStrings, mapping, name, out, permissionsAdapter, target
 
Fields inherited from interface net.sf.navigator.displayer.MenuDisplayer
_SELF, DEFAULT_CONFIG, EMPTY, NBSP
 
Constructor Summary
SimpleMenuDisplayer()
           
 
Method Summary
 void display(MenuComponent menu)
           
protected  void displayComponents(MenuComponent menu, int level)
           
protected  String getImage(MenuComponent menu)
           
protected  String getSpace(int length)
           
 void init(javax.servlet.jsp.PageContext pageContext, MenuDisplayerMapping mapping)
          Lifecycle method that should be called when the MenuDisplayer is being prepared for use.
 
Methods inherited from class net.sf.navigator.displayer.MessageResourcesMenuDisplayer
getLocale, getMenuOnClick, getMenuTarget, getMenuToolTip, getMessage, getMessageResources, setLocale, setMessageResources
 
Methods inherited from class net.sf.navigator.displayer.AbstractMenuDisplayer
end, getConfig, getName, getPermissionsAdapter, getTarget, getTarget, isAllowed, setConfig, setName, setPermissionsAdapter, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nbsp

protected static final String nbsp
See Also:
Constant Field Values
Constructor Detail

SimpleMenuDisplayer

public SimpleMenuDisplayer()
Method Detail

init

public void init(javax.servlet.jsp.PageContext pageContext,
                 MenuDisplayerMapping mapping)
Description copied from class: AbstractMenuDisplayer
Lifecycle method that should be called when the MenuDisplayer is being prepared for use.

Specified by:
init in interface MenuDisplayer
Overrides:
init in class AbstractMenuDisplayer
Parameters:
pageContext - The JSP pageContext to give the displayer access to any resources it may need.
mapping - The menu displayer mapping used to embody the xml definition.

display

public void display(MenuComponent menu)
             throws javax.servlet.jsp.JspException,
                    IOException
Specified by:
display in interface MenuDisplayer
Specified by:
display in class MessageResourcesMenuDisplayer
Throws:
javax.servlet.jsp.JspException
IOException

displayComponents

protected void displayComponents(MenuComponent menu,
                                 int level)
                          throws javax.servlet.jsp.JspException,
                                 IOException
Throws:
javax.servlet.jsp.JspException
IOException

getSpace

protected String getSpace(int length)

getImage

protected String getImage(MenuComponent menu)


Copyright © 2003-2007 SourceForge. All Rights Reserved.