leon.control
Class LyContextListController
java.lang.Object
leon.control.LyController
leon.control.LyAreaController
leon.control.LyPanelController
leon.control.LySimpleTableController
leon.control.LyContextListController
- 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
public class LyContextListController
- extends LySimpleTableController
The context list controller manages a list of objects which is the context of another view.
Optionally associated to a table controller (automatically created by a LyTableController when
the context is not empty), it creates a separated table view of objects belonging to the context.
Within a table controller, this view is located to the left of the table, and the user may
open it to see current context.
This controller shows objects names from the context and enables usual table interactions
(popup menu, selection, double-clic ...)
- See Also:
LyContextListBuilder
Field Summary |
static java.lang.String |
__VERSION
File version |
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 |
Methods inherited from class leon.control.LySimpleTableController |
actionDemand, allowSortOnField, clearTranslatedStringMap, clearViewCache, completeMessages, 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, objectAdded, objectChanged, objectRemoved, objectStateChanged, print, printList, questionAnswer, reset, run, selectAllObjects, selectionDemand, selectObject, selectObject, selectObjects, 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 |
__VERSION
public static final java.lang.String __VERSION
- File version
- See Also:
- Constant Field Values
LyContextListController
public LyContextListController(LySession session,
LyController parent,
LyAction action,
LyObjectList objectList)
- 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 ...)objectList
- list of objects shown in the contextual view.
LyContextListController
public LyContextListController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList objectList)
- 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.objectList
- list of objects shown in the contextual view.
buildRow
public LyRow buildRow(LyObject object,
LyInfoList<LyFieldInfo> fields,
LyInfoList<LyFieldInfo> statusFields)
- Current builder of a new row.
- Overrides:
buildRow
in class LySimpleTableController
- Parameters:
object
- object added in the contextual list, and which should set the content of
row cells.fields
- list of fields which should be seen.*Not* used, since the builder always
shows the name of objects. Kept for compatibility and consistency with
LyTableController.statusFields
- list of fields which may set the status icon.*Not* used, since the
contextual view is not showing status marks. Kept for compatibility and
consistency with LyTableController.
- Returns:
- LyRow the new Row description (XML description) which is added in the LyTable
component.
- See Also:
insertRow(leon.data.LyObject, int, boolean)
menuDemand
public void menuDemand(LyMenuDemand demand)
- Invoked when an menu item notification is sent to this listener.
This method overriden to create a popup menu : buildPopupMenu. Method is overriden to
fetch correct class info in the context.
- Overrides:
menuDemand
in class LySimpleTableController
- Parameters:
demand
- demand parameters sent by the view component.- See Also:
LyController.demandPerformed(leon.view.event.LyDemand)
Website: W4 S.A., contact us: support@w4global.com