edu.internet2.middleware.grouper.ui.tags
Class GrouperMenuTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by edu.internet2.middleware.grouper.ui.tags.GrouperMenuTag
All Implemented Interfaces:
JspTag, SimpleTag

public class GrouperMenuTag
extends SimpleTagSupport

 This will generate a menu.  You need something to attach the context click to, e.g.
 
 <a id="advancedLink" href="#" class="smallLink" onclick="this.oncontextmenu(event); return false">Advanced</a>
 
 

Author:
mchyzer

Constructor Summary
GrouperMenuTag()
          init fields on construct
 
Method Summary
 void doTag()
           
 void setContextMenu(boolean contextMenu1)
          true if context menu, false if not
 void setContextZoneJqueryHandle(String contextZoneJqueryHandle1)
          the jquery handle (e.g.
 void setMenuId(String menuId1)
          the id of the HTML element of the menu
 void setOperation(String operation1)
          when events occur (onclick), then that operation is called via ajax
 void setStructureOperation(String structureOperation1)
          the operation called to define the structure of the menu
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrouperMenuTag

public GrouperMenuTag()
init fields on construct

Method Detail

setContextZoneJqueryHandle

public void setContextZoneJqueryHandle(String contextZoneJqueryHandle1)
the jquery handle (e.g. #someId) which this menu should be attached to. note that any element you are attaching to must have an id attribute defined

Parameters:
contextZoneJqueryHandle1 - the contextZoneJqueryHandle to set

setContextMenu

public void setContextMenu(boolean contextMenu1)
true if context menu, false if not

Parameters:
contextMenu1 - the contextMenu to set

setStructureOperation

public void setStructureOperation(String structureOperation1)
the operation called to define the structure of the menu

Parameters:
structureOperation1 - the structureOperation to set

setOperation

public void setOperation(String operation1)
when events occur (onclick), then that operation is called via ajax

Parameters:
operation1 - the operation to set

setMenuId

public void setMenuId(String menuId1)
the id of the HTML element of the menu

Parameters:
menuId1 - the menuId to set

doTag

public void doTag()
           throws JspException,
                  IOException
Specified by:
doTag in interface SimpleTag
Overrides:
doTag in class SimpleTagSupport
Throws:
JspException
IOException
See Also:
SimpleTagSupport.doTag()