org.openpermis.editor.policy
Class Application

java.lang.Object
  extended by org.jdesktop.application.AbstractBean
      extended by org.jdesktop.application.Application
          extended by org.jdesktop.application.SingleFrameApplication
              extended by org.openpermis.editor.policy.Application

public class Application
extends org.jdesktop.application.SingleFrameApplication

The singleton policy editor application instance.

In addition to the usual Application responsibilities the policy editor application instance manages the persistent application state.

Since:
0.1.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.application.Application
org.jdesktop.application.Application.ExitListener
 
Constructor Summary
Application()
           
 
Method Summary
 void about()
          Displays the application about box.
 void fatalError(String message, Throwable throwable)
          Displays a fatal error message.
 ApplicationContext getApplicationContext()
          Returns the application context of this application.
static Application getInstance()
          Returns the singleton policy editor application instance.
protected  void initialize(String[] args)
           
 void preferences()
          Action to display the preferences dialog.
 void quit()
          Action wrapper for the application exit.
 Configuration readConfiguration()
          Reads the configuration of this application.
protected  void shutdown()
           
protected  void startup()
           
 
Methods inherited from class org.jdesktop.application.SingleFrameApplication
configureWindow, getMainFrame, getMainView, setMainFrame, show, show, show, show
 
Methods inherited from class org.jdesktop.application.Application
addExitListener, end, exit, exit, getContext, getExitListeners, getInstance, hide, launch, quit, ready, removeExitListener
 
Methods inherited from class org.jdesktop.application.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application()
Method Detail

getInstance

public static Application getInstance()
Returns the singleton policy editor application instance.

Returns:
the singleton policy editor application instance.
Since:
0.1.0

about

@Action
public void about()
Displays the application about box.

Since:
0.1.0

fatalError

public void fatalError(String message,
                       Throwable throwable)
Displays a fatal error message.

Since:
0.9.0

preferences

@Action
public void preferences()
Action to display the preferences dialog.

Since:
0.9.0

quit

@Action
public void quit()
Action wrapper for the application exit.

Since:
0.1.0

getApplicationContext

public ApplicationContext getApplicationContext()
Returns the application context of this application.

Returns:
the application context of this application.
Since:
0.9.0

readConfiguration

public final Configuration readConfiguration()
                                      throws ConfigurationException
Reads the configuration of this application.

Configures the contained component factory with default state for the application.

Returns:
the configuration of this application.
Throws:
ConfigurationException - passed on.
Since:
0.9.0

initialize

protected void initialize(String[] args)
Overrides:
initialize in class org.jdesktop.application.Application
Since:
0.1.0

shutdown

protected void shutdown()
Overrides:
shutdown in class org.jdesktop.application.SingleFrameApplication
Since:
0.1.0

startup

protected void startup()
Specified by:
startup in class org.jdesktop.application.Application
Since:
0.1.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG