|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectComposite
org.formaria.swt.Applet
public class Applet
This class is constructed with a window or frame and can be part of an applet or an application. The class acts as the main entry point to an Aria application and provides some of the infrastructure needed to support the application.
The applet can provide support for a frameset or a single page. Page display functions are also supported to allow the application to display more than a single page or change the page that is displayed.
By choosing either the AWT or Swing version of the Applet you choose to have either an AWT or a Swing application/applet. In general once this choice has been made you should not mix toolkits.
Copyright (c) Formaria Ltd.,
License: see license.txt
| Field Summary | |
|---|---|
protected ApplicationContext |
applicationContext
|
protected Shell |
clientShell
|
protected Display |
display
|
| Constructor Summary | |
|---|---|
Applet()
A default constructor. |
|
Applet(java.lang.String[] args,
Shell f,
Display d)
Create a new application. |
|
| Method Summary | |
|---|---|
java.lang.Object |
displayDecoration(PageSupport page,
java.lang.String constraint)
Display a window decoration, for example a toolbar |
java.lang.Object |
getApplicationMenuBar()
Get the menubar, setting it up if it is not already added to the application frame |
java.lang.Object |
getContentPaneEx()
Get the panel which has the content |
java.net.URL |
getDocumentBase()
Gets of the document |
java.lang.Object |
getFrame()
Gets the Frame containing the applet. |
java.lang.String |
getParameter(java.lang.String param)
Get a startup parameter |
java.lang.Object |
getParentObject()
Get the parent object |
java.lang.String |
getWidgetClassPackage()
Get the package name for the default widget set |
void |
init()
Invoked when used as an applet. |
static void |
main(java.lang.String[] args)
main method to be invoked as an application. |
void |
refresh()
Refresh the parent shell |
void |
restoreState(XmlElement stateElement)
Restore the application state |
void |
restoreViews()
Restore the normal page views, as in the case of the docking layout where panels may be zoomed or minimized. |
void |
saveState(XmlElement stateElement)
Save the application state |
void |
setApplicationMenuBar(java.lang.Object mb)
Set the menubar |
void |
setAppTitle(java.lang.String title)
Set the title to the parent shell |
void |
setIcon(java.awt.Image icon)
Set the icon to the parent shell |
void |
setSize(java.awt.Dimension size)
Sets the size to the shell |
void |
setupFrameset(java.util.Hashtable params)
Setup frameset. |
void |
setupWindow(ApplicationContext context,
Project currentProject,
int clientWidth,
int clientHeight)
Setup the windowing. |
void |
validate()
Validates the Applet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Shell clientShell
protected Display display
protected ApplicationContext applicationContext
| Constructor Detail |
|---|
public Applet()
public Applet(java.lang.String[] args,
Shell f,
Display d)
args - the application command-line argumentsf - the parent shelld - the parent display| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - the command line argumentspublic java.lang.Object getParentObject()
getParentObject in interface StartupObjectpublic java.lang.String getWidgetClassPackage()
getWidgetClassPackage in interface StartupObjectpublic void setupFrameset(java.util.Hashtable params)
setupFrameset in interface StartupObjectparams - the framset parameters if any
public java.lang.Object displayDecoration(PageSupport page,
java.lang.String constraint)
displayDecoration in interface StartupObjectpage - the new pageconstraint - a value controlling how and where the decoration is displayed,
this value is application type specific
public void refresh()
refresh in interface StartupObjectpublic void restoreViews()
Restore the normal page views, as in the case of the docking layout where panels may be zoomed or minimized. The method is called prior to the display of a new page.
In this context the method has no effect.
restoreViews in interface StartupObjectpublic java.lang.Object getContentPaneEx()
getContentPaneEx in interface StartupObjectpublic void setAppTitle(java.lang.String title)
setAppTitle in interface StartupObjectpublic void setIcon(java.awt.Image icon)
setIcon in interface StartupObjecticon - the image name
public void setupWindow(ApplicationContext context,
Project currentProject,
int clientWidth,
int clientHeight)
setupWindow in interface StartupObjectcontext - the owner application contextcurrentProject - the owner projectclientWidth - the desired width of the applicationclientHeight - the desired height of the applicationpublic void init()
public java.lang.Object getFrame()
public void validate()
validate in interface StartupObjectpublic void setSize(java.awt.Dimension size)
setSize in interface StartupObjectsize - size of the shellpublic java.net.URL getDocumentBase()
getDocumentBase in interface StartupObjectURL of the document that contains this
applet.Applet.getCodeBase()public java.lang.String getParameter(java.lang.String param)
getParameter in interface StartupObjectparam - the name of the parameterpublic java.lang.Object getApplicationMenuBar()
getApplicationMenuBar in interface StartupObjectpublic void setApplicationMenuBar(java.lang.Object mb)
setApplicationMenuBar in interface StartupObjectmb - the menubarpublic void restoreState(XmlElement stateElement)
restoreState in interface PersistentStatepublic void saveState(XmlElement stateElement)
saveState in interface PersistentStatethe - elements to hold the page state
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||