LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LyImportTableBehavior

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.LyImportTableBehavior
All Implemented Interfaces:
LyActionBehaviorInterface, LyBehaviorInterface, LyImportTableBehaviorInterface, LyPanelBehaviorInterface, LyTableBehaviorInterface, LyGetSessionInterface

public class LyImportTableBehavior
extends LyTableBehavior
implements LyImportTableBehaviorInterface

This class implements the default behavior for actions that are controlled by a import table controller.

See Also:
LyImportTableController

Field Summary
static java.lang.String __VERSION
          File version.
 
Fields inherited from class leon.app.behavior.LyTableBehavior
MAX_ROW_HEIGHT
 
Constructor Summary
LyImportTableBehavior()
           
 
Method Summary
 java.lang.String checkFields(LyImportTableController controller, LyObjectList objects)
          Checks if the import can be done with the given list of selected fields.
 java.lang.String getErrorLinesMessage(LyImportTableController controller, java.util.BitSet errorLines)
          Returns the message to be displayed when some lines of the import file contain errors.
 java.lang.String getTitle(LyAreaController areaController, LyAction action)
          Gets title corresponding to the given action.
 
Methods inherited from class leon.app.behavior.LyTableBehavior
buildRowItem, completeRow, dragFinished, dragStart, drop, enableGroupBy, getCellImage, getCellLabel, getCellLabel, getCellObjectId, getChooseColumnsFieldInfos, getColumnWidth, getContent, getDefaultCriterion, getDependsFieldInfos, getDisplayListFirstImage, getFields, getFooterLabel, getGroupColor, getGroupLabel, getHeaderLabel, getHeaderTooltip, getIndex, getLabel, getLoadedFieldInfos, getRowColor, getRowImage, getShortLabel, getStatusImage, getStatusTooltip, selectionChanged, updateCell, updateRowItem, validateSort
 
Methods inherited from class leon.app.behavior.LyPanelBehavior
completePopupMenu, getPopupMenuActions, 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, getCellLabel, getChooseColumnsFieldInfos, getColumnWidth, getContent, getDefaultCriterion, getDependsFieldInfos, getDisplayListFirstImage, getFields, getFooterLabel, getGroupColor, getGroupLabel, getHeaderLabel, getHeaderTooltip, getIndex, getLabel, getLoadedFieldInfos, getRowColor, getRowImage, getStatusImage, getStatusTooltip, selectionChanged, updateCell, 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, 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

LyImportTableBehavior

public LyImportTableBehavior()
Method Detail

checkFields

public java.lang.String checkFields(LyImportTableController controller,
                                    LyObjectList objects)
Checks if the import can be done with the given list of selected fields.
The default implementation checks that for the controller class info fields selected fields with the 'NOT NULL' mark have a value and that structure objects are unique.

Specified by:
checkFields in interface LyImportTableBehaviorInterface
Parameters:
controller - the current import table controller
objects - the objects we want to check
Returns:
the error message, or null if everything is fine

getTitle

public java.lang.String getTitle(LyAreaController areaController,
                                 LyAction action)
Gets title corresponding to the given action.
Default implementation returns the action name and the number of imported objects.

Specified by:
getTitle in interface LyActionBehaviorInterface
Overrides:
getTitle in class LyPanelBehavior
Parameters:
areaController - the current LyAreaController instance
action - the action that was executed
Returns:
the given action name and number of imported objects

getErrorLinesMessage

public java.lang.String getErrorLinesMessage(LyImportTableController controller,
                                             java.util.BitSet errorLines)
Returns the message to be displayed when some lines of the import file contain errors.
Default implementation returns a standard message with the indexes of lines in error.

Specified by:
getErrorLinesMessage in interface LyImportTableBehaviorInterface
Parameters:
controller - Import table controller that requires the error message.
errorLines - a bitset with the indexes of lines containing errors.
Returns:
the message to be displayed

(c) January 2013 - W4 S.A.

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