LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyMultiClassExportController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyAreaController
          extended by leon.control.LyExportController
              extended by leon.control.LyMultiClassExportController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGetActionInterface, LySelectFileListenerInterface, LyGuiListener, LyInfoListener, LyEvaluator, LyDemandListener, LyAnswerInterface, LyQuestionAnswerInterface

public class LyMultiClassExportController
extends LyExportController

This class implements an export controller (no GUI) to xporta set of data from multiple classInfos into XML (only XML is available).

See Also:
LyExportController

Field Summary
static java.lang.String __VERSION
          File Version
 
Fields inherited from class leon.control.LyExportController
CHARSET, DEMAND_OVERWRITE_FILE, DEMAND_PREVIEW, EXPORT_SELECTION, FIELD_SEP, PREVIEW_AREA, PREVIEW_HEIGHT, PREVIEW_WIDTH, SELECT_EXPORT_TYPE, SELECT_EXPORT_TYPE_RAW, SELECT_EXPORT_TYPE_SPREADSHEET, SELECT_EXPORT_TYPE_TEXT, SELECT_EXPORT_TYPE_XML, SELECT_FIELD_PREFIX, SELECT_FIELD_RENAME_EXTENSION, SELECT_FIELD_SEP, SELECT_FIELDINFOS, SELECT_FILE, SELECT_VALUE_SEP, SPREADSHEET_FIELD_SEP, SPREADSHEET_VALUE_SEP, VALUE_SEP
 
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
LyMultiClassExportController(LySession session, LyAction action, LyObjectList objects)
          Constructor.
LyMultiClassExportController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Constructor.
 
Method Summary
 void free()
          Free this controller.
 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 showView()
          Make the view visible to the user.
 
Methods inherited from class leon.control.LyExportController
actionDemand, export, exportAsString, getBehaviorInterface, getClassInfo, getContent, getExportCharset, getExportType, getFile, getParameterValue, getTemporaryFileName, getTemporaryFileName, isSilent, isViewResizable, preview, questionAnswer, setFile, showExportForm
 
Methods inherited from class leon.control.LyAreaController
canClose, canFree, clearViewCache, completeMenuBar, completeMessages, free, getAction, getAreaStackController, getBehavior, getBuilder, getContext, getContextClient, getContextTitle, getDefaultAction, getEnvironment, getFastEditionAction, getHelpFile, getImage, getImageTooltip, getInfoLabel, getInfoLabel, getKeyValue, getLabel, getLastModified, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParent, getParentAreaController, getRefreshTime, getSelection, getShortLabel, getTarget, getTitle, getViewController, hasMark, hasNotMark, hasViewController, infoEvent, initialize, isInitialized, isOutlined, menuDemand, reset, reset, selectFileDemand, setContext, setContext, setContextClient, setIdle, setPreference, setViewController, showView, testParameter, toString, update, updateTitleBar
 
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

__VERSION

public static final java.lang.String __VERSION
File Version

See Also:
Constant Field Values
Constructor Detail

LyMultiClassExportController

public LyMultiClassExportController(LySession session,
                                    LyAction action,
                                    LyObjectList objects)
Constructor.

Parameters:
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 ...)
objects - list of objects that should be saved.

LyMultiClassExportController

public LyMultiClassExportController(LySession session,
                                    LyController parent,
                                    LyAction action,
                                    LyClassInfo classInfo,
                                    LyObjectList objects)
Constructor.

Parameters:
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

hideView

public void hideView(boolean free)
Hide the view. The effect of this command depends on the nature of the application. If the display is a fat client for example (windows (awt) / swing) this methods should close the window or hide the view.

This method should consider that the page is closed and should disappear.

Overrides:
hideView in class LyAreaController
Parameters:
free - Indicates if only HIDDEN, not FREED (true).

getViewController

public LyViewController getViewController()
Accessor to the view controller (Frame or dialog controller) which is the container of this view. This method must be implemented in subclasses depending on the nature of the component.

Overrides:
getViewController in class LyAreaController
Returns:
the reference to a view controller, never returns null if the controller is associated to a view.

free

public void free()
Free this controller. Overrides method from LyController :
If a parent is set, propagate the free request on parent
If no parent is set, free current controller immediately.

The parent will then invoke free(LyController controller) Method is set final, since propagation in subclasses must use free(LyController controller)

Overrides:
free in class LyAreaController
See Also:
LyAreaController.free(LyController)

showView

public void showView()
Make the view visible to the user. The effect of this command depends on the nature of the application. If the display is a fat client (windows (awt) / swing) this methods should open a window and show the view. In the case of thin client (html), this prepares the pages which will be returned and displayed in the client browser.

For any display, this method should consider that the page is ready to be shown and should be displayed.

Overrides:
showView in class LyExportController

(c) January 2013 - W4 S.A.

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