|
Servoy 3.5.x Public API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IClientPluginAccess
Default client plugin api
| Field Summary | |
|---|---|
static int |
CLIENT
Constant returned by getApplicationType |
static int |
WEB_CLIENT
Constant returned by getApplicationType |
| Method Summary | |
|---|---|
Object |
executeMethod(String context,
String methodname,
Object[] arguments,
boolean async)
Executes a method with methodname and arguments in the given context If context is a formname a form method is executed, if null a global method will be assumed. |
String |
getApplicationName()
Get the application name. |
int |
getApplicationType()
Get the application type. |
IBeanManager |
getBeanManager()
Get the bean manager (used to control beans). |
String |
getClientID()
Get the clientID. |
ICmdManager |
getCmdManager()
Get the cmd manager (used to execute undoable cmd). |
Window |
getCurrentWindow()
Get the current showing window (Dialog or Frame) Use this one as a parent if you want to display a dialog or other frame. |
JMenu |
getExportMenu()
Get the export menu, used by plugins to add export menu items (actions). |
IFormManager |
getFormManager()
Get the form manager (used to control the forms, show etc). |
String |
getI18NMessage(String i18nKey,
Object[] arguments)
Get a message for the specified i18n key |
JMenu |
getImportMenu()
Get the import menu, used by plugins to add import menu items (actions). |
ResourceBundle |
getResourceBundle(Locale locale)
ResourceBundle containing all the messages of the current loaded solution. |
Map |
getRuntimeProperties()
Map containing runtime properties (will never be stored, and live one session) |
Remote |
getServerService(String name)
Get a remote service, will not work in the Servoy Runtime product! |
URL |
getServerURL()
Get the http server url |
String |
getSolutionName()
Get the current solution name |
IToolbarPanel |
getToolbarPanel()
Get the toolbar panel (used to control toolbars). |
String |
getTransactionID(String serverName)
Get the transaction id, the client may have. |
Object |
getUserUID()
Get the userUID. |
void |
handleException(String msg,
Exception detail)
Invoke the Servoy solution error handler with a msg and exception. |
void |
output(Object msg)
Output something on the out stream and in log. |
void |
registerURLStreamHandler(String protocolName,
URLStreamHandler handler)
Register a URLStreamHandler for a protocol |
void |
reportWarningInStatus(String s)
Report a warning in the status (will be shown in red). |
void |
setStatusText(String txt)
set a status text in the status area. |
| Methods inherited from interface com.servoy.j2db.plugins.IPluginAccess |
|---|
getReleaseNumber, getSettings, getThreadPool, getVersion |
| Methods inherited from interface com.servoy.j2db.util.IUIBlocker |
|---|
blockGUI, releaseGUI |
| Field Detail |
|---|
static final int CLIENT
static final int WEB_CLIENT
| Method Detail |
|---|
Object executeMethod(String context,
String methodname,
Object[] arguments,
boolean async)
throws Exception
ExceptionString getApplicationName()
int getApplicationType()
IBeanManager getBeanManager()
String getClientID()
ICmdManager getCmdManager()
Window getCurrentWindow()
JMenu getExportMenu()
IFormManager getFormManager()
String getI18NMessage(String i18nKey,
Object[] arguments)
i18nKey - The keyarguments - Arguments to be used that are inserted in the found message (null if no args).
JMenu getImportMenu()
ResourceBundle getResourceBundle(Locale locale)
locale - The locale for which the resource bundle must be created, null if it has to use the default from the client.Map getRuntimeProperties()
Remote getServerService(String name)
throws Exception
ExceptionURL getServerURL()
String getSolutionName()
IToolbarPanel getToolbarPanel()
String getTransactionID(String serverName)
serverName - the server name for which a transaction id is requested
Object getUserUID()
void handleException(String msg,
Exception detail)
msg - detail - void output(Object msg)
msg -
void registerURLStreamHandler(String protocolName,
URLStreamHandler handler)
protocolName - handler - void reportWarningInStatus(String s)
s - the warningvoid setStatusText(String txt)
|
Copyright © 2009 Servoy B.V. | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||