|
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 |
public interface LyTableBehaviorInterface
This interface defines methods to implement in order to modify the default behavior of a table controller.
LyTableController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Method Summary | |
---|---|
LyComponent |
buildRowItem(LySimpleTableController tableController,
LyObject object,
LyFieldInfo fieldInfo)
Current builder of a new row item in a row. |
void |
completeRow(LySimpleTableController tableController,
LyRow row,
LyObject object)
Completes the given row that corresponds to spécified object. |
void |
dragFinished(LySimpleTableController tableController,
int type)
Method called at the end of a drag-and-drop. |
void |
dragStart(LySimpleTableController tableController,
LyObject sourceObject)
Method invoked at the beginning of the given object drag. |
void |
drop(LySimpleTableController tableController,
LyObject targetObject,
LyObject sourceObject)
Method called when the given dragged object is dropped on the given dropped object. |
boolean |
enableGroupBy(LySimpleTableController tableController,
LyFieldInfo fieldInfo)
Enables groupBy feature on given field info. |
java.lang.String |
getCellLabel(LySimpleTableController tableController,
LyObject object,
LyFieldInfo fieldInfo)
Deprecated. Use updateCell(LySimpleTableController, LyCell,
LyObject, LyFieldInfo) instead. |
java.lang.String |
getCellLabel(LySimpleTableController tableController,
LyObject object,
LyFieldInfo fieldInfo,
java.lang.Object value)
Gets the cell label representing the value of the given field info for the given object. |
LyInfoList<LyFieldInfo> |
getChooseColumnsFieldInfos(LySimpleTableController controller)
Gets the list of fieldinfos that may be displayed in the column chooser tool. |
double |
getColumnWidth(LySimpleTableController controller,
LyFieldInfo fieldInfo)
Gets the initial column width of a fieldInfo in a table. |
LyWorkSpace |
getContent(LyTableController tableController,
LyWorkSpace context)
Gets the content of the table corresponding of the given context. |
LySortCriterion |
getDefaultCriterion(LySimpleTableController tableController,
LyFieldInfo fieldInfo)
Return default criterion for a given field info. |
LyInfoList<LyFieldInfo> |
getDependsFieldInfos(LySimpleTableController tableController,
LyAction action)
Gets the list of fieldinfos that will be used to compute/display values for the table. |
LyFileFieldInfo |
getDisplayListFirstImage(LySimpleTableController tableController)
Gives the image to display in first column when display in list. |
LyInfoList<LyFieldInfo> |
getFields(LySimpleTableController tableController,
LyInfoList<LyFieldInfo> fields)
Gets the list of fields to display in the table from the given list. |
java.lang.String |
getFooterLabel(LySimpleTableController tableController,
LyFieldInfo fieldInfo,
LyObjectList objects)
Gets the footer label associated to the given field info for the given list of objects presented in the table. |
java.lang.String |
getGroupColor(LySimpleTableController tableController,
LyObject object,
LyFieldInfoValue value)
Gets row color associated to the given group. |
java.lang.String |
getGroupLabel(LySimpleTableController tableController,
LyObject object,
LyFieldInfoValue value)
Gets group name for given value on specified object. |
java.lang.String |
getHeaderLabel(LySimpleTableController controller,
LyFieldInfo fieldInfo)
Gets the header label representing the given field info. |
java.lang.String |
getHeaderTooltip(LySimpleTableController controller,
LyFieldInfo fieldInfo)
Gets the header tooltip associated to the given field info. |
java.lang.String |
getIndex(LySimpleTableController tableController,
LyObject object)
Gets index for object. |
java.lang.String |
getLabel(LySimpleTableController tableController,
LyObject object)
Gets label for object. |
LyInfoList<LyFieldInfo> |
getLoadedFieldInfos(LySimpleTableController controller)
Gets the list of fieldinfos that must be loaded in the given table controller. |
java.lang.String |
getRowColor(LySimpleTableController tableController,
LyObject object)
Gets row color associated to the given object. |
java.lang.String |
getRowImage(LySimpleTableController tableController,
LyObject object)
Gets the row image of the given table object used on display list mode. |
java.lang.String |
getStatusImage(LySimpleTableController tableController,
LyInfoList<LyFieldInfo> statusFields,
LyObject object)
Gets the status image of the given table object. |
java.lang.String |
getStatusTooltip(LySimpleTableController tableController,
LyInfoList<LyFieldInfo> statusFields,
LyObject object)
Gets status image tooltip for the given object. |
void |
selectionChanged(LySimpleTableController controller)
Method called when the selection has changed in the view. |
void |
updateCell(LySimpleTableController tableController,
LyCell cell,
LyObject object,
LyFieldInfo fieldInfo)
Updates the label of the given cell for the given object and fieldinfo. |
void |
updateRowItem(LySimpleTableController tableController,
LyComponent component,
LyObject object,
LyFieldInfo fieldInfo)
Updates the given component for the given object and fieldinfo. |
LySort |
validateSort(LySimpleTableController tableController,
LySort sort)
Method used to enable a sort. |
Methods inherited from interface leon.app.behaviorinterface.LyPanelBehaviorInterface |
---|
completePopupMenu, getPopupMenuActions, needRefresh, validateFilter |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface |
---|
free, handleDemand, init |
Field Detail |
---|
static final java.lang.String __VERSION
Method Detail |
---|
LyInfoList<LyFieldInfo> getFields(LySimpleTableController tableController, LyInfoList<LyFieldInfo> fields)
tableController
- the table controller that requires the listfields
- a list of fields from where fields to display are taken
java.lang.String getStatusImage(LySimpleTableController tableController, LyInfoList<LyFieldInfo> statusFields, LyObject object)
tableController
- Table controller that requires the status image.statusFields
- List of field infos that have the status mark.object
- Object to which the status image is associated.
java.lang.String getStatusTooltip(LySimpleTableController tableController, LyInfoList<LyFieldInfo> statusFields, LyObject object)
getStatusImage(LySimpleTableController, LyInfoList,
LyObject)
method didn't return null.
tableController
- Table controller that requires the status image.statusFields
- List of field infos that have the status mark.object
- Object to which the status image is associated.
java.lang.String getRowColor(LySimpleTableController tableController, LyObject object)
tableController
- Table controller that requires the row color.object
- Object for which a row color is required.
java.lang.String getRowImage(LySimpleTableController tableController, LyObject object)
tableController
- Table controller that requires the row image.object
- Object to which the row image is associated.
java.lang.String getHeaderLabel(LySimpleTableController controller, LyFieldInfo fieldInfo)
controller
- Table controller that requires the header label.fieldInfo
- Field info for which a header label is required.
java.lang.String getHeaderTooltip(LySimpleTableController controller, LyFieldInfo fieldInfo)
controller
- Table controller that requires the header tooltip.fieldInfo
- Field info for which a header tooltip is required.
java.lang.String getCellLabel(LySimpleTableController tableController, LyObject object, LyFieldInfo fieldInfo)
updateCell(LySimpleTableController, LyCell,
LyObject, LyFieldInfo)
instead.
tableController
- Table controller that requires the cell label.object
- Object from which the field info value is represented in the
table cell.fieldInfo
- Field info for which a cell label is required.
updateCell(LySimpleTableController,LyCell,LyObject,LyFieldInfo)
java.lang.String getCellLabel(LySimpleTableController tableController, LyObject object, LyFieldInfo fieldInfo, java.lang.Object value)
tableController
- Table controller that requires the cell label.object
- Object from which the field info value is represented in the table
cell.fieldInfo
- Field info for which a cell label is required.value
- Value of the given field.
updateCell(LySimpleTableController,LyCell,LyObject,LyFieldInfo)
void updateCell(LySimpleTableController tableController, LyCell cell, LyObject object, LyFieldInfo fieldInfo)
tableController
- the table controller that requires the cell labelcell
- the cell to updateobject
- the object from which the field info value is represented in the table
cellfieldInfo
- the field info for which a cell label is requiredjava.lang.String getFooterLabel(LySimpleTableController tableController, LyFieldInfo fieldInfo, LyObjectList objects)
tableController
- Table controller that requires the footer label.fieldInfo
- Field info for which a footer label is required.objects
- List of objects for which a footer label is computed.
LyFieldInfo.compute(LyObjectList)
void selectionChanged(LySimpleTableController controller)
controller
- the current table controllerLyWorkSpace getContent(LyTableController tableController, LyWorkSpace context)
tableController
- Table controller that requires the content.context
- Context for which the content is required.
LyInfoList<LyFieldInfo> getLoadedFieldInfos(LySimpleTableController controller)
status mark
and all fieldinfos that are displayed in the table.
controller
- Table controller that requires the list.
LyInfoList<LyFieldInfo> getDependsFieldInfos(LySimpleTableController tableController, LyAction action)
loaded
fields.
tableController
- the associated table controlleraction
- the table action
LyInfoList<LyFieldInfo> getChooseColumnsFieldInfos(LySimpleTableController controller)
controller
- Table controller that requires the list.
double getColumnWidth(LySimpleTableController controller, LyFieldInfo fieldInfo)
controller
- Table controller that requires the list.fieldInfo
- fieldInfo associated to this column.
void dragStart(LySimpleTableController tableController, LyObject sourceObject)
tableController
- Table controller that displays the tablesourceObject
- dragged objectvoid drop(LySimpleTableController tableController, LyObject targetObject, LyObject sourceObject)
tableController
- table controller that displays the tabletargetObject
- object on where the dragged object is droppedsourceObject
- the dragged objectvoid dragFinished(LySimpleTableController tableController, int type)
tableController
- table controller that displays the treetype
- drag-and-drop type (org.eclipse.swt.dnd.DND#DROP_COPY
or
org.eclipse.swt.dnd.DND#DROP_MOVE
)LySort validateSort(LySimpleTableController tableController, LySort sort)
tableController
- Table controller that asks for the sort.sort
- The sort that is asked.
boolean enableGroupBy(LySimpleTableController tableController, LyFieldInfo fieldInfo)
tableController
- Table controller that calls the checking.fieldInfo
- Field info that is checked for groupBy feature.
java.lang.String getGroupLabel(LySimpleTableController tableController, LyObject object, LyFieldInfoValue value)
tableController
- Table controller that requires the group value label.object
- Object for which the group is requested.value
- Field value for which the group is requested.
java.lang.String getGroupColor(LySimpleTableController tableController, LyObject object, LyFieldInfoValue value)
tableController
- Table controller that requires the row color.object
- an object displayed in a groupvalue
- the LyFieldInfoValue used to compute the group color
LyComponent buildRowItem(LySimpleTableController tableController, LyObject object, LyFieldInfo fieldInfo)
tableController
- Table controller that requires the new row item.object
- object added in the contextual list, and which should set the content of row
cells.fieldInfo
- field value shown in the cell content
void updateRowItem(LySimpleTableController tableController, LyComponent component, LyObject object, LyFieldInfo fieldInfo)
tableController
- the table controller that requires the updatecomponent
- the component to update.object
- the object from which the field info value is represented in the table.fieldInfo
- the field info for which a component is updated.void completeRow(LySimpleTableController tableController, LyRow row, LyObject object)
tableController
- the table controller that requires the completion.row
- the row to be completed.object
- the object that corresponds to the row.LyFileFieldInfo getDisplayListFirstImage(LySimpleTableController tableController)
tableController
- the table controller.
LyFileFieldInfo
which contains the image else return nulljava.lang.String getLabel(LySimpleTableController tableController, LyObject object)
tableController
- the table controller.object
- Object for which the label is requested.
java.lang.String getIndex(LySimpleTableController tableController, LyObject object)
tableController
- the table controller.object
- Object for which the index is requested.
LySortCriterion getDefaultCriterion(LySimpleTableController tableController, LyFieldInfo fieldInfo)
tableController
- the table controller.fieldInfo
- the field info we want to get the criterion
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |