|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.plugin.AbstractPlugin
org.openbp.jaspira.gui.plugin.ApplicationBase
public abstract class ApplicationBase
The application base is the base class for any Jaspira application main class.
Derive any main application class from this one.
The constructor of this class will register the application base as a regular plugin.
In order to perform initialization routines and loader plugins, override the
preInstallApplication() and postInstallApplication() template methods.
The application base also keeps track of the frames (JaspiraPageContainer) of the application.
| Nested Class Summary | |
|---|---|
class |
ApplicationBase.CloseEvents
Event module. |
class |
ApplicationBase.MenuInteractionEvents
Interaction module that handles activations of the application-related menu items. |
class |
ApplicationBase.PageInteractionEvents
Interaction module that creates the popup menu for the Jaspira page buttons on the left of the main window. |
| Nested classes/interfaces inherited from class org.openbp.jaspira.plugin.AbstractPlugin |
|---|
AbstractPlugin.StandardPluginEvents |
| Field Summary |
|---|
| Fields inherited from class org.openbp.jaspira.plugin.AbstractPlugin |
|---|
PROPERTY_CONDITION, PROPERTY_DESCRIPTION, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_SEQUENCE, PROPERTY_TITLE, PROPERTY_VENDOR, PROPERTY_VERSION |
| Fields inherited from interface org.openbp.jaspira.plugin.Plugin |
|---|
ID_DELIMETER, LEVEL_APPLICATION, LEVEL_FRAME, LEVEL_PAGE, LEVEL_PLUGIN |
| Constructor Summary | |
|---|---|
ApplicationBase()
Constructor. |
|
| Method Summary | |
|---|---|
JaspiraPageContainer |
addFrame(JaspiraPage page)
Adds the given page as new maximized frame to the application using the current graphics configuration. |
JaspiraPageContainer |
addFrame(JaspiraPage page,
java.awt.Dimension d,
int state)
Adds the given page as new frame to the application using the current graphics configuration. |
JaspiraPageContainer |
addFrame(JaspiraPage page,
java.awt.Dimension d,
int state,
java.awt.GraphicsConfiguration gc)
Adds the given page as new frame to the application. |
JaspiraPage |
addPage(JaspiraPage page)
Adds a new page to the active frame. |
void |
buildMenus()
Updates the menus of the frames of the application. |
protected java.lang.Class |
getAboutBoxClass()
Returns the class of the about box plugin. |
JaspiraPageContainer |
getActiveFrame()
Returns the active frame of the application. |
VisiblePlugin |
getActivePlugin()
Gets the active plugin or null. |
int |
getFrameCount()
Returns the numbers of frames of this application. |
static ApplicationBase |
getInstance()
Returns the singleton instance of the application base. |
JaspiraPage |
getPage()
Returns the page level parent plugin of this plugin. |
boolean |
hasFrameForGraphicsConfiguration(java.awt.GraphicsConfiguration gc)
Checks if there is already a frame for the given graphics configuration. |
static boolean |
hasInstance()
Checks if an instance of the application base has been set. |
protected void |
installLookAndFeel()
Installs the Look and feel of this application. |
void |
installPlugin()
Installs the plugin and all its modules. |
static boolean |
isInitialized()
Checks the initialization status of the application. |
protected void |
postInstallApplication()
Template method that is called after the actual installation of the application base plugin is performed. |
protected void |
preInstallApplication()
Template method that is called before the actual installation of the application base plugin is performed. |
void |
showPage(JaspiraPage page)
Shows the given page. |
void |
showStatusText(java.lang.String text)
Shows a message in the status bar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationBase()
AbstractPlugin.initializePlugin() method, which may perform further
plugin loading etc.
| Method Detail |
|---|
public static ApplicationBase getInstance()
PluginMgr
The constructor, which will be invoked by the application loader,
will set the singleton instance. If the construction has not been
performed, this method will throw a RuntimeException.
public static boolean hasInstance()
getInstance() throwing an exception
in cases where no application base object exists. It is e. g. used by the OptionMgr
which may be used in command line applications as well.
getInstance() can be called safely.
false No application object has been instantiated yet.public static final boolean isInitialized()
public void installPlugin()
installPlugin in interface PlugininstallPlugin in class AbstractPluginprotected void preInstallApplication()
protected void postInstallApplication()
protected void installLookAndFeel()
protected java.lang.Class getAboutBoxClass()
public JaspiraPageContainer addFrame(JaspiraPage page,
java.awt.Dimension d,
int state,
java.awt.GraphicsConfiguration gc)
page - Page to addd - Dimension of the new framestate - Initial window state (regular, maximized etc.)gc - Graphics configuration to use for the new frame
public JaspiraPageContainer addFrame(JaspiraPage page,
java.awt.Dimension d,
int state)
page - Page to addd - Dimension of the new framestate - Initial window state (regular, maximized etc.)
public JaspiraPageContainer addFrame(JaspiraPage page)
page - Page to add
public int getFrameCount()
public JaspiraPage addPage(JaspiraPage page)
page - Page to add
public void showPage(JaspiraPage page)
page - Page to showpublic boolean hasFrameForGraphicsConfiguration(java.awt.GraphicsConfiguration gc)
public JaspiraPageContainer getActiveFrame()
public VisiblePlugin getActivePlugin()
public void buildMenus()
public void showStatusText(java.lang.String text)
StatusBarTextEvent that can be caught by the status bar plugin.
text - Text to displaypublic JaspiraPage getPage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||