|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.control.LyController
leon.control.LyAreaController
leon.control.LyPanelController
leon.control.LySimpleTableController
leon.control.LyTableController
leon.control.LyMultiPageTableController
public class LyMultiPageTableController
This table controller has the capability of showing data partially, using a page mechanism. This is only a rendering effect when creating the views, since the controller is 'aware' of the entire content of the table.
Actions (select, filter, sort ...) apply on the whole content of the view.
LyTableController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
static boolean |
IMPACT_OUTSIDE_OF_CURRENT_VIEW
AUTO SCROLL if create or remove outside of view. |
static java.lang.String |
SELECT_PAGE
Select page string |
Fields inherited from class leon.control.LyTableController |
---|
MAX_OBJECTS_COUNT_FOR_CONTEXT_FILTER |
Fields inherited from class leon.control.LyAreaController |
---|
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_APPLY, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW, DEMAND_VALIDATE |
Fields inherited from class leon.control.LyController |
---|
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP |
Constructor Summary | |
---|---|
LyMultiPageTableController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList context)
Constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
int |
getLastPage()
Accessor the number of the last available page. |
int |
getPage()
Accessor the number (index) of the page being shown. |
boolean |
hasViewLimit()
Indicates if the action has a view limit. |
boolean |
isDisplayNextPreviousTools()
Indicates whether previous / next tools must be added to the top toolbar. |
boolean |
isDisplayPagesNumber()
Indicates if pages number must be displayed in select bar. |
boolean |
isPaginated()
Indicates if there is a pagination on this table controller. |
void |
loadPage(boolean next)
Go to next or previous page. |
void |
reset(boolean full)
Reset component. |
void |
selectionDemand(LySelectionDemand demand)
Invoked when an action occurs. |
int |
selectRow(LyFieldInfo fieldInfo,
java.lang.String pattern,
int from,
boolean next,
boolean substring,
boolean caseSensitive)
Select a row in the table for given parameters. |
void |
setClassFilter(LyFilter filter,
boolean reset)
Accessor on internal classFilter : filter always applied on data shown in view. |
boolean |
setContext(LyWorkSpace context)
Set the current context for the controller. |
void |
setLastModified(long time)
Accessor to set the last modification date of this controller. |
void |
setPage(int page)
Set current page being displayed If this page is greater than the lastPage value, the method will take the page 'modulo' getLastPage() value. |
void |
setPrintMode(boolean status)
(De)Activate print mode. |
void |
setSort(LySort sort)
Set current sort criteria on the view. |
Methods inherited from class leon.control.LyTableController |
---|
completeMessages, print, selectObject, selectObjects |
Methods inherited from class leon.control.LyPanelController |
---|
buildFilter, closeBorderPanel, endFilter, getFilter, getFilterController, getFilterEditorController, getPreference, getRefreshTime, isFilterActive, isHorizontal, objectUserEvent, setFilter, setIdle, setRefreshTime, updatePreferencesMenu, workSpaceEventsGrouped |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, setBuilder, setBuilderClass, setName, setUserData, showError, showError, showWarning, updateViewFromValues |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface leon.control.LyContextInterface |
---|
getContext |
Methods inherited from interface leon.data.LyAdvancedWorkSpaceListener |
---|
objectUserEvent, workSpaceEventsGrouped |
Methods inherited from interface leon.control.LyFilterEndInterface |
---|
endFilter, getFilter |
Methods inherited from interface leon.control.LyFastFilterEndInterface |
---|
getFilter |
Field Detail |
---|
public static final java.lang.String __VERSION
public static boolean IMPACT_OUTSIDE_OF_CURRENT_VIEW
public static final java.lang.String SELECT_PAGE
Constructor Detail |
---|
public LyMultiPageTableController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
session
- current session associated to the controller. The controller automatically
registers on the specified session.parent
- parent controller (or null for 'root' controller). Controller hierarchy
indicates a child controller (for example a dialog created from a main view)action
- related action. If an action is specified, the controller uses action
parameters (action name, action specific XML view description ...)classInfo
- class info for this controllercontext
- current context (may be null if the view is not contextual to a list of
objects).Method Detail |
---|
public boolean hasViewLimit()
public boolean isPaginated()
public boolean isDisplayPagesNumber()
public boolean isDisplayNextPreviousTools()
isDisplayNextPreviousTools
in class LyTableController
public void actionDemand(LyActionDemand demand)
actionDemand
in class LySimpleTableController
demand
- action event created from the view. User interaction.LyController.demandPerformed(leon.view.event.LyDemand)
public void selectionDemand(LySelectionDemand demand)
selectionDemand
in class LyTableController
demand
- selection event created from the view. User interaction.LyController.selectionDemand(leon.view.event.LySelectionDemand)
public int selectRow(LyFieldInfo fieldInfo, java.lang.String pattern, int from, boolean next, boolean substring, boolean caseSensitive)
selectRow
in class LySimpleTableController
fieldInfo
- the fieldInfo to selectpattern
- the search patternfrom
- the start index for the searchnext
- true to find next row, false for previoussubstring
- true to find in substringcaseSensitive
- true for case sensitive search
public void loadPage(boolean next)
next
- true if we go to next page.public int getPage()
public void setPage(int page)
page
- current page we want to showpublic int getLastPage()
public void setLastModified(long time)
setLastModified
in class LyController
time
- the new modification timepublic boolean setContext(LyWorkSpace context)
setContext
in interface LyContextInterface
setContext
in class LyAreaController
context
- Current context, or null if no context is set for the view
LyContextInterface.getContext()
public void setSort(LySort sort)
setSort
in class LySimpleTableController
sort
- new sort criteriapublic void setClassFilter(LyFilter filter, boolean reset)
setClassFilter
in class LySimpleTableController
filter
- current classFilter value, or null if no filter is set (default).reset
- indicates wheter the content is immediately calculated and view is refreshed.
This parameter should be true to recalculate content. This is useless only if
the content is explicitely reset by the application, using setContext for
instance.public void setPrintMode(boolean status)
setPrintMode
in interface LySetPrintModeInterface
setPrintMode
in class LySimpleTableController
status
- true if printing is active, false otherwise.public void reset(boolean full)
reset
in class LyTableController
full
- Boolean indicating if a full reset (including reset of datas) is requiered or not
(only reset graphical area).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |