public abstract class PagedResourceActionII extends VelocityPortletPaneledAction
PagedResourceAction is a base class that handles paged display of lists of Resourecs with service support for paging.
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_PAGE_SIZE
The default number of messages per page.
|
protected static String |
FORM_PAGE_NUMBER |
protected static String |
FORM_SEARCH
Form fields.
|
protected static int[] |
PAGESIZES |
protected static String |
PARAM_PAGESIZE
portlet configuration parameter names.
|
protected static ResourceLoader |
rb_praII |
protected static String |
STATE_CURRENT_PAGE |
protected static String |
STATE_FIRST_PAGE_EXISTS |
protected static String |
STATE_GO_FIRST_PAGE |
protected static String |
STATE_GO_LAST_PAGE |
protected static String |
STATE_GO_NEXT |
protected static String |
STATE_GO_NEXT_PAGE |
protected static String |
STATE_GO_PREV |
protected static String |
STATE_GO_PREV_PAGE |
protected static String |
STATE_GOTO_PAGE |
protected static String |
STATE_LAST_PAGE_EXISTS |
protected static String |
STATE_MANUAL_REFRESH |
protected static String |
STATE_NEXT_EXISTS |
protected static String |
STATE_NEXT_PAGE_EXISTS |
protected static String |
STATE_NUM_MESSAGES |
protected static String |
STATE_PAGESIZE |
protected static String |
STATE_PREV_EXISTS |
protected static String |
STATE_PREV_PAGE_EXISTS |
protected static String |
STATE_SEARCH |
protected static String |
STATE_TOP_PAGE_MESSAGE |
protected static String |
STATE_TOTAL_PAGENUMBER |
protected static String |
STATE_VIEW_ID
state attribute names.
|
ATTR_CONFIG, ATTR_CONTEXT, ATTR_FRAME_FOCUS, ATTR_FRAME_REFRESH, ATTR_PORTLET, ATTR_RUNDATA, ATTR_TOP_REFRESH, BUTTON, CONTEXT_SITE_COLLECTION_ID, CONTEXT_SITE_COLLECTION_URL, HELPER_LINK_MODE, HELPER_MODE_DONE, LAYOUT_MAIN, MODE_OPTIONS, SAKAI_CSRF_TOKEN, STATE_ACTION, STATE_FLOAT, STATE_HELPER, STATE_MESSAGE, STATE_MODE, STATE_NEW_PANEL, STATE_NOTIF, STATE_OBSERVER, STATE_OBSERVER2, STATE_PRESENCE_OBSERVER, STATE_TOOLALERT_ATTR, ALERT_STATE_INITED, HELPER_ID, MAIN_PANEL, MENU_ATTR, PARAM_ACTION, PARAM_ACTION_COMBO, TITLE_PANEL, TOOL_MODE_ATTR, TOOL_MODE_DEFAULTm_validatorATTR_PARAMS| Constructor and Description |
|---|
PagedResourceActionII() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addListPagingMenus(Menu bar,
SessionState state)
Add the menus for a list mode for paging.
|
protected void |
addRefreshMenus(Menu bar,
SessionState state)
Add the menus for manual / auto - refresh.
|
protected void |
addSearchMenus(Menu bar,
SessionState state)
Add the menus for search.
|
protected void |
addSearchMenus(Menu bar,
SessionState state,
String accessibilityLabel)
Add the menus for search, including accessibility title
|
protected void |
addViewPagingMenus(Menu bar,
SessionState state)
Add the menus for a view mode for paging.
|
void |
cleanStatePaging(SessionState state)
Clean up all state value for paging.
|
void |
doAuto(RunData data,
Context context)
Toggle auto-update
|
void |
doChange_pagesize(RunData data,
Context context)
Handle a request to change the page size of search list.
|
void |
doList_first(RunData runData,
Context context)
Handle a first-message page (list) request.
|
void |
doList_last(RunData runData,
Context context)
Handle a last-message page (list) request.
|
void |
doList_next(RunData runData,
Context context)
Handle a next-page (list) request.
|
void |
doList_prev(RunData runData,
Context context)
Handle a prev-page (list) request.
|
void |
doRefresh(RunData data,
Context context)
The action for when the user want's an update
|
void |
doSearch_clear(RunData runData,
Context context)
Handle a Search Clear request.
|
void |
doSearch(RunData runData,
Context context)
Handle a Search request.
|
void |
doView_next(RunData runData,
Context context)
Handle a next-message (view) request.
|
void |
doView_page(RunData runData,
Context context)
Handle a view indecated page request
|
void |
doView_prev(RunData runData,
Context context)
Handle a prev-message (view) request.
|
void |
enableObserver(SessionState state)
Enable the observer, unless we are in search mode, where we want it disabled.
|
protected void |
initState(SessionState state,
VelocityPortlet portlet,
JetspeedRunData rundata)
Populate the state object, if needed, concerning paging
|
void |
pagingInfoToContext(SessionState state,
Context context) |
protected List |
prepPage(SessionState state)
Prepare the current page of messages to display.
|
protected abstract List |
readResourcesPage(SessionState state,
int first,
int last)
Implement this to return a list of all the resources in this record range, with search and sorting applied.
|
protected void |
resetPaging(SessionState state)
Reset to the first page
|
protected abstract int |
sizeResources(SessionState state)
Implement this to return the number of records that are currently selected.
|
protected int |
totalPageNumber(SessionState state)
Return the total page number
|
actionDispatch, addAlert, addFlashNotif, addOptionsMenu, allowedToOptions, cancelOptions, checkCSRFToken, checkRunData, clientWindowId, disableObservers, doGet, doOptions, doReset, enableObservers, getContext, getDateFormatString, getTimeFormatString, helperActionDispatch, initState, justDelivered, mainPanelUpdateId, panelMethodName, processAction, resetTool, saveOptions, scheduleFocusRefresh, schedulePeerFrameRefresh, scheduleTopRefresh, setVmCourier, setVmStdRef, switchPanel, titlePanelUpdateId, toolModeDispatch, updateStatedoPost, getAlert, getAlert, getMenu, getPid, getState, getToolMode, prepState, sendToHelper, setToolMode, startHelper, startHelpergetActionURL, getVmReference, includeVm, setVmReferencesendParentRedirect, service, setNoCacheHeadersdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, serviceprotected static ResourceLoader rb_praII
protected static final int DEFAULT_PAGE_SIZE
protected static final String PARAM_PAGESIZE
protected static final String STATE_VIEW_ID
protected static final String STATE_TOP_PAGE_MESSAGE
protected static final String STATE_PAGESIZE
protected static final String STATE_NUM_MESSAGES
protected static final String STATE_NEXT_PAGE_EXISTS
protected static final String STATE_PREV_PAGE_EXISTS
protected static final String STATE_FIRST_PAGE_EXISTS
protected static final String STATE_LAST_PAGE_EXISTS
protected static final String STATE_GO_NEXT_PAGE
protected static final String STATE_GO_PREV_PAGE
protected static final String STATE_GO_NEXT
protected static final String STATE_GO_PREV
protected static final String STATE_NEXT_EXISTS
protected static final String STATE_PREV_EXISTS
protected static final String STATE_GO_FIRST_PAGE
protected static final String STATE_GO_LAST_PAGE
protected static final String STATE_SEARCH
protected static final String STATE_MANUAL_REFRESH
protected static final String FORM_SEARCH
protected static final String STATE_TOTAL_PAGENUMBER
protected static final String STATE_CURRENT_PAGE
protected static final String FORM_PAGE_NUMBER
protected static final String STATE_GOTO_PAGE
protected static final int[] PAGESIZES
protected abstract List readResourcesPage(SessionState state, int first, int last)
first - The first record to include (1 based).last - The last record to include (inclusive, 1 based).protected abstract int sizeResources(SessionState state)
protected int totalPageNumber(SessionState state)
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)
initState in class VelocityPortletPaneledActionprotected void addViewPagingMenus(Menu bar, SessionState state)
protected void addListPagingMenus(Menu bar, SessionState state)
protected void addSearchMenus(Menu bar, SessionState state)
protected void addSearchMenus(Menu bar, SessionState state, String accessibilityLabel)
protected void addRefreshMenus(Menu bar, SessionState state)
protected List prepPage(SessionState state)
public void doChange_pagesize(RunData data, Context context)
public void pagingInfoToContext(SessionState state, Context context)
public void cleanStatePaging(SessionState state)
public void doView_page(RunData runData, Context context)
public void doView_next(RunData runData, Context context)
public void doList_first(RunData runData, Context context)
public void doList_last(RunData runData, Context context)
public void doList_next(RunData runData, Context context)
public void doView_prev(RunData runData, Context context)
public void doList_prev(RunData runData, Context context)
public void doSearch_clear(RunData runData, Context context)
protected void resetPaging(SessionState state)
public void doRefresh(RunData data, Context context)
public void enableObserver(SessionState state)
Copyright © 2003–2018 The Sakai Foundation. All rights reserved.