|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
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
创建一个菜单列表,详见 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>
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 |
字段详细信息 |
---|
public static final String JQUERYACTION
public static final String TEMPLATE
public static final String TEMPLATE_CLOSE
protected boolean throwExceptionOnNullValueAttribute
protected String targets
protected String href
protected String paramName
protected Object list
protected String listKey
protected String listValue
构造方法详细信息 |
---|
public Menu(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
方法详细信息 |
---|
public String getDefaultOpenTemplate()
org.apache.struts2.components.ClosingUIBean
中的 getDefaultOpenTemplate
protected String getDefaultTemplate()
org.apache.struts2.components.UIBean
中的 getDefaultTemplate
public void evaluateExtraParams()
org.apache.struts2.components.UIBean
中的 evaluateExtraParams
public void setDisabled(String disabled)
org.apache.struts2.components.UIBean
中的 setDisabled
public void setTargets(String targets)
public void setList(Object list)
public void setListKey(String listKey)
public void setListValue(String listValue)
public void setHref(String href)
public void setParamName(String paramName)
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |