LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyTableController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyAreaController
          extended by leon.control.LyPanelController
              extended by leon.control.LySimpleTableController
                  extended by leon.control.LyTableController
All Implemented Interfaces:
java.lang.Runnable, LyGetSessionInterface, LyContextInterface, LyFastFilterEndInterface, LyFilterEndInterface, LyFindInterface, LyGetActionInterface, LySelectFileListenerInterface, LySortEndInterface, LyAdvancedWorkSpaceListener, LyGuiListener, LyWorkSpaceListener, LyGetClassInfoInterface, LyInfoListener, LyEvaluator, LyDemandListener, LyPrintListenerInterface, LyAnswerInterface, LyQuestionAnswerInterface, LySetPrintModeInterface
Direct Known Subclasses:
LyMultiPageTableController

public class LyTableController
extends LySimpleTableController
implements LyContextInterface

This class implements a table controller. It's the standard implementation for a table It is associated with a builder (LyTableBuilder) and a behavior that implements LyTableBehaviorInterface. Usually, this behavior is implemented by an instance of LyTableBehavior

See Also:
LySimpleTableBuilder, LyTableBehaviorInterface

Field Summary
static java.lang.String __VERSION
          File Version
static int MAX_OBJECTS_COUNT_FOR_CONTEXT_FILTER
          Define the max objects in the context to build a context filter
 
Fields inherited from class leon.control.LySimpleTableController
DEMAND_CHOOSE_COLUMNS, DEMAND_COPY_CELL_CONTENT, DEMAND_FIX_COLUMN, DEMAND_GROUP_BY, DEMAND_INVERT_STATUS_SORT, DEMAND_LIST_DISPLAY, DEMAND_NEXT_PAGE, DEMAND_PREVIOUS_PAGE, DEMAND_PRINT_TABLE, DEMAND_REVERSE, DEMAND_ROW_TOOL, DEMAND_SORT_BY, DEMAND_SORT_DEFAULT, DEMAND_SORT_EXTEND, DEMAND_SORT_REVERSE, DEMAND_SORT_WIZARD, DEMAND_STATUS_SORT, DEMAND_SUB_TOOL_ACTION, DEMAND_UNFIX_COLUMN, EMPTY_CELL, FOOTER_ROW_PREFIX, MESSAGE_OBJECTS_COUNT, SECTION_ROW_PREFIX
 
Fields inherited from class leon.control.LyPanelController
DEMAND_DEFAULT_FOR_MOBILE_PREFERENCE, DEMAND_DEFAULT_PREFERENCE, DEMAND_PREFERENCE_TARGET, DEMAND_SAVE_PREFERENCE, DEMAND_SELECT_ALL, DEMAND_SHARED_PREFERENCE, DEMAND_UNSELECT_ALL, EXTEND_SIMPLE_FILTER, EXTENDED_FILTER_NEW, FAST_FILTER, FILTER_ACTIVE, FILTER_SET, PREFERENCE_TARGET_ACTION, PREFERENCE_TARGET_CLASS, SIMPLE_FILTER_NEW
 
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
LyTableController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
          Constructor.
 
Method Summary
 void completeMessages(LyMessages messages, int level)
          This method is invoked to enable the the area(s) to complete the message bar of the view and add its own message items.
 boolean isDisplayNextPreviousTools()
          Indicates whether previous / next tools must be added to the top toolbar.
 void print(int page)
          Implementation of LyPrintListenerInterface.
 void reset(boolean full)
          Reset component.
 void selectionDemand(LySelectionDemand demand)
          Invoked when a selection occurs.
 void selectObject(LyObject object, boolean select, boolean updateView, boolean showSelected)
          Select an object in the table.
 void selectObjects(LyObjectList objects, boolean select)
          Select all given objects in the table.
 
