|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectComposite
org.formaria.swt.app.AriaProxy
public class AriaProxy
The AriaProxy acts as a context for a Aria application embedded within another application, such as a Swing application. The proxy does not setup a frame or window as with other startup objects and instead it expects to be embedded within a container such as a JPanel. It is the launch application's reposnsibility to size and position the proxy as needed.
Copyright (c) Formaria Ltd., 2008. See license.txt for more details
| Field Summary | |
|---|---|
protected ApplicationContext |
applicationContext
|
protected Shell |
appWindow
The application window |
protected boolean |
bUseWindow
true if a popup window is in use |
protected Display |
display
The Application frame |
protected java.awt.Container |
pageHolder
The panel holding the page content |
| Constructor Summary | |
|---|---|
AriaProxy(java.lang.String[] args,
Shell f,
Display d)
Create a new aplication. |
|
| 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. |
java.lang.Object |
getContentPaneEx()
Get the content pane used by Aria - the container in which pages are displayed |
java.net.URL |
getDocumentBase()
Gets the URL of the document in which this applet is embedded. |
Display |
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. |
void |
refresh()
Validate and repaint the display |
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 application title. |
void |
setIcon(java.awt.Image icon)
Set the application icon |
void |
setMenuBar(MenuBar mb)
Set the menubar. |
void |
setSize(java.awt.Dimension size)
Set the size of this application/applet |
void |
setupFrameset(java.util.Hashtable params)
Setup frameset. |
void |
setupWindow(ApplicationContext context,
Project currentProject,
int clientWidth,
int clientHeight)
Setup the main application window |
void |
validate()
Validates this container and all of its subcomponents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Shell appWindow
protected Display display
protected boolean bUseWindow
protected ApplicationContext applicationContext
protected java.awt.Container pageHolder
| Constructor Detail |
|---|
public AriaProxy(java.lang.String[] args,
Shell f,
Display d)
| Method Detail |
|---|
public 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)
StartupObject
setAppTitle in interface StartupObjectpublic void setIcon(java.awt.Image icon)
setIcon in interface StartupObjectimg - the image name
public void setupWindow(ApplicationContext context,
Project currentProject,
int clientWidth,
int clientHeight)
setupWindow in interface StartupObjectcontext - the application context for the new applicationcurrentProject - the current projectclientWidth - the desired width for the new windowclientHeight - the desired height for the new windowpublic void init()
public Display getFrame()
public void setMenuBar(MenuBar mb)
mb - the new menu barpublic java.lang.Object getApplicationMenuBar()
getApplicationMenuBar in interface StartupObjectpublic void setApplicationMenuBar(java.lang.Object mb)
setApplicationMenuBar in interface StartupObjectmb - the menubarpublic java.net.URL getDocumentBase()
Gets the URL of the document in which this applet is embedded.
Returns null in this instance
getDocumentBase in interface StartupObjectURL of the document that contains this
applet.Applet.getCodeBase()public java.lang.String getParameter(java.lang.String param)
Returns null in this instance
getParameter in interface StartupObjectparam - the name of the parameterpublic void restoreState(XmlElement stateElement)
restoreState in interface PersistentStatepublic void saveState(XmlElement stateElement)
saveState in interface PersistentStatethe - elements to hold the page statepublic void setSize(java.awt.Dimension size)
StartupObject
setSize in interface StartupObjectsize - the requested sizepublic void validate()
StartupObject
validate in interface StartupObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||