|
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.LySimplePrintController
public abstract class LySimplePrintController
This class describes the controller associated to the print action of a list of objects. This controller doesn't have a builder. The controller is associted with a behavior that mus implementes LyPrintBehaviorInterface. Usually, this behavior is an instance of the class LyPrintBehavior
LyAreaController
,
LyPrintBehaviorInterface
,
LyPrintBehavior
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
java.lang.String |
_supportName
Print handler support (file or printer name). |
java.lang.String |
PRINT_FORMATS
Supported print formats ASCII. |
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 | |
---|---|
LySimplePrintController(LySession session,
LyController parent,
LyAction action,
LyObjectList objects)
Constructor. |
Method Summary | |
---|---|
void |
free()
Free the current print job. |
LyBehaviorInterface |
getBehavior()
Accessor to controller behavior A behavior is associated to a controller to let the developper specify application logic in the behavior. |
LyBuilder |
getDefaultBuilder()
Returns default builder. |
java.util.BitSet |
getFieldMarks()
Access to field marks used to build the controlled view. |
LyInfoList<LyFieldInfo> |
getFields(LyClassInfo classInfo)
Gets the lits of fields to print. |
java.lang.String |
getFooterLabel(java.lang.Object field)
|
java.lang.String |
getFormat()
Gets printing format. |
java.lang.String |
getImage(java.lang.Object object)
|
java.lang.String |
getLabel(java.lang.Object field)
|
java.lang.String |
getLabel(java.lang.Object object,
java.lang.Object field)
|
LyView |
getParentView()
|
java.lang.String |
getShortLabel(java.lang.Object object,
java.lang.Object field)
|
int |
getSortIndex(java.lang.Object field)
|
java.lang.String |
getSupportName()
Gets support name (either printer name or file name if printing is done in a file). |
java.lang.String |
getTab(java.lang.Object field)
|
java.lang.String |
getTitle(java.lang.Object object)
|
LyViewController |
getViewController()
Returns view controller. |
boolean |
hasFooters()
|
boolean |
isIncreasing(java.lang.Object field)
|
boolean |
isInFile()
Checks if printing is done in a file. |
boolean |
isLeftAligned(java.lang.Object field)
|
boolean |
printEnd()
Callback for end of print action. |
abstract void |
run()
Printing objects starts. |
void |
setByList(boolean byList)
Sets printing by list mode. |
void |
setFields(LyInfoList<LyFieldInfo> fields)
Sets the lits of fields to print. |
void |
setPrintBehaviorInterface(LyPrintBehaviorInterface behavior)
Set the specified behavior for this controller. |
void |
showView()
Shows the Window which contains the view. |
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 java.lang.String _supportName
public java.lang.String PRINT_FORMATS
Constructor Detail |
---|
public LySimplePrintController(LySession session, LyController parent, LyAction action, 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). 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 ...)objects
- current context (may be null if the view is not contextual to a list of
objects).Method Detail |
---|
public void free()
free
in class LyAreaController
LyAreaController.free(LyController)
public LyBuilder getDefaultBuilder()
public LyViewController getViewController()
getViewController
in class LyAreaController
public void showView()
showView
in class LyAreaController
public abstract void run()
run
in interface java.lang.Runnable
public boolean printEnd()
public void setPrintBehaviorInterface(LyPrintBehaviorInterface behavior)
behavior
- behaviorpublic LyBehaviorInterface getBehavior()
getBehavior
in class LyAreaController
public void setByList(boolean byList)
byList
- the byList statuspublic void setFields(LyInfoList<LyFieldInfo> fields)
fields
- a list of fieldspublic LyInfoList<LyFieldInfo> getFields(LyClassInfo classInfo)
classInfo
- a classInfo
public java.util.BitSet getFieldMarks()
public boolean isInFile()
public java.lang.String getSupportName()
public java.lang.String getFormat()
public java.lang.String getTitle(java.lang.Object object)
getTitle
in interface LyPrintDataInterface
LyPrintDataInterface.getTitle(java.lang.Object)
public java.lang.String getImage(java.lang.Object object)
getImage
in interface LyPrintDataInterface
LyPrintDataInterface.getImage(java.lang.Object)
public java.lang.String getTab(java.lang.Object field)
getTab
in interface LyPrintDataInterface
LyPrintDataInterface.getTab(java.lang.Object)
public java.lang.String getLabel(java.lang.Object field)
getLabel
in interface LyPrintDataInterface
LyPrintDataInterface.getLabel(java.lang.Object)
public java.lang.String getLabel(java.lang.Object object, java.lang.Object field)
getLabel
in interface LyPrintDataInterface
LyPrintDataInterface.getLabel(java.lang.Object, java.lang.Object)
public java.lang.String getShortLabel(java.lang.Object object, java.lang.Object field)
getShortLabel
in interface LyPrintDataInterface
LyPrintDataInterface.getShortLabel(java.lang.Object, java.lang.Object)
public boolean hasFooters()
hasFooters
in interface LyPrintDataInterface
LyPrintDataInterface.hasFooters()
public int getSortIndex(java.lang.Object field)
getSortIndex
in interface LyPrintDataInterface
LyPrintDataInterface.getSortIndex(java.lang.Object)
public boolean isIncreasing(java.lang.Object field)
isIncreasing
in interface LyPrintDataInterface
LyPrintDataInterface.isIncreasing(java.lang.Object)
public java.lang.String getFooterLabel(java.lang.Object field)
getFooterLabel
in interface LyPrintDataInterface
LyPrintDataInterface.getFooterLabel(java.lang.Object)
public boolean isLeftAligned(java.lang.Object field)
isLeftAligned
in interface LyPrintDataInterface
LyPrintDataInterface.isLeftAligned(java.lang.Object)
public LyView getParentView()
getParentView
in interface LyPrintDataInterface
LyPrintDataInterface.getParentView()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |