LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LySortWizardController

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

public class LySortWizardController
extends LyAreaController

This class implements the sort wizard edition area. This form enables the user to type in elementary sort criterion (fieldInfo / direction).


Field Summary
static java.lang.String __VERSION
          File Version
static int DEFAULT_FIELD_NUMBER
          Default number of fields
static java.lang.String DIR_DECREASING
          Sort Wizard id : Sort Wizard direction decreasing.
static java.lang.String DIR_INCREASING
          Sort Wizard id : Sort Wizard direction increasing.
static java.lang.String DIRECTION
          Sort Wizard id : Sort Wizard direction.
static java.lang.String FIELD
          Sort Wizard id : Sort Wizard field.
static java.lang.String GROUP_BY
          Sort Wizard id : Sort Wizard group by.
static java.lang.String GROUPED
          Sort Wizard id : Sort Wizard grouped.
static int MAX_GROUP_BY
          Default number of Group by
 
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
LySortWizardController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Default constructor
 
Method Summary
 void actionDemand(LyActionDemand demand)
          Invoked when the user validates the content of the input.
 java.lang.Class<?> getBehaviorInterface()
          Method that gives the interface that must be implemented by the behavior associated to this controller.
 int getMaxItem()
          Get the max number of item for the sort wizard.
 LySortEndInterface getSortEndInterface()
          Accessor to the interface that will receive the new sort notification.
 boolean isViewResizable()
          Indicates if the view for this form controller is resizable.
 void setSort(LySort sort)
          Sets sort of this wizard.
 void setSortEndInterface(LySortEndInterface sortInterface)
          Setter for the interface that will receive the new sort.
 
Methods inherited from class leon.control.LyAreaController
canClose, canFree, clearViewCache, completeMenuBar, completeMessages, free, free, getAction, getAreaStackController, getBehavior, 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, menuDemand, reset, reset, selectFileDemand, setContext, 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

FIELD

public static final java.lang.String FIELD
Sort Wizard id : Sort Wizard field.


DIRECTION

public static final java.lang.String DIRECTION
Sort Wizard id : Sort Wizard direction.


DIR_DECREASING

public static final java.lang.String DIR_DECREASING
Sort Wizard id : Sort Wizard direction decreasing.


DIR_INCREASING

public static final java.lang.String DIR_INCREASING
Sort Wizard id : Sort Wizard direction increasing.


GROUP_BY

public static final java.lang.String GROUP_BY
Sort Wizard id : Sort Wizard group by.


GROUPED

public static final java.lang.String GROUPED
Sort Wizard id : Sort Wizard grouped.


DEFAULT_FIELD_NUMBER

public static int DEFAULT_FIELD_NUMBER
Default number of fields


MAX_GROUP_BY

public static int MAX_GROUP_BY
Default number of Group by

Constructor Detail

LySortWizardController

public LySortWizardController(LySession session,
                              LyController parent,
                              LyAction action,
                              LyClassInfo classInfo,
                              LyObjectList objects)
Default constructor

Parameters:
session - the current session
parent - parent controller
action - the corresponding action
classInfo - the associated classInfo
objects - the context
Method Detail

getBehaviorInterface

public java.lang.Class<?> 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.

isViewResizable

public boolean isViewResizable()
Indicates if the view for this form controller is resizable.

Overrides:
isViewResizable in class LyAreaController
Returns:
false since form views are not resizable.

setSortEndInterface

public void setSortEndInterface(LySortEndInterface sortInterface)
Setter for the interface that will receive the new sort.

Parameters:
sortInterface - the interface

getSortEndInterface

public LySortEndInterface getSortEndInterface()
Accessor to the interface that will receive the new sort notification.

Returns:
the interface

getMaxItem

public int getMaxItem()
Get the max number of item for the sort wizard.

Returns:
the max number of item

actionDemand

public void actionDemand(LyActionDemand demand)
Invoked when the user validates the content of the input.

Overrides:
actionDemand in class LyAreaController
Parameters:
demand - demand parameters sent by the view component.
See Also:
LyController.demandPerformed(leon.view.event.LyDemand)

setSort

public void setSort(LySort sort)
Sets sort of this wizard.

Parameters:
sort - New sort.

(c) January 2013 - W4 S.A.

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