gboat2.base.view.components
类 Accordion
java.lang.Object
org.apache.struts2.components.Component
org.apache.struts2.components.UIBean
org.apache.struts2.components.ClosingUIBean
gboat2.base.view.components.Accordion
public class Accordion
- extends org.apache.struts2.components.ClosingUIBean
创建一个可以折叠的面板(Accordion),详见 Accordion Widget
示例1: 手动创建
<g2:accordion id="accordion">
<g2:accordionItem title="公司简介">
<p>广联达是服务于建筑产品的建造者、运维者和使用者的信息化平台运营商,为客户提供建设工程全生命周期的信息化解决方案。公司将持续引领产业发展、推动社会进步,用科技创造美好生活和居住环境! </p>
<p>广联达软件股份有限公司成立于1998年,2010年5月在深圳中小企业板成功上市(股票简称:广联达,股票代码:002410),成为中国建设工程领域信息化产业首家上市软件公司。</p>
</g2:accordionItem>
<g2:accordionItem title="发展历程">
<ul>
<li>从成立之初的7位创始人,到如今的全国三千五百余名员工、四十余家分支机构的建设信息;</li>
<li>从方庄地下室,到中关村软件软园内总建筑面积超过四万平米的两栋自主产权大厦;</li>
<li>从单一的预算软件,发展到工程造价、工程信息、工程施工、工程设计、企业管理、教育培训、电子政务以及面向各类客户的互联网应用等八大类、七十余种产品;</li>
<li>企业用户数量达到十五万余家,其中工具类产品直接使用者五十万,管理类产品直接使用者百余万;</li>
</ul>
</g2:accordionItem>
<g2:accordionItem title="公司荣誉">
<dl>
<dt>2013所获荣誉</dt>
<dd>2013—2014年度国家规划布局内重点软件企业</dd>
<dd>“中国软件创新力20强”称号</dd>
<dd>广联达的“基于CAD识别的三维模型重建技术在安装算量软件中的应用及产业化”荣获北京市科学技术奖三等奖</dd>
</dl>
</g2:accordionItem>
</g2:accordion>
示例2: 使用 Map 创建
JSP 代码:
<g2:accordion id="accordionlist" list="accordion"/>
Action 代码:
private Map<String, String> accordion;
public String execute() throws Exception {
accordion = new LinkedHashMap<String, String>();
accordion.put(
"Section 1",
"Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.");
accordion.put(
"Section 2",
"Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.");
accordion.put(
"Section 3",
"Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.");
accordion.put(
"Section 4",
"Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est. Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.");
return SUCCESS;
}
public Map<String, String> getAccordion() {
return accordion;
}
- 作者:
- Johannes Geppert
从类 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 |
构造方法摘要 |
Accordion(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
从类 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 |
TEMPLATE
public static final String TEMPLATE
- 另请参见:
- 常量字段值
TEMPLATE_CLOSE
public static final String TEMPLATE_CLOSE
- 另请参见:
- 常量字段值
JQUERYACTION
public static final String JQUERYACTION
- 另请参见:
- 常量字段值
throwExceptionOnNullValueAttribute
protected boolean throwExceptionOnNullValueAttribute
active
protected String active
animate
protected String animate
collapsible
protected String collapsible
event
protected String event
header
protected String header
heightStyle
protected String heightStyle
list
protected Object list
listKey
protected String listKey
listValue
protected String listValue
href
protected String href
paramKeys
protected String paramKeys
paramValues
protected String paramValues
onActivateTopics
protected String onActivateTopics
onBeforeActivateTopics
protected String onBeforeActivateTopics
onCreateTopics
protected String onCreateTopics
Accordion
public Accordion(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
setActive
public void setActive(String active)
setAnimate
public void setAnimate(String animate)
setCollapsible
public void setCollapsible(String collapsible)
setDisabled
public void setDisabled(String disabled)
- 覆盖:
- 类
org.apache.struts2.components.UIBean
中的 setDisabled
setEvent
public void setEvent(String event)
getHeader
public String getHeader()
setHeader
public void setHeader(String header)
setHeightStyle
public void setHeightStyle(String heightStyle)
setList
public void setList(Object list)
setListKey
public void setListKey(String listKey)
setListValue
public void setListValue(String listValue)
setHref
public void setHref(String href)
setParamKeys
public void setParamKeys(String paramKeys)
setParamValues
public void setParamValues(String paramValues)
setOnActivateTopics
public void setOnActivateTopics(String onActivateTopics)
setOnBeforeActivateTopics
public void setOnBeforeActivateTopics(String onBeforeActivateTopics)
setOnCreateTopics
public void setOnCreateTopics(String onCreateTopics)
Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.