|
||||||||||
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 java.lang.String |
getClipboard()
Gets the current text from the clipboard. |
static java.lang.String |
getCodeBase()
Gets the codebase from the JNLP BasicService. |
static java.lang.String |
getProperty(java.lang.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(java.lang.String pText)
Sets the given text to the clipboard. |
static void |
setProperty(java.lang.String pKey,
java.lang.String pValue)
Set the value of a property through the PersistenceService. |
static boolean |
showDocument(java.lang.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(java.lang.String pDocumentName) throws java.lang.Exception
pDocumentName
- the name/path of the document
true
if the request succeded, otherwise false
java.lang.Exception
- if the service execution is not possiblepublic static IFileHandle[] showOpenDialog(boolean pMultiSelection) throws java.lang.Exception
pMultiSelection
- true
to allowe multi file selection, false
for single
file selection
IFileHandle
java.lang.Exception
- if the service execution is not possiblepublic static void showSaveDialog(IFileHandle pFileHandle) throws java.lang.Exception
pFileHandle
- the IFileHandle
to store
java.lang.Exception
- if the service execution is not possiblepublic static java.lang.String getCodeBase() throws java.lang.Exception
null
if the codebase is not set
java.lang.Exception
- if the service execution is not possiblepublic static void setClipboard(java.lang.String pText) throws java.lang.Exception
pText
- the text
java.lang.Exception
- if clipboard access failspublic static java.lang.String getClipboard() throws java.lang.Exception
java.lang.Exception
- if clipboard access failspublic static void setProperty(java.lang.String pKey, java.lang.String pValue)
pKey
- the property namepValue
- the value setpublic static java.lang.String getProperty(java.lang.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 |