LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyReportingController

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

public class LyReportingController
extends LyAreaController

This class implements a reporting window that displays a report chosen by the user


Field Summary
static java.lang.String __VERSION
          File Version
 
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
LyReportingController(LySession session, LyController parent, LyAction action)
          Constructor.
LyReportingController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
          Constructor.
LyReportingController(LySession session, LyController parent, LyAction action, LyObjectList context)
          Constructor.
 
Method Summary
 LyAction getAction()
          Accessor to the action associated to this controller.
 java.lang.String getBfreportHost()
          Gets the bfreport host
 boolean getInitReport()
          Indicates if the report was built in the bfreport engine or not
 java.lang.String getReportDir()
          Gets the directory name
 java.lang.String getReportName()
          Gets the report name
 java.util.HashMap<java.lang.String,java.lang.Object[]> getReportParameters()
          Gets the report parameters
 void reset(boolean full)
          Perform a full reset (reset of datas)
 boolean setContext(LyWorkSpace context)
          Updates the report parameters
 
Methods inherited from class leon.control.LyAreaController
actionDemand, canClose, canFree, clearViewCache, completeMenuBar, completeMessages, free, free, getAreaStackController, getBehavior, getBehaviorInterface, getBuilder, getClassInfo, getContent, 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, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, isViewResizable, menuDemand, reset, selectFileDemand, setContext, setContextClient, setIdle, setPreference, setViewController, showView, 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

LyReportingController

public LyReportingController(LySession session,
                             LyController parent,
                             LyAction action)
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). Controller hierarchy indicates a child controller (for example a dialog created from a main view)
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)

LyReportingController

public LyReportingController(LySession session,
                             LyController parent,
                             LyAction action,
                             LyObjectList context)
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). Controller hierarchy indicates a child controller (for example a dialog created from a main view)
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
context - current context (may be null if the view is not contextual to a list of objects).

LyReportingController

public LyReportingController(LySession session,
                             LyController parent,
                             LyAction action,
                             LyClassInfo classInfo,
                             LyObjectList context)
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). Controller hierarchy indicates a child controller (for example a dialog created from a main view)
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
classInfo - always the classInfo of the specified objects.
context - current context (may be null if the view is not contextual to a list of objects).
Method Detail

getReportDir

public java.lang.String getReportDir()
Gets the directory name

Returns:
the directory name where is located the report

getReportName

public java.lang.String getReportName()
Gets the report name

Returns:
the report name to use

getBfreportHost

public java.lang.String getBfreportHost()
Gets the bfreport host

Returns:
the host name where is located bfReport engine

getInitReport

public boolean getInitReport()
Indicates if the report was built in the bfreport engine or not

Returns:
true if the report was initialized, false otherwise

setContext

public boolean setContext(LyWorkSpace context)
Updates the report parameters

Specified by:
setContext in interface LyContextInterface
Overrides:
setContext in class LyAreaController
Parameters:
context - current context
Returns:
true if successfull
See Also:
LyContextInterface.getContext()

getReportParameters

public java.util.HashMap<java.lang.String,java.lang.Object[]> getReportParameters()
Gets the report parameters

Returns:
the report parameters

getAction

public LyAction getAction()
Accessor to the action associated to this controller. Area controllers are usually associated to an action, but this parameter may be null.

Specified by:
getAction in interface LyGetActionInterface
Overrides:
getAction in class LyAreaController
Returns:
The reference to associated action

reset

public void reset(boolean full)
Perform a full reset (reset of datas)

Overrides:
reset in class LyAreaController
Parameters:
full - true to force complete rebuild (data and view), false for a view rebuild

(c) January 2013 - W4 S.A.

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