public interface Applet
Modifier and Type | Field and Description |
---|---|
static int |
DISPLAY_FLAG_APPLET_CAN_RESIZE |
static int |
DISPLAY_FLAG_STARTS_IN_FRAME |
Modifier and Type | Method and Description |
---|---|
boolean |
appletResize(int width,
int height)
Requests that the applet window for this applet be resized.
|
URL |
getCodeBase()
Returns the URL of the code base for this applet.
|
int |
getDisplayFlags() |
URL |
getDocumentBase()
Returns the basename URL of the document this applet is embedded in.
|
Object |
getJavaApplet() |
File |
getOpenFile(String pathHint,
String[] fileExtensionsNoDots) |
String |
getParameter(String name)
Returns the value of the specified parameter that was specified in
the
<APPLET> tag for this applet. |
InputStream |
getStream(String key)
Return the stream associated with a given key in this applet context, or
null if nothing is associated.
|
Iterator |
getStreamKeys()
Iterate over all keys that have associated streams.
|
boolean |
isActive()
Tests whether or not this applet is currently active.
|
void |
setStream(String key,
InputStream stream)
Associate a stream to a key for this applet context, possibly replacing
the old value.
|
boolean |
showDocument(URL url)
Displays the web page pointed to by the specified URL in the window
for this object.
|
boolean |
showDocument(URL url,
String target)
Displays the web page pointed to be the sepcified URL in the window
with the specified name.
|
boolean |
showStatus(String message)
Displays the specified message in the status window if that window
exists.
|
static final int DISPLAY_FLAG_STARTS_IN_FRAME
static final int DISPLAY_FLAG_APPLET_CAN_RESIZE
Object getJavaApplet()
boolean isActive()
true
if this applet is activeURL getDocumentBase()
getCodeBase()
URL getCodeBase()
String getParameter(String name)
<APPLET>
tag for this applet.name
- the parameter nameNullPointerException
- if name is nullboolean appletResize(int width, int height)
width
- the new width in pixelsheight
- the new height in pixelsboolean showDocument(URL url)
url
- the URL of the web page to load; unspecified on an errorboolean showDocument(URL url, String target)
url
- the URL of the web page to loadtarget
- the target windowboolean showStatus(String message)
message
- the status message, may be nullvoid setStream(String key, InputStream stream) throws IOException
key
- the key to associate withstream
- the stream value to tie to the key, or null to removeIOException
- if the stream is too largeInputStream getStream(String key)
key
- the key to look upIterator getStreamKeys()
int getDisplayFlags()
File getOpenFile(String pathHint, String[] fileExtensionsNoDots) throws IllegalAccessException
IllegalAccessException