|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.snmp2.SASAppletStub
This class provides the implementation of the AppletStub methods to plug into applet to simulate the applet behaviour. This class is used when we have to pass a 'user-defined applet' to the SnmpSession's open() while using client applications (instead of applets) with SAS.
Constructor Summary | |
SASAppletStub()
Constructor that creates the implementation of the AppletStub. |
Method Summary | |
void |
appletResize(int width,
int height)
Called when the applet wants to be resized. |
java.applet.AppletContext |
getAppletContext()
Gets a handler to the applet's context. |
java.net.URL |
getCodeBase()
Gets the base URL. |
java.net.URL |
getDocumentBase()
Gets the document URL. |
java.lang.String |
getParameter(java.lang.String name)
Returns the value of the named parameter in the HTML tag. |
boolean |
isActive()
Determines if the applet is active. |
void |
setAppletContext(java.applet.AppletContext context)
Sets the applet context to the user specified one. |
void |
setCodeBase(java.net.URL url)
Sets the codebase URL. |
void |
setDocumentBase(java.net.URL url)
Sets the document URL. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets the name-value pair in the applet parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SASAppletStub()
Method Detail |
public void appletResize(int width, int height)
appletResize
in interface java.applet.AppletStub
public java.net.URL getCodeBase()
getCodeBase
in interface java.applet.AppletStub
public void setCodeBase(java.net.URL url)
public java.net.URL getDocumentBase()
getDocumentBase
in interface java.applet.AppletStub
public void setDocumentBase(java.net.URL url)
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface java.applet.AppletStub
public java.applet.AppletContext getAppletContext()
getAppletContext
in interface java.applet.AppletStub
public boolean isActive()
isActive
in interface java.applet.AppletStub
public void setParameter(java.lang.String name, java.lang.String value) throws java.lang.NullPointerException
name
- The name of the parameter to add.value
- The value of the specified parameterjava.lang.NullPointerException
- is the name or value is null.public void setAppletContext(java.applet.AppletContext context)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |