leon.app.behavior
Class LyImportTableBehavior
java.lang.Object
leon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyPanelBehavior
leon.app.behavior.LyTableBehavior
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. |
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 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 |
__VERSION
public static final java.lang.String __VERSION
- File version.
- See Also:
- Constant Field Values
LyImportTableBehavior
public LyImportTableBehavior()
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 controllerobjects
- 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 instanceaction
- 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
Website: W4 S.A., contact us: support@w4global.com