|
Servoy 4.1.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 |
DEVELOPER
Deprecated. |
static int |
WEB_CLIENT
Constant returned by getApplicationType |
| Method Summary | |
|---|---|
void |
executeMethod(String formname,
String methodname,
Object[] arguments)
Deprecated. |
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). |
JFrame |
getMainApplicationFrame()
Deprecated. use getCurrentWindow if possible (gives the real current window) |
String |
getMessage(String i18nKey)
Deprecated. |
String |
getMessage(String i18nKey,
Object[] arguments)
Deprecated. |
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 |
getUserID()
Deprecated. Get the userID. |
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 |
reportError(Component parentComponent,
String msg,
Object detail)
Deprecated. |
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 |
|---|
getExecutor, getPluginManager, getReleaseNumber, getSettings, getThreadPool, getVersion, reportError |
| Methods inherited from interface com.servoy.j2db.util.IUIBlocker |
|---|
blockGUI, releaseGUI |
| Field Detail |
|---|
static final int CLIENT
static final int WEB_CLIENT
static final int DEVELOPER
| Method Detail |
|---|
void reportWarningInStatus(String s)
s - the warningint getApplicationType()
String getApplicationName()
Map getRuntimeProperties()
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.void setStatusText(String txt)
Object getUserUID()
String getClientID()
String getTransactionID(String serverName)
serverName - the server name for which a transaction id is requested
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).
ICmdManager getCmdManager()
IBeanManager getBeanManager()
JMenu getImportMenu()
JMenu getExportMenu()
Window getCurrentWindow()
IToolbarPanel getToolbarPanel()
void output(Object msg)
msg - URL getServerURL()
String getSolutionName()
Remote getServerService(String name)
throws Exception
Exception
void registerURLStreamHandler(String protocolName,
URLStreamHandler handler)
protocolName - handler -
Object executeMethod(String context,
String methodname,
Object[] arguments,
boolean async)
throws Exception
Exception
void handleException(String msg,
Exception detail)
msg - detail -
void executeMethod(String formname,
String methodname,
Object[] arguments)
void reportError(Component parentComponent,
String msg,
Object detail)
parentComponent - msg - detail - JFrame getMainApplicationFrame()
String getMessage(String i18nKey)
i18nKey - The key
String getMessage(String i18nKey,
Object[] arguments)
i18nKey - The keyarguments - Arguments to be used that are inserted in the found message.
Object getUserID()
|
Copyright © 2009 Servoy B.V. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||