Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.roller.presentation.tags.menu
Class MenuTag  view MenuTag download MenuTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.roller.presentation.tags.HybridTag
          extended byorg.roller.presentation.tags.VelocityTag
              extended byorg.roller.presentation.tags.menu.MenuTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
EditorNavigationBarTag

public class MenuTag
extends org.roller.presentation.tags.VelocityTag


Field Summary
private  java.lang.String mMenuId
           
private  java.lang.String mModel
           
private  java.lang.String mView
           
 
Fields inherited from class org.roller.presentation.tags.VelocityTag
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
MenuTag()
           
 
Method Summary
 java.lang.String getId()
          Unique ID for this menu within the user's session.
 java.lang.String getModel()
          Name of the model to be used.
 java.lang.String getTemplateClasspath()
          Return path to Velocity template to render this tag
 java.lang.String getView()
          Name of the view to be used to render the menu.
 void prepareContext(org.apache.velocity.VelocityContext ctx)
          Prepare context for execution
 void setId(java.lang.String v)
          Set the id attribute for this tag.
 void setModel(java.lang.String v)
           
 void setView(java.lang.String v)
           
 
Methods inherited from class org.roller.presentation.tags.VelocityTag
doEndTag, doStandaloneTest, doStartTag, getVelocityClasspathResource, release
 
Methods inherited from class org.roller.presentation.tags.HybridTag
doEndTag, doStartTag, emit, toString
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mMenuId

private java.lang.String mMenuId

mView

private java.lang.String mView

mModel

private java.lang.String mModel
Constructor Detail

MenuTag

public MenuTag()
Method Detail

getId

public java.lang.String getId()
Unique ID for this menu within the user's session.


setId

public void setId(java.lang.String v)
Description copied from class: javax.servlet.jsp.tagext.TagSupport
Set the id attribute for this tag.


getView

public java.lang.String getView()
Name of the view to be used to render the menu. The view is a Velocity template and it must be in the classpath. Values: tabbed, vertical, horizontal.


setView

public void setView(java.lang.String v)

getModel

public java.lang.String getModel()
Name of the model to be used. Must correspond to name of XML file in WEB-INF directory.


setModel

public void setModel(java.lang.String v)

getTemplateClasspath

public java.lang.String getTemplateClasspath()
Description copied from class: org.roller.presentation.tags.VelocityTag
Return path to Velocity template to render this tag


prepareContext

public void prepareContext(org.apache.velocity.VelocityContext ctx)
Description copied from class: org.roller.presentation.tags.VelocityTag
Prepare context for execution