net.sf.navigator.displayer
Class MessageResourcesMenuDisplayer

java.lang.Object
  extended by net.sf.navigator.displayer.AbstractMenuDisplayer
      extended by net.sf.navigator.displayer.MessageResourcesMenuDisplayer
All Implemented Interfaces:
MenuDisplayer
Direct Known Subclasses:
CoolMenuDisplayer, CoolMenuDisplayer4, DropDownMenuDisplayer, ListMenuDisplayer, SimpleMenuDisplayer, VelocityMenuDisplayer, XtreeMenuDisplayer

public abstract class MessageResourcesMenuDisplayer
extends AbstractMenuDisplayer

Version:
Author:
ssayles

Field Summary
protected  Locale locale
           
protected  org.apache.commons.logging.Log log
           
protected  Object 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
MessageResourcesMenuDisplayer()
           
 
Method Summary
abstract  void display(MenuComponent menu)
           
 Locale getLocale()
           
 String getMenuOnClick(MenuComponent menu)
           
 String getMenuTarget(MenuComponent menu)
          Get the menu's target (if it exists).
 String getMenuToolTip(MenuComponent menu)
          Get the menu's tooltip (if it exists).
 String getMessage(String key)
          Get the title key from the bundle (if it exists).
 Object getMessageResources()
           
 void setLocale(Locale locale)
           
 void setMessageResources(Object messages)
           
 
Methods inherited from class net.sf.navigator.displayer.AbstractMenuDisplayer
end, getConfig, getName, getPermissionsAdapter, getTarget, getTarget, init, 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

log

protected final transient org.apache.commons.logging.Log log

messages

protected Object messages

locale

protected Locale locale
Constructor Detail

MessageResourcesMenuDisplayer

public MessageResourcesMenuDisplayer()
Method Detail

getLocale

public Locale getLocale()

setLocale

public void setLocale(Locale locale)

getMessageResources

public Object getMessageResources()

setMessageResources

public void setMessageResources(Object messages)

getMessage

public String getMessage(String key)
Get the title key from the bundle (if it exists). This method is public to expose it to Velocity.

Parameters:
key - the key

getMenuTarget

public String getMenuTarget(MenuComponent menu)
Get the menu's target (if it exists). This method is public to expose it to Velocity.

Parameters:
menu -

getMenuToolTip

public String getMenuToolTip(MenuComponent menu)
Get the menu's tooltip (if it exists). This method is public to expose it to Velocity.

Parameters:
menu -

getMenuOnClick

public String getMenuOnClick(MenuComponent menu)

display

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


Copyright © 2003-2007 SourceForge. All Rights Reserved.