LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyDialogController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyViewController
          extended by leon.control.LyDialogController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGuiListener, LyEvaluator, LyDemandListener, LyAnswerInterface, LyQuestionAnswerInterface

public final class LyDialogController
extends LyViewController

This controller manages a dialog window (or view). This dialog is used as the view controller of other views (such as creation/modification/consultation forms).

Unlike a Frame, a dialog is a child window of a parent, not a main Window. A dialog does not have a MenuBar and may be modal.

The LyDialogController automatically calculates the dialog position and size. Size is calculated from the content, and location (using VIEW_XOFFET, VIEW_YOFFSET) Position is calculated from parent location.

The dialog is always kept inside the screen, and a check is performed to be sure that de dialog location fits in the screen.

The other view controller is LyFrameController.

See Also:
LyFrameController

Field Summary
static java.lang.String __VERSION
          File Version
static int MAX_FIELDS_IN_POPUP
          Maximum number of fields in a popup view, -1 means no limit.
static int MAX_TABS_IN_POPUP
          Maximum number of tabs in a popup view, -1 means no limit.
static int VIEW_XOFFSET
          Default X value for the offset (relative to parent) to determine view position when this dialog is opened.
static int VIEW_YOFFSET
          Default Y value for the offset (relative to parent) to determine view position when this dialog 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
LyDialogController(LySession session, LyController parent)
          Construct a dialog controller with the specified parent.
LyDialogController(LySession session, LyController parent, LyAreaController areaController)
          Construct a dialog controller with the specified parent and a given area controller.
 
Method Summary
 void showView()
          Make the view visible to the user.
 
Methods inherited from class leon.control.LyViewController
actionDemand, clearViewCache, close, demandPerformed, exit, 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

__VERSION

public static final java.lang.String __VERSION
File Version

See Also:
Constant Field Values

VIEW_XOFFSET

public static int VIEW_XOFFSET
Default X value for the offset (relative to parent) to determine view position when this dialog is opened.


VIEW_YOFFSET

public static int VIEW_YOFFSET
Default Y value for the offset (relative to parent) to determine view position when this dialog is opened.


MAX_FIELDS_IN_POPUP

public static int MAX_FIELDS_IN_POPUP
Maximum number of fields in a popup view, -1 means no limit.


MAX_TABS_IN_POPUP

public static int MAX_TABS_IN_POPUP
Maximum number of tabs in a popup view, -1 means no limit.

Constructor Detail

LyDialogController

public LyDialogController(LySession session,
                          LyController parent)
Construct a dialog controller with the specified parent.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller : this is never null for a dialog controller.

LyDialogController

public LyDialogController(LySession session,
                          LyController parent,
                          LyAreaController areaController)
Construct a dialog controller with the specified parent and a given area controller.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller : this is never null for a dialog controller.
areaController - the area which is inside the dialog : an area automatically builds a view controller (dialog or frame) when showView is called.
Method Detail

showView

public void showView()
Make the view visible to the user. Automatically calculate location on screen 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.

Overrides:
showView in class LyViewController

(c) January 2013 - W4 S.A.

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