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

字段摘要
protected  String altClass
           
protected  String altRows
           
protected  String autoencode
           
protected  String autowidth
           
protected  String caption
           
protected  String cellEdit
           
protected  String cellsubmit
           
protected  String cellurl
           
static String COMPONENT_NAME
           
protected  String connectWith
           
protected  String direction
           
protected  String editinline
           
protected  String editurl
           
protected  String filter
           
protected  String filterOptions
           
protected  String footerrow
           
protected  String gridModel
           
protected  String gridview
           
protected  String groupCollapse
           
protected  String groupColumnShow
           
protected  String groupDataSorted
           
protected  String groupField
           
protected  String groupMinusIcon
           
protected  String groupOrder
           
protected  String groupPlusIcon
           
protected  String groupShowSummaryOnHide
           
protected  String groupSummary
           
protected  String groupText
           
protected  String height
           
protected  String hiddengrid
           
protected  String hidegrid
           
protected  String hoverrows
           
static String JQUERYACTION
           
protected  String loadonce
           
protected  String multiboxonly
           
protected  String multiselect
           
protected  String multiselectWidth
           
protected  String navigator
           
protected  String navigatorAdd
           
protected  String navigatorAddOptions
           
protected  String navigatorCloneToTop
           
protected  String navigatorDelete
           
protected  String navigatorDeleteOptions
           
protected  String navigatorEdit
           
protected  String navigatorEditOptions
           
protected  String navigatorExtraButtons
           
protected  String navigatorInlineEditButtons
           
protected  String navigatorRefresh
           
protected  String navigatorSearch
           
protected  String navigatorSearchOptions
           
protected  String navigatorView
           
protected  String navigatorViewOptions
           
protected  String onCellEditErrorTopics
           
protected  String onCellEditSuccessTopics
           
protected  String onCellSelectTopics
           
protected  String onClickGroupTopics
           
protected  String onDblClickRowTopics
           
protected  String onEditInlineAfterSaveTopics
           
protected  String onEditInlineBeforeTopics
           
protected  String onEditInlineErrorTopics
           
protected  String onEditInlineSuccessTopics
           
protected  String onGridCompleteTopics
           
protected  String onRightClickRowTopics
           
protected  String onSelectAllTopics
           
protected  String onSelectRowTopics
           
protected  String onSortColTopics
           
protected  String onSubGridRowExpanded
           
protected  String page
           
protected  String prmNames
           
protected  String reloadTopics
           
protected  String rownumbers
           
protected  String rowTotal
           
protected  String scroll
           
protected  String scrollrows
           
protected  String searchForm
           
protected  String shrinkToFit
           
protected  String sortableRows
           
protected  String sortname
           
protected  String sortorder
           
protected  String subGridUrl
           
protected  String subGridWidth
           
static String TEMPLATE
           
static String TEMPLATE_CLOSE
           
protected  String toppager
           
protected  String userDataOnFooter
           
protected  String viewsortcols
           
protected  String width
           
 
从类 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)
           
 
方法摘要
 void evaluateExtraParams()
           
 String getDefaultOpenTemplate()
           
