|
Servoy 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 |
HEADLESS_CLIENT
Constant returned by getApplicationType |
static int |
WEB_CLIENT
Constant returned by getApplicationType |
| Fields inherited from interface com.servoy.j2db.plugins.IPluginAccess |
|---|
PLATFORM_LINUX, PLATFORM_MAC, PLATFORM_OTHER, PLATFORM_WINDOWS |
| Fields inherited from interface com.servoy.j2db.util.ILogLevel |
|---|
DEBUG, ERROR, FATAL, INFO, WARNING |
| Method Summary | |
|---|---|
Object |
executeMethod(String context,
String methodname,
Object[] arguments,
boolean async)
Executes a method with method name and arguments in the given context If context is a form name a form method is executed, if null a global method will be assumed. |
void |
exportObject(Remote object)
Deprecated. |
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. |
IDatabaseManager |
getDatabaseManager()
Get the database manager (used to control the rows/transactions etc). |
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). |
URLStreamHandler |
getMediaURLStreamHandler()
Returns a URLStreamHandler for handling servoy urls ('media' protocol). |
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). |
Object |
getUserUID()
Get the userUID. |
Window |
getWindow(String windowName)
Gets the java Window for the JS window or JS dialog with the given name. |
void |
handleException(String msg,
Exception detail)
Invoke the Servoy solution error handler with a msg and exception. |
boolean |
isInDeveloper()
Returns whether or not this client is running in the developer. |
void |
output(Object msg)
Output something on the out stream and in log. |
void |
output(Object msg,
int level)
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. |
void |
showFileOpenDialog(IMediaUploadCallback callback,
String fileNameHint,
boolean multiSelect,
String[] filter,
int selection,
String dialogTitle)
Opens the file dialog on the client so that a user can upload a file. |
| Methods inherited from interface com.servoy.j2db.plugins.IPluginAccess |
|---|
getExecutor, getPlatform, getPluginManager, getReleaseNumber, getSettings, getVersion |
| Methods inherited from interface com.servoy.j2db.util.IUIBlocker |
|---|
blockGUI, releaseGUI |
| Field Detail |
|---|
static final int CLIENT
static final int HEADLESS_CLIENT
static final int WEB_CLIENT
| Method Detail |
|---|
Object executeMethod(String context,
String methodname,
Object[] arguments,
boolean async)
throws Exception
context - This is the form name or null if the method is a global method.methodname - The method name to be executedarguments - The arguments that the method will get.async - Execute the method asynchronously or not. If true this method will return immediately with null.
ExceptionFunctionDefinition
@Deprecated
void exportObject(Remote object)
throws Exception
object - The remote object to export
ExceptionString getApplicationName()
int getApplicationType()
CLIENT for the smart client.
IBeanManager getBeanManager()
String getClientID()
ICmdManager getCmdManager()
Window getCurrentWindow()
IDatabaseManager getDatabaseManager()
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()
URLStreamHandler getMediaURLStreamHandler()
URL.URL(URL, String, URLStreamHandler) or URL.URL(String, String, int, String, URLStreamHandler)
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()
Object getUserUID()
Window getWindow(String windowName)
windowName - the name of the window as given when opening a window or dialog from JS. If windowName is null, the main application frame is returned.
void handleException(String msg,
Exception detail)
msg - detail - boolean isInDeveloper()
void output(Object msg)
msg -
void output(Object msg,
int level)
msg - level - the severity levelILogLevel
void registerURLStreamHandler(String protocolName,
URLStreamHandler handler)
protocolName - handler - void reportWarningInStatus(String s)
s - the warningvoid setStatusText(String txt)
void showFileOpenDialog(IMediaUploadCallback callback,
String fileNameHint,
boolean multiSelect,
String[] filter,
int selection,
String dialogTitle)
IMediaUploadCallback is mandatory and will be used, the other arguments can be null and can be ignored by the implementation.
callback - The IMediaUploadCallback for the call back.fileNameHint - A String which file the user should open.multiSelect - Multi select files at once.filter - A string array of filenames that are allowed.selection - A JFileChooser constant if it should select directories or files.dialogTitle - The dialog title.
|
Copyright © 2010 Servoy B.V. | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||