Methods inherited from class leon.control.LySimpleTableController
actionDemand, allowSortOnField, buildRow, clearTranslatedStringMap, clearViewCache, dragDropDemand, enablesMultiSelection, endFastFilter, endSort, findObject, fixColumn, free, getBehaviorInterface, getClassFilter, getClassInfo, getColsNumberListDisplay, getColumnSize, getComplexFields, getContent, getFastFilterFieldInfo, getFastFilterValue, getFieldMarks, getFields, getLimit, getPanelComponent, getRealFields, getSelection, getSelection, getSort, getStatusFieldInfos, getTableComponent, getTableComponentFields, getTableComponentFields, hasDisplayListToggleButton, hasPrintMode, isDisplayList, isDisplayListShowFields, isFastFilterExtended, isFastFilterSet, isFopMode, isImageColumn, isStatusColumn, menuDemand, objectAdded, objectChanged, objectRemoved, objectStateChanged, printList, questionAnswer, run, selectAllObjects, selectObject, selectRow, setClassFilter, setFieldMarks, setFields, setFopMode, setPreference, setPrintMode, setSort, showObject, translate
 
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.LyAreaController
canClose, canFree, completeMenuBar, free, getAction, getAreaStackController, getBehavior, getBuilder, getContext, getContextClient, getContextTitle, getDefaultAction, getEnvironment, getFastEditionAction, getHelpFile, getImage, getImageTooltip, getInfoLabel, getInfoLabel, getKeyValue, getLabel, getLastModified, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParent, getParentAreaController, getShortLabel, getTarget, getTitle, getViewController, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, isViewResizable, reset, selectFileDemand, setContext, setContext, setContextClient, setViewController, showView, showView, testParameter, toString, update, updateTitleBar
 
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, setLastModified, 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, setContext
 
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

__VERSION

public static final java.lang.String __VERSION
File Version

See Also:
Constant Field Values

MAX_OBJECTS_COUNT_FOR_CONTEXT_FILTER

public static int MAX_OBJECTS_COUNT_FOR_CONTEXT_FILTER
Define the max objects in the context to build a context filter

Constructor Detail

LyTableController

public LyTableController(LySession session,
                         LyController parent,
                         LyAction action,
                         LyClassInfo classInfo,
                         LyObjectList context)
Constructor.

Parameters:
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 objects displayed in the list.
context - current context (may be null if the view is not contextual to a list of objects).
Method Detail

reset

public void reset(boolean full)
Reset component.

Overrides:
reset in class LySimpleTableController
Parameters:
full - Boolean indicating if a full reset (including reset of datas) is requiered or not (only reset graphical area).

selectionDemand

public void selectionDemand(LySelectionDemand demand)
Invoked when a selection occurs. This method handles: select all, unselect all and objects by objects selection

Overrides:
selectionDemand in class LySimpleTableController
Parameters:
demand - selection event created from the view. User interaction.
See Also:
LyController.demandPerformed(leon.view.event.LyDemand)

selectObject

public void selectObject(LyObject object,
                         boolean select,
                         boolean updateView,
                         boolean showSelected)
Select an object in the table.

Overrides:
selectObject in class LySimpleTableController
Parameters:
object - selected or unselected object
select - new selection status
updateView - indicates if the view (tools, messages...) must be updated.
showSelected - indicates wether the view should scroll to the new selection status

selectObjects

public void selectObjects(LyObjectList objects,
                          boolean select)
Select all given objects in the table.

Overrides:
selectObjects in class LySimpleTableController
Parameters:
objects - Objects to select/deselect
select - new selection status

isDisplayNextPreviousTools

public boolean isDisplayNextPreviousTools()
Indicates whether previous / next tools must be added to the top toolbar.

Returns:
true if the _limit parameter is set on this table, false otherwise

completeMessages

public void completeMessages(LyMessages messages,
                             int level)
This method is invoked to enable the the area(s) to complete the message bar of the view and add its own message items.

Overrides:
completeMessages in class LySimpleTableController
Parameters:
messages - messages bar
level - index of message
See Also:
LyAreaBuilder.completeMessages(leon.view.LyMessages, int)

print

public void print(int page)
Implementation of LyPrintListenerInterface.

Specified by:
print in interface LyPrintListenerInterface
Overrides:
print in class LySimpleTableController
Parameters:
page - page to print

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com