|
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.control.LyController
leon.control.LyAreaController
leon.control.LyPanelController
leon.control.LySimpleTableController
leon.control.LyTableController
leon.control.LyMultiPageTableController
leon.control.LyImportTableController
leon.control.LyMultiClassImportController
public class LyMultiClassImportController
This class implements an export controller (no GUI) to xporta set of data from multiple classInfos into XML (only XML is available).
LyExportController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
Fields inherited from class leon.control.LyImportTableController |
---|
DEFAULT_ROW_IMAGE_SIZE, DEMAND_IMPORT_ALL, DEMAND_IMPORT_SELECT_ALL, DEMAND_IMPORT_SELECTION, DEMAND_VIEW_IMPORTED, OLD_IMPORT |
Fields inherited from class leon.control.LyMultiPageTableController |
---|
IMPACT_OUTSIDE_OF_CURRENT_VIEW, SELECT_PAGE |
Fields inherited from class leon.control.LyTableController |
---|
MAX_OBJECTS_COUNT_FOR_CONTEXT_FILTER |
Fields inherited from class leon.control.LyAreaController |
---|
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_APPLY, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW, DEMAND_VALIDATE |
Fields inherited from class leon.control.LyController |
---|
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP |
Constructor Summary | |
---|---|
LyMultiClassImportController(LySession session,
LyAction action)
Constructor. |
|
LyMultiClassImportController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList objects)
Constructor. |
Method Summary | |
---|---|
void |
free()
Free this controller. |
LyInfoList<LyClassInfo> |
getClassInfos()
Get the list of class infos to be imported (null if all the classes found in file should be imported). |
LyViewController |
getViewController()
Accessor to the view controller (Frame or dialog controller) which is the container of this view. |
void |
hideView(boolean free)
Hide the view. |
void |
importObjects(LyObjectList objects,
boolean importErrors)
Do the final import operation : this will commit the import context for the specified objects. |
void |
importObjects(LyObjectList objects,
boolean importErrors,
boolean allClassInfos)
Do the final import operation : this will commit the import context for the specified objects. |
LyInfoList<LyFieldInfo> |
isSameObject(LyObject importObject)
Indicates if the real object corresponding to the imported object has exactly the same values or not. |
boolean |
loadClassInfos()
Import objects from an XML file for given class infos. |
boolean |
loadData()
Import objects from an XML file for given class infos. |
void |
reset(boolean full)
Reset component. |
void |
setClassInfos(LyInfoList<LyClassInfo> classInfos)
Set the list of class infos to be imported (null if all the classes found in file should be imported). |
void |
showView()
Make the view visible to the user. |
Methods inherited from class leon.control.LyMultiPageTableController |
---|
getLastPage, getPage, hasViewLimit, isDisplayNextPreviousTools, isDisplayPagesNumber, isPaginated, loadPage, setClassFilter, setContext, setLastModified, setPage, setPrintMode, setSort |
Methods inherited from class leon.control.LyTableController |
---|
print, selectObjects |
Methods inherited from class leon.control.LyPanelController |
---|
buildFilter, closeBorderPanel, endFilter, getFilter, getFilterController, getFilterEditorController, getPreference, getRefreshTime, isFilterActive, isHorizontal, objectUserEvent, setFilter, setIdle, setRefreshTime |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, getApplication, getClassInfo, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getViewManager, helpDemand, hideView, isFreed, isIdle, setBuilder, setBuilderClass, setName, setUserData, showError |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface leon.control.LyContextInterface |
---|
getContext |
Methods inherited from interface leon.data.LyAdvancedWorkSpaceListener |
---|
objectUserEvent |
Methods inherited from interface leon.control.LyFilterEndInterface |
---|
endFilter, getFilter |
Methods inherited from interface leon.control.LyFastFilterEndInterface |
---|
getFilter |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyMultiClassImportController(LySession session, LyAction action)
session
- current session associated to the controller. The controller automatically
registers on the specified session.action
- related action. If an action is specified, the controller uses action
parameters (action name, action specific XML view description ...)public LyMultiClassImportController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
session
- current session associated to the controller. The controller automatically
registers on the specified session.parent
- parent controller (or null for 'root' controller).action
- related action. If an action is specified, the controller uses action
parameters (action name, action specific XML view description ...)classInfo
- kept for compatibility. This parameter is *NOT* used.objects
- list of objects that should be saved.Method Detail |
---|
public boolean loadClassInfos()
public boolean loadData()
loadData
in class LyImportTableController
public void importObjects(LyObjectList objects, boolean importErrors, boolean allClassInfos)
objects
- the temporary object listimportErrors
- indicates if we accept to import objects in error.allClassInfos
- indicates if we import all classInfosLyImportTableController.createRealObject(leon.data.LyObject)
,
LyImportTableController.setRealObject(leon.data.LyObject, leon.data.LyObject)
public void importObjects(LyObjectList objects, boolean importErrors)
importObjects
in class LyImportTableController
objects
- the temporary object listimportErrors
- indicates if we accept to import objects in error.LyImportTableController.createRealObject(leon.data.LyObject)
,
LyImportTableController.setRealObject(leon.data.LyObject, leon.data.LyObject)
public LyInfoList<LyFieldInfo> isSameObject(LyObject importObject)
isSameObject
in class LyImportTableController
importObject
- the 'real' object instance for content comparizon
public void setClassInfos(LyInfoList<LyClassInfo> classInfos)
classInfos
- list of class infos to be importedpublic LyInfoList<LyClassInfo> getClassInfos()
public void reset(boolean full)
reset
in class LyImportTableController
full
- Boolean indicating if a full reset (including reset of datas) is requiered or not
(only reset graphical area).public void hideView(boolean free)
This method should consider that the page is closed and should disappear.
hideView
in class LyImportTableController
free
- Indicates if only HIDDEN, not FREED (true).public LyViewController getViewController()
getViewController
in class LyImportTableController
public void free()
free
in class LyAreaController
LyAreaController.free(LyController)
public void showView()
For any display, this method should consider that the page is ready to be shown and should be displayed.
showView
in class LyImportTableController
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |