gboat2.base.view.components
类 Grid
java.lang.Object
org.apache.struts2.components.Component
org.apache.struts2.components.UIBean
org.apache.struts2.components.ClosingUIBean
gboat2.base.view.components.Grid
public class Grid
- extends org.apache.struts2.components.ClosingUIBean
根据返回的 JSON 数据,创建通用表格,详见:
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events
示例代码:
<g2:grid id="grid_role" caption="角色列表">
<g2:remote href="role!list.do?data"/>
<g2:gridPager />
<g2:gridColumn name="rownumberer" title="序号" formatter="rownumberer" width="45" fixed="true" />
<g2:gridColumn name="roleId" title="ID" key="true" hidden="true"/>
<g2:gridColumn name="roleName" title="角色名称"/>
<g2:gridColumn name="roleCode" title="角色编码"/>
<g2:gridColumn name="description" title="描述"/>
<g2:gridOperations>
<g2:gridOperation name="edit"/>
<g2:gridOperation name="ajaxDelete"/>
<g2:gridOperation name="findResourceTree" title="权限管理" icon="icon-sitemap"/>
</g2:gridOperations>
</g2:grid>
- 从以下版本开始:
- 3.0
- 作者:
- 何明旺
- 另请参见:
GridColumn
,
GridOperations
,
GridOperation
从类 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 |
构造方法摘要 |
Grid(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, setDisabled, 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
- 另请参见:
- 常量字段值
COMPONENT_NAME
public static final String COMPONENT_NAME
width
protected String width
height
protected String height
sortname
protected String sortname
gridview
protected String gridview
autowidth
protected String autowidth
sortorder
protected String sortorder
loadonce
protected String loadonce
multiselect
protected String multiselect
multiboxonly
protected String multiboxonly
editurl
protected String editurl
editinline
protected String editinline
caption
protected String caption
shrinkToFit
protected String shrinkToFit
gridModel
protected String gridModel
scroll
protected String scroll
navigator
protected String navigator
navigatorEditOptions
protected String navigatorEditOptions
navigatorAddOptions
protected String navigatorAddOptions
navigatorDeleteOptions
protected String navigatorDeleteOptions
navigatorSearchOptions
protected String navigatorSearchOptions
navigatorViewOptions
protected String navigatorViewOptions
navigatorAdd
protected String navigatorAdd
navigatorDelete
protected String navigatorDelete
navigatorEdit
protected String navigatorEdit
navigatorRefresh
protected String navigatorRefresh
navigatorSearch
protected String navigatorSearch
navigatorView
protected String navigatorView
navigatorInlineEditButtons
protected String navigatorInlineEditButtons
navigatorExtraButtons
protected String navigatorExtraButtons
navigatorCloneToTop
protected String navigatorCloneToTop
autoencode
protected String autoencode
cellEdit
protected String cellEdit
cellurl
protected String cellurl
cellsubmit
protected String cellsubmit
footerrow
protected String footerrow
hiddengrid
protected String hiddengrid
hidegrid
protected String hidegrid
hoverrows
protected String hoverrows
rownumbers
protected String rownumbers
multiselectWidth
protected String multiselectWidth
page
protected String page
scrollrows
protected String scrollrows
filter
protected String filter
subGridWidth
protected String subGridWidth
subGridUrl
protected String subGridUrl
userDataOnFooter
protected String userDataOnFooter
filterOptions
protected String filterOptions
altClass
protected String altClass
altRows
protected String altRows
prmNames
protected String prmNames
direction
protected String direction
rowTotal
protected String rowTotal
viewsortcols
protected String viewsortcols
toppager
protected String toppager
onSelectRowTopics
protected String onSelectRowTopics
onSelectAllTopics
protected String onSelectAllTopics
onSortColTopics
protected String onSortColTopics
onCellSelectTopics
protected String onCellSelectTopics
onGridCompleteTopics
protected String onGridCompleteTopics
onEditInlineBeforeTopics
protected String onEditInlineBeforeTopics
onEditInlineSuccessTopics
protected String onEditInlineSuccessTopics
onEditInlineErrorTopics
protected String onEditInlineErrorTopics
onEditInlineAfterSaveTopics
protected String onEditInlineAfterSaveTopics
onCellEditSuccessTopics
protected String onCellEditSuccessTopics
onCellEditErrorTopics
protected String onCellEditErrorTopics
onSubGridRowExpanded
protected String onSubGridRowExpanded
onClickGroupTopics
protected String onClickGroupTopics
onDblClickRowTopics
protected String onDblClickRowTopics
onRightClickRowTopics
protected String onRightClickRowTopics
reloadTopics
protected String reloadTopics
sortableRows
protected String sortableRows
connectWith
protected String connectWith
groupField
protected String groupField
groupColumnShow
protected String groupColumnShow
groupText
protected String groupText
groupCollapse
protected String groupCollapse
groupOrder
protected String groupOrder
groupSummary
protected String groupSummary
groupDataSorted
protected String groupDataSorted
groupShowSummaryOnHide
protected String groupShowSummaryOnHide
groupPlusIcon
protected String groupPlusIcon
groupMinusIcon
protected String groupMinusIcon
searchForm
protected String searchForm
Grid
public Grid(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
setWidth
public void setWidth(String width)
setHeight
public void setHeight(String height)
setSortname
public void setSortname(String sortname)
setGridview
public void setGridview(String gridview)
setAutowidth
public void setAutowidth(String autowidth)
setSortorder
public void setSortorder(String sortorder)
setLoadonce
public void setLoadonce(String loadonce)
setMultiselect
public void setMultiselect(String multiselect)
setMultiboxonly
public void setMultiboxonly(String multiboxonly)
setEditurl
public void setEditurl(String editurl)
setEditinline
public void setEditinline(String editinline)
setCaption
public void setCaption(String caption)
setShrinkToFit
public void setShrinkToFit(String shrinkToFit)
setGridModel
public void setGridModel(String gridModel)
setScroll
public void setScroll(String scroll)
setNavigator
public void setNavigator(String navigator)
setNavigatorAddOptions
public void setNavigatorAddOptions(String navigatorAddOptions)
setNavigatorEditOptions
public void setNavigatorEditOptions(String navigatorEditOptions)
setNavigatorDeleteOptions
public void setNavigatorDeleteOptions(String navigatorDeleteOptions)
setNavigatorSearchOptions
public void setNavigatorSearchOptions(String navigatorSearchOptions)
setNavigatorViewOptions
public void setNavigatorViewOptions(String navigatorViewOptions)
setNavigatorCloneToTop
public void setNavigatorCloneToTop(String navigatorCloneToTop)
setAutoencode
public void setAutoencode(String autoencode)
setCellEdit
public void setCellEdit(String cellEdit)
setCellurl
public void setCellurl(String cellurl)
setCellsubmit
public void setCellsubmit(String cellsubmit)
setFooterrow
public void setFooterrow(String footerrow)
setHiddengrid
public void setHiddengrid(String hiddengrid)
setHidegrid
public void setHidegrid(String hidegrid)
setHoverrows
public void setHoverrows(String hoverrows)
setRownumbers
public void setRownumbers(String rownumbers)
setMultiselectWidth
public void setMultiselectWidth(String multiselectWidth)
setPage
public void setPage(String page)
setScrollrows
public void setScrollrows(String scrollrows)
setNavigatorAdd
public void setNavigatorAdd(String navigatorAdd)
setNavigatorDelete
public void setNavigatorDelete(String navigatorDelete)
setNavigatorEdit
public void setNavigatorEdit(String navigatorEdit)
setNavigatorRefresh
public void setNavigatorRefresh(String navigatorRefresh)
setNavigatorSearch
public void setNavigatorSearch(String navigatorSearch)
setNavigatorView
public void setNavigatorView(String navigatorView)
setNavigatorExtraButtons
public void setNavigatorExtraButtons(String navigatorExtraButtons)
setNavigatorInlineEditButtons
public void setNavigatorInlineEditButtons(String navigatorInlineEditButtons)
setFilter
public void setFilter(String filter)
setFilterOptions
public void setFilterOptions(String filterOptions)
setSubGridWidth
public void setSubGridWidth(String subGridWidth)
setSubGridUrl
public void setSubGridUrl(String subGridUrl)
setUserDataOnFooter
public void setUserDataOnFooter(String userDataOnFooter)
setAltClass
public void setAltClass(String altClass)
setAltRows
public void setAltRows(String altRows)
setPrmNames
public void setPrmNames(String prmNames)
setDirection
public void setDirection(String direction)
setRowTotal
public void setRowTotal(String rowTotal)
setViewsortcols
public void setViewsortcols(String viewsortcols)
setToppager
public void setToppager(String toppager)
setOnSelectRowTopics
public void setOnSelectRowTopics(String onSelectRowTopics)
setOnSelectAllTopics
public void setOnSelectAllTopics(String onSelectAllTopics)
setOnSortColTopics
public void setOnSortColTopics(String onSortColTopics)
setOnCellSelectTopics
public void setOnCellSelectTopics(String onCellSelectTopics)
setOnGridCompleteTopics
public void setOnGridCompleteTopics(String onGridCompleteTopics)
setOnEditInlineBeforeTopics
public void setOnEditInlineBeforeTopics(String onEditInlineBeforeTopics)
setOnEditInlineSuccessTopics
public void setOnEditInlineSuccessTopics(String onEditInlineSuccessTopics)
setOnEditInlineErrorTopics
public void setOnEditInlineErrorTopics(String onEditInlineErrorTopics)
setOnEditInlineAfterSaveTopics
public void setOnEditInlineAfterSaveTopics(String onEditInlineAfterSaveTopics)
setOnCellEditSuccessTopics
public void setOnCellEditSuccessTopics(String onCellEditSuccessTopics)
setOnCellEditErrorTopics
public void setOnCellEditErrorTopics(String onCellEditErrorTopics)
setOnSubGridRowExpanded
public void setOnSubGridRowExpanded(String onSubGridRowExpanded)
setOnClickGroupTopics
public void setOnClickGroupTopics(String onClickGroupTopics)
setOnDblClickRowTopics
public void setOnDblClickRowTopics(String onDblClickRowTopics)
setOnRightClickRowTopics
public void setOnRightClickRowTopics(String onRightClickRowTopics)
setReloadTopics
public void setReloadTopics(String reloadTopics)
setSortableRows
public void setSortableRows(String sortableRows)
setConnectWith
public void setConnectWith(String connectWith)
setGroupField
public void setGroupField(String groupField)
setGroupColumnShow
public void setGroupColumnShow(String groupColumnShow)
setGroupText
public void setGroupText(String groupText)
setGroupCollapse
public void setGroupCollapse(String groupCollapse)
setGroupOrder
public void setGroupOrder(String groupOrder)
setGroupSummary
public void setGroupSummary(String groupSummary)
setGroupDataSorted
public void setGroupDataSorted(String groupDataSorted)
setGroupShowSummaryOnHide
public void setGroupShowSummaryOnHide(String groupShowSummaryOnHide)
setGroupPlusIcon
public void setGroupPlusIcon(String groupPlusIcon)
setGroupMinusIcon
public void setGroupMinusIcon(String groupMinusIcon)
setSearchForm
public void setSearchForm(String searchForm)
Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.