06 History of changes
Designer
New lotus.domino class extends applet functions (R5.0.1)
Starting in Release 5.0.1, the class NotesAppletContext has been added to the lotus.domino package. Applets that extend AppletBase may get the NotesAppletContext to determine the source of the applet. Applets may use this class to write applets that work in the Notes Client and in a Web Browser.
The new operation on AppletBase and JAppletBase is:
NotesAppletContext getContext(Session s)
returns the NotesAppletContext
The properties on NotesAppletContext are:
getServer()
returns the String name of the server where the applet was downloaded from
getDatabase()
returns the Database object of the database
getDocument()
returns the Document object the applet lives in if it lives in a document. Returns null if applet does not exist in a document (e.g. exists on a Page)
Example:
public void notesAppletStart()
{
try {
NotesAppletContext ap = getContext(session);
System.out.println("Server: " + ap.getServer());
System.out.println("Db : " + ap.getDatabase().getFileName());
}
}