leon.app.behavior
Class LyEditTableBehavior
java.lang.Object
leon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyPanelBehavior
leon.app.behavior.LyTableBehavior
leon.app.behavior.LyEditTableBehavior
- All Implemented Interfaces:
- LyActionBehaviorInterface, LyBehaviorInterface, LyEditTableBehaviorInterface, LyPanelBehaviorInterface, LyTableBehaviorInterface, LyGetSessionInterface
public class LyEditTableBehavior
- extends LyTableBehavior
- implements LyEditTableBehaviorInterface
This class implements the default behavior for an editable table controller.
- See Also:
LyEditTableController
,
LyTableBehavior
Field Summary |
static java.lang.String |
__VERSION
File version |
Methods inherited from class leon.app.behavior.LyTableBehavior |
buildRowItem, completeRow, dragFinished, dragStart, drop, enableGroupBy, getCellImage, getCellLabel, getCellObjectId, getChooseColumnsFieldInfos, getColumnWidth, getContent, getDefaultCriterion, getDependsFieldInfos, getDisplayListFirstImage, getFields, getFooterLabel, getGroupColor, getGroupLabel, getHeaderLabel, getHeaderTooltip, getIndex, getLabel, getLoadedFieldInfos, getRowColor, getRowImage, getShortLabel, getStatusImage, getStatusTooltip, selectionChanged, updateRowItem, validateSort |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.app.behaviorinterface.LyTableBehaviorInterface |
buildRowItem, completeRow, dragFinished, dragStart, drop, enableGroupBy, getCellLabel, getChooseColumnsFieldInfos, getColumnWidth, getContent, getDefaultCriterion, getDependsFieldInfos, getDisplayListFirstImage, getFields, getFooterLabel, getGroupColor, getGroupLabel, getHeaderLabel, getHeaderTooltip, getIndex, getLabel, getLoadedFieldInfos, getRowColor, getRowImage, getStatusImage, getStatusTooltip, selectionChanged, updateRowItem, validateSort |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
__VERSION
public static final java.lang.String __VERSION
- File version
- See Also:
- Constant Field Values
LyEditTableBehavior
public LyEditTableBehavior()
- Default constructor.
updateCell
public void updateCell(LySimpleTableController tableController,
LyCell cell,
LyObject object,
LyFieldInfo fieldInfo)
- Updates the label of the given cell for the given object and fieldinfo.
The default implementation updates the given cell label if needed, the cell object id
if the given field is a relation field and if the view manager manages urls. If the given
field is a file field, updates the cell label, Hlink and image.
- Specified by:
updateCell
in interface LyTableBehaviorInterface
- Overrides:
updateCell
in class LyTableBehavior
- Parameters:
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 required
getCellLabel
public java.lang.String getCellLabel(LySimpleTableController tableController,
LyObject object,
LyFieldInfo fieldInfo)
- Gets the cell label representing the value of the given field info for the given object.
- Specified by:
getCellLabel
in interface LyTableBehaviorInterface
- Overrides:
getCellLabel
in class LyTableBehavior
- Parameters:
controller
- 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.
- Returns:
- Label that will be put in the table cell for the given object and field info (may
be null).
- See Also:
LyTableBehavior.getCellLabel(LySimpleTableController, LyObject, LyFieldInfo, Object)
displayRowTools
public boolean displayRowTools(LyEditTableController tableController)
- Indicates if tools should be displayed at the end of an edit table row.
These tools allow the end-user to cancel or validate modifications made on a single line.
The default implementation returns true.
- Specified by:
displayRowTools
in interface LyEditTableBehaviorInterface
- Parameters:
tableController
- the table controller
- Returns:
- true is tools should be displayed, false otherwise.
Website: W4 S.A., contact us: support@w4global.com