LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LyEditTableBehavior

java.lang.Object
  extended by leon.app.behavior.LyBehavior
      extended by leon.app.behavior.LyActionBehavior
          extended by leon.app.behavior.LyPanelBehavior
              extended by leon.app.behavior.LyTableBehavior
                  extended by 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
 
Fields inherited from class leon.app.behavior.LyTableBehavior
MAX_ROW_HEIGHT
 
Constructor Summary
LyEditTableBehavior()
          Default constructor.
 
Method Summary
 boolean displayRowTools(LyEditTableController tableController)
          Indicates if tools should be displayed at the end of an edit table row.
 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.
 void updateCell(LySimpleTableController tableController, LyCell cell, LyObject object, LyFieldInfo fieldInfo)
          Updates the label of the given cell for the given object and fieldinfo.
 
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 leon.app.behavior.LyPanelBehavior
completePopupMenu, getPopupMenuActions, getTitle, needRefresh, validateFilter
 
Methods inherited from class leon.app.behavior.LyActionBehavior
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, reset, startAction
 
Methods inherited from class leon.app.behavior.LyBehavior
free, getSession, handleDemand, init
 
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.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

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyEditTableBehavior

public LyEditTableBehavior()
Default constructor.

Method Detail

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 label
cell - the cell to update
object - the object from which the field info value is represented in the table cell
fieldInfo - 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.

(c) January 2013 - W4 S.A.

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