gboat2.base.view.components
类 Menu

java.lang.Object
  继承者 org.apache.struts2.components.Component
      继承者 org.apache.struts2.components.UIBean
          继承者 org.apache.struts2.components.ClosingUIBean
              继承者 gboat2.base.view.components.Menu

public class Menu
extends org.apache.struts2.components.ClosingUIBean

创建一个菜单列表,详见 Menu Widget

示例代码:

 <g2:menu id="menuWithItems">
     <g2:menuItem title="广联达软件股份有限公司" href="http://www.glodon.com/" />
     <g2:menuItem title="广联达正源兴邦科技有限公司" href="http://www.grandsoft.com.cn" />
     <g2:menuItem title="公司介绍">
         <g2:menu id="subMenuPlugins">
             <g2:menuItem title="公司简介" href="http://www.glodon.com/aboutus/glodon/intro" />
             <g2:menuItem title="公司荣誉" href="http://www.glodon.com/infos?type=5" />
         </g2:menu>
     </g2:menuItem>
     <g2:menuItem title="广联达产品">
         <g2:menu id="subMenuSocialMedia">
             <g2:menuItem title="建设业主项目管理系统" href="http://www.glodon.com/products/80" />
             <g2:menuItem title="企业操作系统" href="http://www.glodon.com/products/74" />
         </g2:menu>
     </g2:menuItem>
     <g2:menuItem title="AJAX">
         <g2:menu id="subMenuAjax">
             <g2:menuItem title="Ajax1">
                 <g2:remote href="ajax/example.action?forward=ajax/ajax1" targets="result" />
             </g2:menuItem>
             <g2:menuItem title="Ajax 2">
                 <g2:remote href="ajax/example.action?forward=ajax/ajax2" targets="result" effect="highlight" effectDuration="2500"/>
             </g2:menuItem>
             <g2:menuItem title="Ajax 3">
                 <g2:remote href="ajax/example.action?forward=ajax/ajax3" targets="result" />
                 <g2:topic onBeforeTopics="beforeLink" onCompleteTopics="completeLink" />
             </g2:menuItem>
         </g2:menu>
     </g2:menuItem>
 </g2:menu>
 
 <p>
     <strong>Result Div :</strong>
     <div id="result" class="result ui-widget-content ui-corner-all">Click on the AJAX Links above.</div>
 </p>
 

从以下版本开始:
3.0
作者:
何明旺
另请参见:
MenuItem

字段摘要
protected  String href
           
static String JQUERYACTION
           
protected  Object list
           
protected  String listKey
           
protected  String listValue
           
protected  String paramName
           
protected  String targets
           
static String TEMPLATE
           
static String TEMPLATE_CLOSE
           
protected  boolean throwExceptionOnNullValueAttribute
           
 
从类 org.apache.struts2.components.UIBean 继承的字段
accesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, errorPosition, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, requiredLabel, requiredPosition, response, standardAttributesMap, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, uiThemeExpansionToken, value
 
从类 org.apache.struts2.components.Component 继承的字段
actionMapper, COMPONENT_STACK, parameters, stack, throwExceptionOnELFailure
 
构造方法摘要
Menu(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
方法摘要
 void evaluateExtraParams()
           
 String getDefaultOpenTemplate()
           
protected  String getDefaultTemplate()
           
 void setDisabled(String disabled)
           
 void setHref(String href)
           
 void setList(Object list)
           
 void setListKey(String listKey)
           
 void setListValue(String listValue)
           
 void setParamName(String paramName)
           
 void setTargets(String targets)
           
 
从类 org.apache.struts2.components.ClosingUIBean 继承的方法
setOpenTemplate, start
 
从类 org.apache.struts2.components.UIBean 继承的方法
addFormParameter, buildTemplateName, copyParams, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateNameValue, evaluateParams, getId, getStandardAttributes, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssErrorClass, setCssErrorStyle, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDynamicAttributes, setErrorPosition, setId, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequiredLabel, setRequiredPosition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTheme, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setUIThemeExpansionToken, setValue
 
从类 org.apache.struts2.components.Component 继承的方法
addAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, popComponentStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, stripExpressionIfAltSyntax, toString, usesBody
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

JQUERYACTION

public static final String JQUERYACTION
另请参见:
常量字段值

TEMPLATE

public static final String TEMPLATE
另请参见:
常量字段值

TEMPLATE_CLOSE

public static final String TEMPLATE_CLOSE
另请参见:
常量字段值

throwExceptionOnNullValueAttribute

protected boolean throwExceptionOnNullValueAttribute

targets

protected String targets

href

protected String href

paramName

protected String paramName

list

protected Object list

listKey

protected String listKey

listValue

protected String listValue
构造方法详细信息

Menu

public Menu(com.opensymphony.xwork2.util.ValueStack stack,
            javax.servlet.http.HttpServletRequest request,
            javax.servlet.http.HttpServletResponse response)
方法详细信息

getDefaultOpenTemplate

public String getDefaultOpenTemplate()
指定者:
org.apache.struts2.components.ClosingUIBean 中的 getDefaultOpenTemplate

getDefaultTemplate

protected String getDefaultTemplate()
指定者:
org.apache.struts2.components.UIBean 中的 getDefaultTemplate

evaluateExtraParams

public void evaluateExtraParams()
覆盖:
org.apache.struts2.components.UIBean 中的 evaluateExtraParams

setDisabled

public void setDisabled(String disabled)
覆盖:
org.apache.struts2.components.UIBean 中的 setDisabled

setTargets

public void setTargets(String targets)

setList

public void setList(Object list)

setListKey

public void setListKey(String listKey)

setListValue

public void setListValue(String listValue)

setHref

public void setHref(String href)

setParamName

public void setParamName(String paramName)


Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.