Class AbstractViewListActionSupport.ViewListConfig
java.lang.Object
name.matthewgreet.strutscommons.action.AbstractViewListActionSupport.ViewListConfig
- Enclosing class:
AbstractViewListActionSupport<M extends Serializable,
K extends Serializable, T extends Serializable, FT>
Configures list to be loaded by viewer action. Configuration is fixed
and does not change during the action's lifetime.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for displaying entire list (regardless of cache mode). -
Method Summary
Modifier and TypeMethodDescriptionName of Struts forward (usually global forward) to be used for unhandlable errors.boolean
Whether no list or page is displayed.boolean
Whether the list should be displayed in pages, rather than the entire list.int
Returns size of each page, if in page mode.Returns name of request parameter that specifies selected item by its index number (starting at 0).Returns name of request parameter that specifies selected item of master list by its index number (starting at 0).Returns name of request parameter that specifies page to display (if in page mode), starting at 1.Returns name of request parameter that specifies reloading from DB.Returns name of request parameter that specifies ascending sort order.Returns name of request parameter that specifies sort option, usually a record field name.boolean
Returns whether to reload from DB in the absence of the reload parameter.boolean
Returns whether currently selected item of list cache must include details.boolean
Returns whether currently selected item of master list cache must include details.Returns new config for displaying nothing from the list.Returns new config for actions displaying a full list of base records without any detail.makePagedListConfig
(int pageSize) Returns new config for displaying lists of base records in pages without any detail.Returns new config for displaying a single record with any detail.void
setErrorForwardName
(String value) void
setIgnoreList
(boolean ignoreList) void
setPageMode
(boolean value) void
setPageSize
(int value) void
void
void
setParameterNamePage
(String value) void
setParameterNameReload
(String value) void
setParameterNameSortAscending
(String parameterNameSortAscending) void
setParameterNameSortOption
(String parameterNameSortOption) void
setReloadDefault
(boolean value) void
setRequireSelectedItemDetail
(boolean requireSelectedItemDetail) void
setRequireSelectedMasterDetail
(boolean requireSelectedMasterDetail)
-
Constructor Details
-
ViewListConfig
public ViewListConfig()Constructor for displaying entire list (regardless of cache mode).
-
-
Method Details
-
makeNoListConfig
Returns new config for displaying nothing from the list. Parameters, such as 'select' are still read and processed. -
makeNonPagedListConfig
Returns new config for actions displaying a full list of base records without any detail. If detail applies, a different action displays them. -
makePagedListConfig
Returns new config for displaying lists of base records in pages without any detail. If detail applies, a different action displays them. -
makeSingleRecordConfig
Returns new config for displaying a single record with any detail. -
getIgnoreList
public boolean getIgnoreList()Whether no list or page is displayed. -
setIgnoreList
public void setIgnoreList(boolean ignoreList) -
getPageMode
public boolean getPageMode()Whether the list should be displayed in pages, rather than the entire list. This is not the same as the cache page. The view controller can decide to display in pages independently of how the cache can retrieve them. -
setPageMode
public void setPageMode(boolean value) -
getPageSize
public int getPageSize()Returns size of each page, if in page mode. -
setPageSize
public void setPageSize(int value) -
getReloadDefault
public boolean getReloadDefault()Returns whether to reload from DB in the absence of the reload parameter. -
setReloadDefault
public void setReloadDefault(boolean value) -
getRequireSelectedMasterDetail
public boolean getRequireSelectedMasterDetail()Returns whether currently selected item of master list cache must include details. -
setRequireSelectedMasterDetail
public void setRequireSelectedMasterDetail(boolean requireSelectedMasterDetail) -
getRequireSelectedItemDetail
public boolean getRequireSelectedItemDetail()Returns whether currently selected item of list cache must include details. -
setRequireSelectedItemDetail
public void setRequireSelectedItemDetail(boolean requireSelectedItemDetail) -
getErrorForwardName
Name of Struts forward (usually global forward) to be used for unhandlable errors. Defaults to 'error'. -
setErrorForwardName
-
getParameterNameIndexSelect
Returns name of request parameter that specifies selected item by its index number (starting at 0). Defaults to 'select'. -
setParameterNameIndexSelect
-
getParameterNameMasterIndexSelect
Returns name of request parameter that specifies selected item of master list by its index number (starting at 0). Defaults to 'masterSelect'. -
setParameterNameMasterIndexSelect
-
getParameterNamePage
Returns name of request parameter that specifies page to display (if in page mode), starting at 1. Defaults to 'page'. -
setParameterNamePage
-
getParameterNameReload
Returns name of request parameter that specifies reloading from DB. Defaults to 'reload'. -
setParameterNameReload
-
getParameterNameSortAscending
Returns name of request parameter that specifies ascending sort order. Defaults to 'ascending'. -
setParameterNameSortAscending
-
getParameterNameSortOption
Returns name of request parameter that specifies sort option, usually a record field name. Defaults to 'sort'. -
setParameterNameSortOption
-