|
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.LyImportController
public class LyImportController
This class implements the import edition form. The user may specify import parameters :
The data file is usually created from an export controller : LyExportController or an application such as MS Excel. This class only implements the import form : the import process is done in a LyImportTableController instance. This controller is associated with a behaviorInterface (LyImportBehaviorInterface). Usually, this behavior is an instance of LyImportBehavior
LyExportController
,
LyImportTableController
,
LyImportBehaviorInterface
,
LyImportBehavior
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
static java.lang.String |
FIELD_SEP
Default field separator in imports. |
static java.lang.String |
PREFERENCE_PREFIX
Prefix used for the name of the preferences saved for import actions. |
static java.lang.String |
SELECT_FIELD_SEP
Form field identifier : select field separator (default is FIELD_SEP). |
static java.lang.String |
SELECT_FIELDINFOS
Form field identifier : List of fields for import. |
static java.lang.String |
SELECT_FILE
Form field identifier : select input file path. |
static java.lang.String |
SELECT_IMPORT_TYPE
Form field identifier : import type, either SELECT_IMPORT_TYPE_RAW or SELECT_IMPORT_TYPE_XML or SELECT_IMPORT_TYPE_SPREADSHEET. |
static java.lang.String |
SELECT_IMPORT_TYPE_RAW
Form field value identifier : import raw data. |
static java.lang.String |
SELECT_IMPORT_TYPE_SPREADSHEET
Form field value identifier : import spreadsheet data. |
static java.lang.String |
SELECT_IMPORT_TYPE_XML
Form field value identifier : import XML data. |
static java.lang.String |
SELECT_OPERATIONS
Form field identifier : operations to be executed. |
static int |
SELECT_OPERATIONS_CONSULTATION
Form field value identifier : consultation operation. |
static int |
SELECT_OPERATIONS_CREATION
Form field value identifier : creation operation. |
static int |
SELECT_OPERATIONS_DELETION
Form field value identifier : deletion operation. |
static int |
SELECT_OPERATIONS_MODIFICATION
Form field value identifier : creation operation. |
static java.lang.String |
SELECT_START_LINE_NUMBER
Form field identifier : select input start line number. |
static java.lang.String |
SELECT_VALUE_SEP
Form field identifier : select value separator (default is VALUE_SEP). |
static java.lang.String |
SPREADSHEET_FIELD_SEP
Default field separator in imports. |
static java.lang.String |
SPREADSHEET_VALUE_SEP
Default multiple value separator in imports. |
static java.lang.String |
VALUE_SEP
Default multiple value separator in imports. |
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 | |
---|---|
LyImportController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList objects)
Constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action notification is sent to this listener. |
java.lang.Class<?> |
getBehaviorInterface()
Method that gives the interface that must be implemented by the behavior associated to this controller. |
LyClassInfo |
getClassInfo()
Accessor to the classinfo Application class associated to the import action. |
java.util.BitSet |
getImportOperations()
Accessor to the import operations. |
java.lang.String |
getImportType()
Accessor to the import type. |
java.lang.Object |
getParameterValue(java.lang.String parameterName)
Returns the value of a given parameter set on current import action. |
int |
getStartLineNumber()
Accessor to the start line number. |
boolean |
isSilent()
Checks if this import is in silent mode. |
boolean |
isViewResizable()
Indicates if the view for this import controller is resizable. |
void |
showView()
Overridden to ensure that export form is displayed. |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, setBuilder, setBuilderClass, setLastModified, setName, setUserData, showError, showError, showWarning, updateViewFromValues |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String SELECT_FIELDINFOS
public static final java.lang.String SELECT_FIELD_SEP
public static final java.lang.String SELECT_VALUE_SEP
public static final java.lang.String SELECT_FILE
public static final java.lang.String SELECT_START_LINE_NUMBER
public static java.lang.String FIELD_SEP
public static java.lang.String VALUE_SEP
public static java.lang.String SPREADSHEET_FIELD_SEP
public static java.lang.String SPREADSHEET_VALUE_SEP
public static final java.lang.String SELECT_IMPORT_TYPE
public static final java.lang.String SELECT_IMPORT_TYPE_RAW
public static final java.lang.String SELECT_IMPORT_TYPE_XML
public static final java.lang.String SELECT_IMPORT_TYPE_SPREADSHEET
public static final java.lang.String SELECT_OPERATIONS
public static final int SELECT_OPERATIONS_CREATION
public static final int SELECT_OPERATIONS_MODIFICATION
public static final int SELECT_OPERATIONS_DELETION
public static final int SELECT_OPERATIONS_CONSULTATION
public static final java.lang.String PREFERENCE_PREFIX
Constructor Detail |
---|
public LyImportController(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.classInfo
- classInfo which indicates which kind of objects we expect in importobjects
- current contextMethod Detail |
---|
public java.lang.Class<?> getBehaviorInterface()
getBehaviorInterface
in class LyAreaController
public void showView()
showView
in class LyAreaController
public void actionDemand(LyActionDemand demand)
This method is called by demandPerformed.
At this level, the implementation handles demands of type LyActionDemand.TYPE_ACTION : LyFormController.DEMAND_VALIDATE, and LyExportController.DEMAND_CANCEL
actionDemand
in class LyAreaController
demand
- demand parameters sent by the view component.LyController.demandPerformed(leon.view.event.LyDemand)
public java.lang.Object getParameterValue(java.lang.String parameterName)
parameterName
- the name of the parameter which value must be retrieved.
public LyClassInfo getClassInfo()
getClassInfo
in class LyAreaController
public boolean isViewResizable()
isViewResizable
in class LyAreaController
public java.lang.String getImportType()
public java.util.BitSet getImportOperations()
public int getStartLineNumber()
public boolean isSilent()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |