LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyPrintController

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

public class LyPrintController
extends LySimplePrintController

Print a list of objects.


Field Summary
static java.lang.String __VERSION
          File Version
 
Fields inherited from class leon.control.LySimplePrintController
_supportName, PRINT_FORMATS
 
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
LyPrintController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Constructor.
LyPrintController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects, boolean byList)
          Constructor.
 
Method Summary
 java.lang.Class<LyPrintBehaviorInterface> getBehaviorInterface()
          Method that gives the interface that must be implemented by the behavior associated to this controller.
 LyBuilder getDefaultBuilder()
          Returns default builder.
 java.util.Vector<LyConsultController> getSonControllers()
          Return the consult controllers built for printing.
 LyViewController getViewController()
          Returns view controller.
 void reset(boolean full)
          Reset all the content of the view.
 void run()
          Printing objects starts.
 void showView()
          Shows the Window which contains the view.
 
Methods inherited from class leon.control.LySimplePrintController
free, getBehavior, getFieldMarks, getFields, getFooterLabel, getFormat, getImage, getLabel, getLabel, getParentView, getShortLabel, getSortIndex, getSupportName, getTab, getTitle, hasFooters, isIncreasing, isInFile, isLeftAligned, printEnd, setByList, setFields, setPrintBehaviorInterface
 
Methods inherited from class leon.control.LyAreaController
actionDemand, canClose, canFree, clearViewCache, completeMenuBar, completeMessages, free, getAction, getAreaStackController, 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, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, isViewResizable, menuDemand, 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

LyPrintController

public LyPrintController(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 (_login).
classInfo - related class info
objects - current action context

LyPrintController

public LyPrintController(LySession session,
                         LyController parent,
                         LyAction action,
                         LyClassInfo classInfo,
                         LyObjectList objects,
                         boolean byList)
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 (_login).
classInfo - related class info
objects - current action context
byList - print objects as a list
Method Detail

getBehaviorInterface

public java.lang.Class<LyPrintBehaviorInterface> getBehaviorInterface()
Method that gives the interface that must be implemented by the behavior associated to this controller.

Overrides:
getBehaviorInterface in class LyAreaController
Returns:
Class representing the behavior interface of this controller.

getDefaultBuilder

public LyBuilder getDefaultBuilder()
Returns default builder.

Overrides:
getDefaultBuilder in class LySimplePrintController
Returns:
the default print builder

reset

public void reset(boolean full)
Reset all the content of the view.

Overrides:
reset in class LyAreaController
Parameters:
full - Boolean indicating if a full reset (including reset of datas) is requiered or not (only reset graphical area).

getViewController

public LyViewController getViewController()
Returns view controller.

Overrides:
getViewController in class LySimplePrintController
Returns:
the view controller

showView

public void showView()
Shows the Window which contains the view.

Overrides:
showView in class LySimplePrintController

getSonControllers

public java.util.Vector<LyConsultController> getSonControllers()
Return the consult controllers built for printing.

Returns:
a vector of consult controller

run

public void run()
Printing objects starts.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class LySimplePrintController

(c) January 2013 - W4 S.A.

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