|
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.LyUserInputController
public class LyUserInputController
This class implements a user input dialog/window to ask some values from the user. Values may be read when window/dialog is closed This controller is associated with a builder (LyUserInputBuilder) and a behavior that implements LyUserInputBehaviorInterface. Usually, this behavior is an instance of the LyUserInputBehavior class.
LyUserInputBuilder
,
LyUserInputBehaviorInterface
,
LyUserInputBehavior
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
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 | |
---|---|
LyUserInputController(LySession session,
LyController parent,
LyAction action)
Constructor. |
|
LyUserInputController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo)
Constructor. |
|
LyUserInputController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList context)
Constructor. |
|
LyUserInputController(LySession session,
LyController parent,
LyAction action,
LyObjectList context)
Constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
LyBoolean |
addBoolean(java.lang.String fieldId,
java.lang.String fieldLabel,
LyBoolean.Status status,
boolean optional)
Add a boolean field in the user input window. |
LyBoolean |
addBoolean(java.lang.String fieldId,
java.lang.String fieldLabel,
LyBoolean.Status status,
boolean optional,
int pos)
Add a boolean field in the user input window. |
LyChoice |
addChoice(java.lang.String fieldId,
java.lang.String fieldLabel,
boolean multiple,
boolean optional)
Add a choice field (empty) in the user input window. |
LyChoice |
addChoice(java.lang.String fieldId,
java.lang.String fieldLabel,
boolean multiple,
boolean optional,
int pos)
Add a choice field (empty) in the user input window. |
LyDate |
addDate(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
java.lang.String format,
boolean optional)
Add a date field in the user input window. |
LyDate |
addDate(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
java.lang.String format,
boolean optional,
int pos)
Add a date field in the user input window. |
LyFile |
addFile(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
LyFile.Type type,
boolean optional)
Add a text field in the user input window. |
LyFile |
addFile(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
LyFile.Type type,
boolean optional,
int pos)
Add a text field in the user input window. |
LyLabel |
addLabel(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel)
Add a label in the user input window. |
LyLabel |
addLabel(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
int pos)
Add a label in the user input window. |
LyList |
addList(java.lang.String fieldId,
java.lang.String fieldLabel,
boolean multiple,
int height,
boolean optional)
Add a list field (empty) in the user input window. |
LyList |
addList(java.lang.String fieldId,
java.lang.String fieldLabel,
boolean multiple,
int height,
boolean optional,
int pos)
Add a list field (empty) in the user input window. |
LyNumber |
addNumber(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
LyNumberFieldInfo.Type type,
boolean optional)
Add a number field in the user input window. |
LyNumber |
addNumber(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
LyNumberFieldInfo.Type type,
boolean optional,
int pos)
Add a number field in the user input window. |
LyRelation |
addRelation(java.lang.String fieldId,
java.lang.String fieldLabel,
boolean multiple,
boolean optional)
Add a relation field (empty) in the user input window. |
LyRelation |
addRelation(java.lang.String fieldId,
java.lang.String fieldLabel,
boolean multiple,
boolean optional,
int pos)
Add a relation field (empty) in the user input window. |
LyText |
addText(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
int ncols,
int nrows,
java.lang.String format,
boolean optional,
int pos)
Add a text field in the user input window. |
LyText |
addText(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
int ncols,
java.lang.String format,
boolean optional)
Add a text field in the user input window. |
LyText |
addText(java.lang.String fieldId,
java.lang.String fieldLabel,
java.lang.String itemLabel,
int ncols,
java.lang.String format,
boolean optional,
int pos)
Add a text field in the user input window. |
java.lang.Class<?> |
getBehaviorInterface()
Method that gives the interface that must be implemented by the behavior associated to this controller. |
LyClassInfo |
getClassInfo()
Get controller class info if any. |
LyComponent |
getComponent()
Accessor to the view component instance. |
LyForm |
getFormComponent()
Retrieves form that contains input fields. |
java.lang.String |
getImage()
Retrieve the image shown in the window titleBar. |
java.lang.String |
getInputId()
Retrieve the identification freely set by the listener. |
java.lang.String |
getTitleBar()
Retrieve the label of the titleBar. |
LyViewController |
getViewController()
Accessor to the associated view controller. |
boolean |
isDialog()
Gets dialog status. default is true |
boolean |
isViewResizable()
Indicates if the view for this input controller is resizable. |
void |
reset(boolean full)
Reset all the content of the view. |
void |
setBehavior(LyBehaviorInterface behavior)
Setter to controller behavior A behavior is associated to a controller to let the developper specify application logic in the behavior. |
void |
setBuilder(LyBuilder builder)
Setter to controller builder A builder is associated to a controller to let the developper construct the desired view. |
void |
setDialog(boolean isDialog)
Sets dialog status. default is true |
void |
setImage(java.lang.String image)
Sets the image shown in the window titleBar. |
void |
setInputId(java.lang.String inputId)
Sets the identification freely set by the listener. |
void |
setTitleBar(java.lang.String titleBar)
Sets the label of the titleBar. |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, 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
Constructor Detail |
---|
public LyUserInputController(LySession session, LyController parent, LyAction action)
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 ...)public LyUserInputController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo)
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 ...)classInfo
- This parameter is not used. Kept from introspection compatibility.public LyUserInputController(LySession session, LyController parent, LyAction action, LyObjectList context)
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 ...)context
- current context (may be null if the view is not contextual to a list of
objects).public LyUserInputController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
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 ...)classInfo
- This parameter is not used. Kept from introspection compatibility.context
- current context (may be null if the view is not contextual to a list of
objects).Method Detail |
---|
public LyClassInfo getClassInfo()
getClassInfo
in class LyAreaController
public LyComponent getComponent()
getComponent
in class LyController
public java.lang.Class<?> getBehaviorInterface()
getBehaviorInterface
in class LyAreaController
public void actionDemand(LyActionDemand demand)
actionDemand
in class LyAreaController
demand
- the action demand.LyController.demandPerformed(leon.view.event.LyDemand)
public java.lang.String getInputId()
public void setInputId(java.lang.String inputId)
inputId
- the identificationpublic java.lang.String getTitleBar()
public void setTitleBar(java.lang.String titleBar)
titleBar
- the label of the titleBarpublic java.lang.String getImage()
getImage
in class LyAreaController
public void setDialog(boolean isDialog)
isDialog
- dialog status (view is a dialog)public boolean isDialog()
public void setImage(java.lang.String image)
image
- the image to setpublic LyViewController getViewController()
getViewController
in class LyAreaController
public LyLabel addLabel(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- content of the field
public LyLabel addLabel(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, int pos)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- content of the fieldpos
- indicates the position of the field, -1 for the last position
public LyText addText(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, int ncols, java.lang.String format, boolean optional)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- content of the fieldncols
- number of columns for the fieldformat
- format for the field (f.e. IP Address format...)optional
- indicates if the field is optional or not
public LyText addText(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, int ncols, java.lang.String format, boolean optional, int pos)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- content of the fieldncols
- number of columns for the fieldformat
- format for the field (f.e. IP Address format...)optional
- indicates if the field is optional or notpos
- indicates the position of the field, -1 for the last position
public LyText addText(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, int ncols, int nrows, java.lang.String format, boolean optional, int pos)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- content of the fieldncols
- number of columns for the fieldnrows
- number of rows for the fieldformat
- format for the field (f.e. IP Address format...)optional
- indicates if the field is optional or notpos
- indicates the position of the field, -1 for the last position
public LyRelation addRelation(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, boolean optional)
fieldId
- Id of the fieldfieldLabel
- field labelmultiple
- indicates if this is a multiple relationoptional
- indicates if the field is optional or not
public LyRelation addRelation(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, boolean optional, int pos)
fieldId
- Id of the fieldfieldLabel
- field labelmultiple
- indicates if this is a multiple relationoptional
- indicates if the field is optional or notpos
- indicates the position of the field, -1 for the last position
public LyChoice addChoice(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, boolean optional)
fieldId
- Id of the fieldfieldLabel
- field labelmultiple
- indicates if this is a multiple relationoptional
- indicates if the field is optional or not
public LyChoice addChoice(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, boolean optional, int pos)
fieldId
- Id of the fieldfieldLabel
- field labelmultiple
- indicates if this is a multiple relationoptional
- indicates if the field is optional or notpos
- indicates the position of the field, -1 for the last position
public LyNumber addNumber(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, LyNumberFieldInfo.Type type, boolean optional)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- the original value of the fieldtype
- the type of the number fieldoptional
- indicates if the field is optional or not
public LyNumber addNumber(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, LyNumberFieldInfo.Type type, boolean optional, int pos)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- the original value of the fieldtype
- the type of the number fieldoptional
- indicates if the field is optional or notpos
- indicates the position of the field, -1 for the last position
public LyDate addDate(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, java.lang.String format, boolean optional)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- content of the fieldformat
- date format for the fieldoptional
- indicates if the field is optional or not
public LyDate addDate(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, java.lang.String format, boolean optional, int pos)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- content of the fieldformat
- date format for the fieldoptional
- indicates if the field is optional or notpos
- indicates the position of the field, -1 for the last position
public LyFile addFile(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, LyFile.Type type, boolean optional)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- original content of the fieldtype
- type of the fileoptional
- indicates if the field is optional or not
public LyFile addFile(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, LyFile.Type type, boolean optional, int pos)
fieldId
- Id of the fieldfieldLabel
- field labelitemLabel
- original content of the fieldtype
- type of the fileoptional
- indicates if the field is optional or notpos
- indicates the position of the field, -1 for the last position
public LyList addList(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, int height, boolean optional)
fieldId
- Id of the fieldfieldLabel
- field labelmultiple
- indicates if selection mode is multiple in the listheight
- the height of the listoptional
- indicates if the field is optional or not
public LyList addList(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, int height, boolean optional, int pos)
fieldId
- Id of the fieldfieldLabel
- field labelmultiple
- indicates if selection mode is multiple in the listheight
- the height of the listoptional
- indicates if the field is optional or notpos
- indicates the position of the field, -1 for the last position
public LyBoolean addBoolean(java.lang.String fieldId, java.lang.String fieldLabel, LyBoolean.Status status, boolean optional)
fieldId
- the id of the fieldfieldLabel
- the label of the fieldstatus
- the boolean statusoptional
- indicates if the choice is optional
public LyBoolean addBoolean(java.lang.String fieldId, java.lang.String fieldLabel, LyBoolean.Status status, boolean optional, int pos)
fieldId
- the id of the fieldfieldLabel
- the label of the fieldstatus
- the boolean statusoptional
- indicates if the choice is optionalpos
- indicates the position of the field, -1 for the last position
public boolean isViewResizable()
isViewResizable
in class LyAreaController
public void setBuilder(LyBuilder builder)
setBuilder
in class LyController
builder
- associated builderpublic void setBehavior(LyBehaviorInterface behavior)
behavior
- associated behaviorpublic LyForm getFormComponent()
public void reset(boolean full)
reset
in class LyAreaController
full
- Boolean indicating if a full reset (including reset of datas) is requiered or not
(only reset graphical area).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |