|
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.LyCommonServiceController
public class LyCommonServiceController
The common service controller
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
java.util.List<java.lang.String> |
_allServices
A list of all services |
eu.w4.service.Service |
_currentService
The current service |
eu.w4.service.ServiceInfo |
_currentServiceInfo
The current service informations |
java.lang.String |
_currentServiceName
The current service name |
static boolean |
_isDebug
Indicates if we are debugging this controller |
LyController |
_parent
Parent controller |
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 | |
---|---|
LyCommonServiceController(LySession session,
LyController parent,
LyAction action)
Default constructor. |
|
LyCommonServiceController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList objects)
Default constructor. |
Method Summary | |
---|---|
void |
cleanParameters()
Clean the parameters list |
void |
clearParameters()
Clear the parameter list |
java.util.List<java.lang.String> |
getClasseNamesInPackage()
get all services name looking in W4Components.jar. |
java.lang.Object |
getParam(java.lang.String name)
Get a paramter by its name |
java.lang.Object |
getParameter(java.lang.String name,
boolean unknown_value)
Gets value corresponding to the given parameter. |
eu.w4.service.Service |
getServiceFromName(java.lang.String className)
Get the service object, according to its name. |
eu.w4.service.ServiceInfo |
getServiceInfoFromName(java.lang.String className)
Get the serviceInfo object, according its the service name+"Info" |
eu.w4.service.ServiceInfo |
getServiceInfoType()
Get the serviceInfo object, according to the service name+"Info" |
eu.w4.service.Service |
getServiceType()
Get the service object, according to its name. |
java.lang.Class<?> |
getType(java.lang.String param)
get the type of a named parameter. |
boolean |
hasUI()
|
boolean |
invoke(eu.w4.service.Service service,
eu.w4.service.ServiceInfo serviceInfo)
Initializes and calls the service, using setted parameters. |
boolean |
isParameterHardCoded(java.lang.String parameter)
|
void |
set_displayUI(boolean _displayUI)
|
void |
setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
set this CommonServiceController parameters. |
void |
showView()
Make the view visible to the user. |
Methods inherited from class leon.control.LyUserInputController |
---|
actionDemand, 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, reset, 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 boolean _isDebug
public java.util.List<java.lang.String> _allServices
public LyController _parent
public eu.w4.service.Service _currentService
public java.lang.String _currentServiceName
public eu.w4.service.ServiceInfo _currentServiceInfo
Constructor Detail |
---|
public LyCommonServiceController(LySession session, LyController parent, LyAction action)
session
- parent
- action
- public LyCommonServiceController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
session
- the current sessionparent
- the parent controlleraction
- the associated actionclassInfo
- the associated classInfoobjects
- a list of objectMethod Detail |
---|
public final boolean hasUI()
public final void set_displayUI(boolean _displayUI)
_displayUI
- the _displayUI to setpublic void showView()
LyAreaController
showView
in class LyAreaController
public java.lang.Object getParameter(java.lang.String name, boolean unknown_value)
LyAreaController
getParameter
in class LyAreaController
name
- Parameter name.unknown_value
- Boolean indicating if an exception is raised if this parameter
doesn't exist on the controller action.
public void clearParameters()
public void setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
parameters
- public boolean invoke(eu.w4.service.Service service, eu.w4.service.ServiceInfo serviceInfo)
service
- The called serviceserviceInfo
- The associated serviceInfo
public void cleanParameters()
public java.lang.Object getParam(java.lang.String name)
name
- the name of the parameter
public eu.w4.service.Service getServiceType()
public eu.w4.service.ServiceInfo getServiceInfoType()
public eu.w4.service.Service getServiceFromName(java.lang.String className)
className
- the class name of a service
public eu.w4.service.ServiceInfo getServiceInfoFromName(java.lang.String className)
className
- the class name of a service
public java.lang.Class<?> getType(java.lang.String param)
param
- : the name of the parameter
public java.util.List<java.lang.String> getClasseNamesInPackage()
public boolean isParameterHardCoded(java.lang.String parameter)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |