net.sf.navigator.displayer
Class CoolMenuDisplayer4

java.lang.Object
  extended by net.sf.navigator.displayer.AbstractMenuDisplayer
      extended by net.sf.navigator.displayer.MessageResourcesMenuDisplayer
          extended by net.sf.navigator.displayer.CoolMenuDisplayer4
All Implemented Interfaces:
MenuDisplayer

public class CoolMenuDisplayer4
extends MessageResourcesMenuDisplayer

Author:
Matt Raible

Field Summary
 
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
CoolMenuDisplayer4()
           
 
Method Summary
protected  void buildMenuString(MenuComponent menu, StringBuffer sb, boolean allowed)
           
 void display(MenuComponent menu)
          Prints the appropriate javascript for CoolMenu using \ menuMessage as the format.
 void end(javax.servlet.jsp.PageContext context)
          This will output the ending javascript statements defined in END_STATEMENT and SCRIPT_END
protected  String[] getArgs(MenuComponent menu)
           
protected  String getParentName(MenuComponent menu)
           
protected  String getTarget(MenuComponent menu)
          Convenience method that will first return the target for the displayer if it is not null.
 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
getConfig, getName, getPermissionsAdapter, getTarget, isAllowed, setConfig, setName, setPermissionsAdapter, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoolMenuDisplayer4

public CoolMenuDisplayer4()
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
Prints the appropriate javascript for CoolMenu using \ menuMessage as the format.

Specified by:
display in interface MenuDisplayer
Specified by:
display in class MessageResourcesMenuDisplayer
Throws:
javax.servlet.jsp.JspException
IOException

end

public void end(javax.servlet.jsp.PageContext context)
This will output the ending javascript statements defined in END_STATEMENT and SCRIPT_END

Specified by:
end in interface MenuDisplayer
Overrides:
end in class AbstractMenuDisplayer
Parameters:
context - The JSP pageContext to give the displayer access to any resources it may need.

buildMenuString

protected void buildMenuString(MenuComponent menu,
                               StringBuffer sb,
                               boolean allowed)

getArgs

protected String[] getArgs(MenuComponent menu)

getParentName

protected String getParentName(MenuComponent menu)

getTarget

protected String getTarget(MenuComponent menu)
Description copied from class: AbstractMenuDisplayer
Convenience method that will first return the target for the displayer if it is not null. If the displayer target is null, then it will return menu.getTarget().

Overrides:
getTarget in class AbstractMenuDisplayer
Returns:
the target for the menu link.


Copyright © 2003-2007 SourceForge. All Rights Reserved.