protected  String getDefaultTemplate()
           
 void setAltClass(String altClass)
           
 void setAltRows(String altRows)
           
 void setAutoencode(String autoencode)
           
 void setAutowidth(String autowidth)
           
 void setCaption(String caption)
           
 void setCellEdit(String cellEdit)
           
 void setCellsubmit(String cellsubmit)
           
 void setCellurl(String cellurl)
           
 void setConnectWith(String connectWith)
           
 void setDirection(String direction)
           
 void setEditinline(String editinline)
           
 void setEditurl(String editurl)
           
 void setFilter(String filter)
           
 void setFilterOptions(String filterOptions)
           
 void setFooterrow(String footerrow)
           
 void setGridModel(String gridModel)
           
 void setGridview(String gridview)
           
 void setGroupCollapse(String groupCollapse)
           
 void setGroupColumnShow(String groupColumnShow)
           
 void setGroupDataSorted(String groupDataSorted)
           
 void setGroupField(String groupField)
           
 void setGroupMinusIcon(String groupMinusIcon)
           
 void setGroupOrder(String groupOrder)
           
 void setGroupPlusIcon(String groupPlusIcon)
           
 void setGroupShowSummaryOnHide(String groupShowSummaryOnHide)
           
 void setGroupSummary(String groupSummary)
           
 void setGroupText(String groupText)
           
 void setHeight(String height)
           
 void setHiddengrid(String hiddengrid)
           
 void setHidegrid(String hidegrid)
           
 void setHoverrows(String hoverrows)
           
 void setLoadonce(String loadonce)
           
 void setMultiboxonly(String multiboxonly)
           
 void setMultiselect(String multiselect)
           
 void setMultiselectWidth(String multiselectWidth)
           
 void setNavigator(String navigator)
           
 void setNavigatorAdd(String navigatorAdd)
           
 void setNavigatorAddOptions(String navigatorAddOptions)
           
 void setNavigatorCloneToTop(String navigatorCloneToTop)
           
 void setNavigatorDelete(String navigatorDelete)
           
 void setNavigatorDeleteOptions(String navigatorDeleteOptions)
           
 void setNavigatorEdit(String navigatorEdit)
           
 void setNavigatorEditOptions(String navigatorEditOptions)
           
 void setNavigatorExtraButtons(String navigatorExtraButtons)
           
 void setNavigatorInlineEditButtons(String navigatorInlineEditButtons)
           
 void setNavigatorRefresh(String navigatorRefresh)
           
 void setNavigatorSearch(String navigatorSearch)
           
 void setNavigatorSearchOptions(String navigatorSearchOptions)
           
 void setNavigatorView(String navigatorView)
           
 void setNavigatorViewOptions(String navigatorViewOptions)
           
 void setOnCellEditErrorTopics(String onCellEditErrorTopics)
           
 void setOnCellEditSuccessTopics(String onCellEditSuccessTopics)
           
 void setOnCellSelectTopics(String onCellSelectTopics)
           
 void setOnClickGroupTopics(String onClickGroupTopics)
           
 void setOnDblClickRowTopics(String onDblClickRowTopics)
           
 void setOnEditInlineAfterSaveTopics(String onEditInlineAfterSaveTopics)
           
 void setOnEditInlineBeforeTopics(String onEditInlineBeforeTopics)
           
 void setOnEditInlineErrorTopics(String onEditInlineErrorTopics)
           
 void setOnEditInlineSuccessTopics(String onEditInlineSuccessTopics)
           
 void setOnGridCompleteTopics(String onGridCompleteTopics)
           
 void setOnRightClickRowTopics(String onRightClickRowTopics)
           
 void setOnSelectAllTopics(String onSelectAllTopics)
           
 void setOnSelectRowTopics(String onSelectRowTopics)
           
 void setOnSortColTopics(String onSortColTopics)
           
 void setOnSubGridRowExpanded(String onSubGridRowExpanded)
           
 void setPage(String page)
           
 void setPrmNames(String prmNames)
           
 void setReloadTopics(String reloadTopics)
           
 void setRownumbers(String rownumbers)
           
 void setRowTotal(String rowTotal)
           
 void setScroll(String scroll)
           
 void setScrollrows(String scrollrows)
           
 void setSearchForm(String searchForm)
           
 void setShrinkToFit(String shrinkToFit)
           
 void setSortableRows(String sortableRows)
           
 void setSortname(String sortname)
           
 void setSortorder(String sortorder)
           
 void setSubGridUrl(String subGridUrl)
           
 void setSubGridWidth(String subGridWidth)
           
 void setToppager(String toppager)
           
 void setUserDataOnFooter(String userDataOnFooter)
           
 void setViewsortcols(String viewsortcols)
           
 void setWidth(String width)
           
 
从类 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.