|
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
leon.control.LySelectFileController
public class LySelectFileController
This class implements a file/directory selection
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
static int |
FILE_WIDTH
Default file width |
static java.lang.String |
LY_SELECT_FILE_DEFAULT_PATH_KEY
Default Path key |
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 | |
---|---|
LySelectFileController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList context)
This constructor creates a new controller object. |
|
LySelectFileController(LySession session,
LyController parent,
LyAction action,
LyObjectList context)
This constructor creates a new controller object. |
|
LySelectFileController(LySession session,
LyController parent,
LyClassInfo classInfo)
This constructor creates a new controller object. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
void |
addListener(LySelectFileListenerInterface listener)
Add a listener for callback |
void |
free()
Free this controller. |
java.lang.String |
getDefaultPath()
default opening directory or file. |
java.lang.String |
getMessage()
Accessor detailed message in the view |
java.lang.String |
getSelectedPath()
Return user path selection in the input dialog |
LyFile.Type |
getType()
Accessor file type in selector |
void |
removeListener(LySelectFileListenerInterface listener)
remove a listener for callback |
void |
reset(boolean full)
Reset all the content of the view. |
void |
setDefaultPath(java.lang.String path)
Set the default path |
void |
setMessage(java.lang.String message)
Accessor detailed message in the view |
void |
setSelectedPath(java.lang.String path)
Accessor user path selection in the input dialog |
void |
setType(LyFile.Type type)
Accessor file type in selector |
Methods inherited from class leon.control.LyUserInputController |
---|
addBoolean, addBoolean, addChoice, addChoice, addDate, addDate, addFile, addFile, addLabel, addLabel, addList, addList, addNumber, addNumber, addRelation, addRelation, addText, addText, addText, getBehaviorInterface, getClassInfo, getComponent, getFormComponent, getImage, getInputId, getTitleBar, getViewController, isDialog, isViewResizable, setBehavior, setBuilder, setDialog, setImage, setInputId, setTitleBar |
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
public static final java.lang.String LY_SELECT_FILE_DEFAULT_PATH_KEY
public static int FILE_WIDTH
Constructor Detail |
---|
public LySelectFileController(LySession session, LyController parent, 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)classInfo
- related classInfo.public LySelectFileController(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 LySelectFileController(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 void reset(boolean full)
reset
in class LyUserInputController
full
- Boolean indicating if a full reset (including reset of datas) is required or not
(only reset graphical area).public void free()
LyAreaController
The parent will then invoke free(LyController controller) Method is set final, since propagation in subclasses must use free(LyController controller)
free
in class LyAreaController
LyAreaController.free()
public void actionDemand(LyActionDemand demand)
actionDemand
in class LyUserInputController
demand
- the action demand.LyController.demandPerformed(leon.view.event.LyDemand)
public java.lang.String getDefaultPath()
public void setDefaultPath(java.lang.String path)
path
- the default pathpublic java.lang.String getSelectedPath()
public void setSelectedPath(java.lang.String path)
path
- user pathpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the requested messagepublic LyFile.Type getType()
public void setType(LyFile.Type type)
type
- one of the File.Type valuespublic void addListener(LySelectFileListenerInterface listener)
listener
- public void removeListener(LySelectFileListenerInterface listener)
listener
-
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |