|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PlugletPeer
interface is the set of functions implemented
by the browser to support a Pluglet
instance. When a Pluglet
instance is constructed, a PlugeletPeer
object is passed to its initializer.
The peer object represents the instantiation of the Pluglet
instance on the page.
Field Summary | |
static int |
NETSCAPE_WINDOW
This is a static final integer variable set to 3. |
Method Summary | |
java.lang.String |
getMIMEType()
Returns the MIME type of the Pluglet instance. |
int |
getMode()
Returns an int (integer value) indicating whether the
Pluglet is embedded in HTML in the page via an OBJECT
or EMBED element and is part of the page,
or whether the Pluglet is in a full page of its own. |
PlugletTagInfo |
getTagInfo()
For the Pluglet instance, returns the tag information
associated with it. |
java.lang.String |
getValue(int variable)
Returns the value of a variable associated with the PlugletManager instance. |
java.io.OutputStream |
newStream(java.lang.String type,
java.lang.String target)
This method is called by the Pluglet instance when it wishes
to send a stream of data to the browser. |
void |
setWindowSize(int width,
int height)
Sets the desired size of the window associated with the Pluglet instance. |
void |
showStatus(java.lang.String message)
Invoking this method causes status information to be displayed at the bottom of the window associated with the Pluglet instance. |
Field Detail |
public static final int NETSCAPE_WINDOW
static final
integer variable set to 3.Method Detail |
public java.lang.String getMIMEType()
Pluglet
instance.
String
for the MIME type of the Pluglet
instance.public int getMode()
int
(integer value) indicating whether the
Pluglet is embedded in HTML in the page via an OBJECT
or EMBED
element and is part of the page,
or whether the Pluglet is in a full page of its own.
A full-page Pluglet can occur when a file of the Pluglet MIME type
is entered in the Address/URL field of the browser; when JavaScript
sets the document URL (document.URL
) to that file;
or when an applet redirects the browser to the file
(via java.net.HttpURLConnection
).
int
(integer value) representing the mode.
A value of 1 indicates the Pluglet is embedded in a page; a value of 2
indicates it is in a full page of its own.public java.lang.String getValue(int variable)
PlugletManager
instance.variable
- This is the PlugletManager
instance
variable to get.String
representing the value of the variable.public java.io.OutputStream newStream(java.lang.String type, java.lang.String target)
Pluglet
instance when it wishes
to send a stream of data to the browser. It constructs a
new output stream to which the Pluglet
instance may send data.
type
- The MIME type of the stream to create.target
- The name of the target window to receive the data.public void showStatus(java.lang.String message)
Pluglet
instance.
message
- This is the status message to display.public void setWindowSize(int width, int height)
Pluglet
instance.width
- The width of the new window.height
- The height of the new window.public PlugletTagInfo getTagInfo()
Pluglet
instance, returns the tag information
associated with it. This is an object of type
PlugletTagInfo
, which contains all the name-value
pairs for the attributes of the tag/element.Pluglet
instance tag information.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |