|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IThinkmapContext
The IThinkmapContext interface is implemented by objects that host Thinkmap components. Typically, this is either an Applet, Application (on the client side), or a Servlet on the server side.
| Field Summary | |
|---|---|
static String[] |
errorLevelNames
|
static int |
MSG_ERROR
An error that is serious, but not fatal. |
static int |
MSG_FATAL
An error where the application can no longer function. |
static int |
MSG_INFO
An error that is primarily for informative purposes. |
static int |
MSG_WARNING
An error that is merely a warning and can usually be ignored |
| Method Summary | |
|---|---|
void |
addContextListener(IContextListener l)
Add a listener to this context. |
Object |
evalExternal(String code)
Evaluate the given code in the external envorinment. |
Object |
getAttribute(String s)
Returns an object defined by the container in an application specific way. |
String |
getParameter(String name)
Returns the value of an initialization parameter that was specified to the container. |
void |
removeContextListener(IContextListener l)
Remove a listener from this context. |
void |
reportError(int level,
String message,
Throwable e)
Report an error for the application / applet to display to the user. |
void |
showDocument(String url,
String frame)
Open the document at the given URL in the given frame. |
| Field Detail |
|---|
static final int MSG_INFO
static final int MSG_WARNING
static final int MSG_ERROR
static final int MSG_FATAL
static final String[] errorLevelNames
| Method Detail |
|---|
void reportError(int level,
String message,
Throwable e)
level - the warning level of the error being reportedmessage - a human readable message describing the errore - the Throwable that caused the error (may be null)String getParameter(String name)
name - the name of the parameter to get
Object getAttribute(String s)
name - the name of the attribute to get
void showDocument(String url,
String frame)
throws IOException
url - the URL of the document to showframe - the name of the frame to populate with the document
IOException - if this context is not running inside a browser or
is unable to display a document
Object evalExternal(String code)
throws Exception
code - the code to execute in the external environment
Exception - if there was an error, or if this context does not
support external evaluation.void addContextListener(IContextListener l)
l - the listener to addvoid removeContextListener(IContextListener l)
l - the listener to remove
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||