|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.Webstart
public final class Webstart
The Webstart
class allows encapsulated access to the javax.jnlp service
objects. It's safe to use the class within browser applets because the service detection
will be made with reflective calls.
Method Summary | |
---|---|
static String |
getClipboard()
Gets the current text from the clipboard. |
static String |
getCodeBase()
Gets the codebase from the JNLP BasicService. |
static String |
getProperty(String pKey)
Gets the value of a property through the PersistenceService. |
static boolean |
isJnlp()
Gets if the jvm was started as JNLP webstart process. |
static void |
setClipboard(String pText)
Sets the given text to the clipboard. |
static void |
setProperty(String pKey,
String pValue)
Set the value of a property through the PersistenceService. |
static boolean |
showDocument(String pDocumentName)
Shows a document via the JNLP BasicService. |
static IFileHandle[] |
showOpenDialog(boolean pMultiSelection)
Opens a file chooser dialog via the JNLP FileOpenService. |
static void |
showSaveDialog(IFileHandle pFileHandle)
Opens a file save dialog with the JNLP FileSaveService. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isJnlp()
true
if started as JNLP, otherwise false
public static boolean showDocument(String pDocumentName) throws Exception
pDocumentName
- the name/path of the document
true
if the request succeded, otherwise false
Exception
- if the service execution is not possiblepublic static IFileHandle[] showOpenDialog(boolean pMultiSelection) throws Exception
pMultiSelection
- true
to allowe multi file selection, false
for single
file selection
IFileHandle
Exception
- if the service execution is not possiblepublic static void showSaveDialog(IFileHandle pFileHandle) throws Exception
pFileHandle
- the IFileHandle
to store
Exception
- if the service execution is not possiblepublic static String getCodeBase() throws Exception
null
if the codebase is not set
Exception
- if the service execution is not possiblepublic static void setClipboard(String pText) throws Exception
pText
- the text
Exception
- if clipboard access failspublic static String getClipboard() throws Exception
Exception
- if clipboard access failspublic static void setProperty(String pKey, String pValue)
pKey
- the property namepValue
- the value setpublic static String getProperty(String pKey)
pKey
- the property name
null
if the property was not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |