public class JUploadContextApplet extends DefaultJUploadContext
DefaultJUploadContext| Constructor and Description |
|---|
JUploadContextApplet(JApplet theApplet)
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
displayURL(String url,
boolean success)
Just throws a UnsupportedOperationException exception.
|
JApplet |
getApplet()
Just throws a UnsupportedOperationException exception.
|
Cursor |
getCursor()
Just throws a UnsupportedOperationException exception.
|
boolean |
getParameter(String key,
boolean def)
Just throws a UnsupportedOperationException exception.
|
FilePanel.FileListViewMode |
getParameter(String key,
FilePanel.FileListViewMode def)
Just throws a UnsupportedOperationException exception.
|
float |
getParameter(String key,
float def)
Just throws a UnsupportedOperationException exception.
|
int |
getParameter(String key,
int def)
Just throws a UnsupportedOperationException exception.
|
long |
getParameter(String key,
long def)
Just throws a UnsupportedOperationException exception.
|
String |
getParameter(String key,
String def)
Just throws a UnsupportedOperationException exception.
|
String |
jsString(String s)
Generate a js String, that can be written in a javascript expression.
|
String |
normalizeURL(String url)
Generates a valid URL, from a String.
|
void |
readCookieFromNavigator(Vector<String> headers)
Loads cookies, and add them to the specific headers for upload requests.
|
void |
readUserAgentFromNavigator(Vector<String> headers)
Loads userAgent, and add it as a header to the specific headers for upload requests.
|
Cursor |
setCursor(Cursor cursor)
Just throws a UnsupportedOperationException exception.
|
void |
showStatus(String status)
Just throws a UnsupportedOperationException exception.
|
displayDebug, displayErr, displayInfo, displayWarn, getBuildDate, getBuildNumber, getDetailedVersionMessage, getFrame, getLastModified, getLogWindow, getMimeType, getSvnProperties, getSvnRevision, getUploadPanel, getUploadPolicy, getVersion, init, parseBoolean, parseFileListViewMode, parseFloat, parseInt, parseLong, registerUnload, runUnload, setProperty, setWaitCursor, startUpload, unloadpublic JUploadContextApplet(JApplet theApplet)
theApplet - The applet is mandatory, to read the applet parameters.public JApplet getApplet()
getApplet in interface JUploadContextgetApplet in class DefaultJUploadContextpublic String getParameter(String key, String def)
getParameter in interface JUploadContextgetParameter in class DefaultJUploadContextkey - The name of the parameter to fetch.def - A default value which is used, when the specified parameter is not set.public int getParameter(String key, int def)
getParameter in interface JUploadContextgetParameter in class DefaultJUploadContextkey - The parameter namedef - The default valuepublic float getParameter(String key, float def)
getParameter in interface JUploadContextgetParameter in class DefaultJUploadContextkey - The parameter namedef - The default valuepublic long getParameter(String key, long def)
getParameter in interface JUploadContextgetParameter in class DefaultJUploadContextkey - The parameter namedef - The default valuepublic boolean getParameter(String key, boolean def)
getParameter in interface JUploadContextgetParameter in class DefaultJUploadContextkey - The parameter namedef - The default valuepublic FilePanel.FileListViewMode getParameter(String key, FilePanel.FileListViewMode def)
getParameter in interface JUploadContextgetParameter in class DefaultJUploadContextkey - The parameter namedef - The default valuepublic void readCookieFromNavigator(Vector<String> headers)
readCookieFromNavigator in interface JUploadContextreadCookieFromNavigator in class DefaultJUploadContextheaders - The headers, coming from DefaultUploadPolicypublic void readUserAgentFromNavigator(Vector<String> headers)
readUserAgentFromNavigator in interface JUploadContextreadUserAgentFromNavigator in class DefaultJUploadContextheaders - The headers, coming from DefaultUploadPolicypublic Cursor getCursor()
DefaultJUploadContextgetCursor in interface JUploadContextgetCursor in class DefaultJUploadContextJUploadContext.setCursor(Cursor)public Cursor setCursor(Cursor cursor)
DefaultJUploadContextsetCursor in interface JUploadContextsetCursor in class DefaultJUploadContextcursor - The cursor to setJUploadContext.setCursor(Cursor)public void showStatus(String status)
showStatus in interface JUploadContextshowStatus in class DefaultJUploadContextpublic void displayURL(String url, boolean success)
DefaultJUploadContextdisplayURL in interface JUploadContextdisplayURL in class DefaultJUploadContexturl - The URL to display, in text format. It will be normalized 'before use'.success - Indicates whether the upload was a success or not.JUploadContext.displayURL(String, boolean)public String normalizeURL(String url) throws JUploadException
normalizeURL in interface JUploadContextnormalizeURL in class DefaultJUploadContexturl - A url. Can be a path relative to the current one.JUploadExceptionpublic String jsString(String s)
s - Copyright © 2015. All rights reserved.