|
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 |
java.lang.Objectleon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyImportBehavior
public class LyImportBehavior
This class implements the default behavior for actions that are controlled by an import controller.
LyImportController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyImportBehavior()
|
Method Summary | |
---|---|
java.lang.String |
checkFields(LyImportController controller,
LyInfoList<LyFieldInfo> fields)
Checks if the import can be done with the given list of selected fields. |
java.lang.String |
checkImportedObjectField(LyImportTableController ctrl,
LyObject importedObject,
LyObject realObject,
LyFieldInfo fieldInfo,
LyValue fieldValue)
This is called by the LyImportTableController at import time. |
java.lang.String |
getDefaultAttributeSep()
Returns the default separator, as a String, of the separator to be used between attributes. |
java.lang.String |
getDefaultAttributeValSep()
Returns the default separator, as a String, of the separator to be used between attribute values. |
java.lang.String |
getDefaultImportType()
Returns the default export type. |
java.util.BitSet |
getDefaultOperations()
Returns the default operations. |
java.lang.Integer |
getDefaultStartLineNumber()
Returns the default start line number. |
LyImportContentController |
importContentFactory(LySession session,
LyImportTableController parent,
LyAction action,
java.lang.String importType)
this method may be overridden to provide a custom class for encode / decode File content in import. |
void |
importObjectsCommitted(LyImportTableController ctrl,
int nSuccess)
This is called by the LyImportTableController when import is committed. |
void |
importObjectsStarted(LyImportTableController ctrl,
int nRequested)
This is called by the LyImportTableController when import is started. |
void |
importObjectsTerminated(LyImportTableController ctrl,
int nSuccess)
This is called by the LyImportTableController when import is finished (and before commit is required). |
Methods inherited from class leon.app.behavior.LyActionBehavior |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, 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.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 |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyImportBehavior()
Method Detail |
---|
public java.lang.String checkFields(LyImportController controller, LyInfoList<LyFieldInfo> fields)
fields with the mark ID
are in the given list
(if the controller import type
is not LyImportController.SELECT_IMPORT_TYPE_SPREADSHEET
).
checkFields
in interface LyImportBehaviorInterface
controller
- the current import controllerfields
- the fields we want to check
public java.lang.String checkImportedObjectField(LyImportTableController ctrl, LyObject importedObject, LyObject realObject, LyFieldInfo fieldInfo, LyValue fieldValue)
ctrl
- the initiating LyImportTableControllerimportedObject
- the imported objectrealObject
- the existing object if any, null otherwisefieldInfo
- the LyFieldInfofieldValue
- the imported value to check
public void importObjectsTerminated(LyImportTableController ctrl, int nSuccess)
ctrl
- the initiating LyImportTableControllernSuccess
- the number of successfully imported objectspublic void importObjectsStarted(LyImportTableController ctrl, int nRequested)
ctrl
- the initiating LyImportTableControllernRequested
- the number of objects to be importedpublic void importObjectsCommitted(LyImportTableController ctrl, int nSuccess)
ctrl
- the initiating LyImportTableControllernSuccess
- the number of successfully committed objectspublic java.lang.String getDefaultAttributeSep()
public java.lang.String getDefaultAttributeValSep()
public java.lang.String getDefaultImportType()
public java.util.BitSet getDefaultOperations()
public java.lang.Integer getDefaultStartLineNumber()
public LyImportContentController importContentFactory(LySession session, LyImportTableController parent, LyAction action, java.lang.String importType)
session
- user sessionparent
- table to display resultsaction
- parent actionimportType
- type of import requested by user
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |