Servoy 5.x Public API

com.servoy.j2db.server.headlessclient
Interface IWebClientPluginAccess

All Superinterfaces:
IClientPluginAccess, ILogLevel, IPluginAccess, IUIBlocker

public interface IWebClientPluginAccess
extends IClientPluginAccess

Extended plugin api for the webclient.

Since:
3.5

Field Summary
 
Fields inherited from interface com.servoy.j2db.plugins.IClientPluginAccess
CLIENT, HEADLESS_CLIENT, WEB_CLIENT
 
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
 void generateAjaxResponse(org.apache.wicket.ajax.AjaxRequestTarget target)
          Ajax Behaviour helper for behaviours added to the page via the page contributor
 IPageContributor getPageContributor()
          Get the page contributor
 String serveResource(String filename, byte[] array, String mimetype)
          Server a resource, returns the url under which the resource is served, can be shown with showURL.
 boolean showURL(String url, String target, String target_options)
          Show a url in the browser.
 boolean showURL(String url, String target, String target_options, int timeout_ms)
          Show a url in the browser.
 
Methods inherited from interface com.servoy.j2db.plugins.IClientPluginAccess
executeMethod, exportObject, getApplicationName, getApplicationType, getBeanManager, getClientID, getCmdManager, getCurrentWindow, getDatabaseManager, getExportMenu, getFormManager, getI18NMessage, getImportMenu, getMediaURLStreamHandler, getResourceBundle, getRuntimeProperties, getServerService, getServerURL, getSolutionName, getToolbarPanel, getUserUID, getWindow, handleException, isInDeveloper, output, output, registerURLStreamHandler, reportWarningInStatus, setStatusText, showFileOpenDialog
 
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
 

Method Detail

generateAjaxResponse

void generateAjaxResponse(org.apache.wicket.ajax.AjaxRequestTarget target)
Ajax Behaviour helper for behaviours added to the page via the page contributor

Parameters:
target -

getPageContributor

IPageContributor getPageContributor()
Get the page contributor

Returns:
the page contributor

serveResource

String serveResource(String filename,
                     byte[] array,
                     String mimetype)
Server a resource, returns the url under which the resource is served, can be shown with showURL. After that it is served the content will be cleaned.

Parameters:
filename -
array - the resource as byte array
mimetype -
Returns:
url

showURL

boolean showURL(String url,
                String target,
                String target_options)
Show a url in the browser.

Parameters:
url - the url
target - (_blank,_self, framename)
target_options - usefull option for new window ('height=200,width=400,status=yes,toolbar=no,menubar=no,location=no')
Returns:
true if successfull

showURL

boolean showURL(String url,
                String target,
                String target_options,
                int timeout_ms)
Show a url in the browser.

Parameters:
url - the url
target - (_blank,_self, framename)
target_options - usefull option for new window ('height=200,width=400,status=yes,toolbar=no,menubar=no,location=no')
timeout_ms - time to act in milliseconds
Returns:
true if successfull

Copyright © 2010 Servoy B.V.