|
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.LyViewController
leon.control.LyFrameController
public class LyFrameController
This controller manages a frame window (or view). This Frame is used as the view controller of other views (such as creation/modification/consultation forms). A Frame usually contains a 'major' view such as tables, maps, trees, not an edition form. However, the content is defined in the internal area.
Unlike a Dialog, a frame is a main window which may or may not have a parent window. If the frame has no parent, this is a 'root' level Frame. A Frame has a MenuBar, and usually contains a titlebar and toolbar.
The LyFrameController automatically calculates the window position and size.
The other view controller is LyDialogController.
LyViewController
,
LyDialogController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
static java.lang.String |
DEMAND_LOAD_DATA
Identifier of a action in the view : Loading data. |
static java.lang.String |
DEMAND_RUN_GC
Identifier of a action in the view : Run garbage collector. |
static java.lang.String |
DEMAND_SAVE_DATA
Identifier of a action in the view : Saving data. |
static int |
VIEW_XOFFSET
Default X value for the offset (relative to parent) to determine view position when this frame is opened. |
static int |
VIEW_YOFFSET
Default Y value for the offset (relative to parent) to determine view position when this frame is opened. |
Fields inherited from class leon.control.LyViewController |
---|
DEMAND_ABOUT, DEMAND_CLOSE, DEMAND_EXIT, DEMAND_HIDE, DEMAND_LOG, DEMAND_UPDATE, DEMAND_VERSION, LEVEL_PRIMARY, LEVEL_ROOT, LEVEL_SECONDARY, LEVEL_THIRD |
Fields inherited from class leon.control.LyController |
---|
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP |
Constructor Summary | |
---|---|
LyFrameController(LySession session,
LyController parent)
Constructor. |
|
LyFrameController(LySession session,
LyController parent,
LyAreaController areaController)
Constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
void |
clearViewCache()
Clears all cached data for this controller (especially the view and the component). |
void |
demandPerformed(LyDemand demand)
Invoked when a notification is sent to this listener. |
void |
exit()
Exit. |
void |
showView()
Make the view visible to the user. |
void |
updateUndoRedo()
Update the undo redo stack |
Methods inherited from class leon.control.LyViewController |
---|
close, free, getAreaController, getContext, getControllerStack, getEnvironment, getFreeOnClose, getLastModified, getSon, getSonsCount, getView, getViewArea, getViewController, hasPrintThread, hasSonShowing, hideView, initialize, interruptPrintThread, isInShowProcess, isShown, questionAnswer, setAreaController, setContext, setControllerStack, setFreeOnClose, setIdle, setInShowProcess, setName, setPrintThread, setViewArea |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, dragDropDemand, getApplication, getBehavior, getBehaviorInterface, getBuilder, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getKeyValue, getName, getObjectId, getParent, getSession, getUserData, getViewManager, hasViewController, helpDemand, hideView, isFreed, isIdle, menuDemand, selectionDemand, setBuilder, setBuilderClass, setLastModified, setUserData, showError, showError, showWarning, toString, 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 int VIEW_XOFFSET
public static int VIEW_YOFFSET
public static final java.lang.String DEMAND_SAVE_DATA
public static final java.lang.String DEMAND_LOAD_DATA
public static final java.lang.String DEMAND_RUN_GC
Constructor Detail |
---|
public LyFrameController(LySession session, LyController parent)
session
- current session associated to the controller. The controller automatically
registers on the specified session.parent
- parent controller : this parameter may be null for 'root' controllerpublic LyFrameController(LySession session, LyController parent, LyAreaController areaController)
session
- current session associated to the controller. The controller
automatically registers on the specified session.parent
- parent controller : this parameter may be null for 'root' controllerareaController
- the area which is inside the dialog : an area automatically builds a
view controller (dialog or frame) when showView is called.Method Detail |
---|
public void actionDemand(LyActionDemand demand)
actionDemand
in class LyViewController
demand
- demand parameters sent by the view component.LyController.demandPerformed(leon.view.event.LyDemand)
public void clearViewCache()
This method may be invoked for memory optimization, but the controller is still valid and may be used. (Unlike free) Further usage, needs to rebuild internal component & view which may be time consuming.
clearViewCache
in class LyViewController
public void showView()
showView
in class LyViewController
public void demandPerformed(LyDemand demand)
LyViewController
demandPerformed
in interface LyDemandListener
demandPerformed
in class LyViewController
demand
- demand parameters sent by the view component.LyViewController.demandPerformed(leon.view.event.LyDemand)
public void exit()
LyViewController
exit
in class LyViewController
LyViewController.exit()
public void updateUndoRedo()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |