|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.application.AbstractBean
org.jdesktop.application.Application
org.jdesktop.application.SingleFrameApplication
org.openpermis.editor.policy.Application
public class Application
The singleton policy editor application instance.
In addition to the usual Application
responsibilities
the policy editor application instance manages the persistent application state.
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. |
File |
chooseFile(int type,
boolean addToRecentFiles,
PolicyFileFilter filter)
Opens the file chooser and returns the user selection. |
ApplicationState |
getApplicationState()
Returns the application state. |
static Application |
getInstance()
Returns the singleton policy editor application instance. |
protected void |
initialize(String[] args)
|
void |
quit()
Action wrapper for the application exit. |
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 |
---|
public Application()
Method Detail |
---|
public static Application getInstance()
@Action public void about()
@Action public void quit()
public File chooseFile(int type, boolean addToRecentFiles, PolicyFileFilter filter)
The file chooser is displayed as dialog with the application frame as parent and will use the specified file chooser type.
type
- the file chooser type, either JFileChooser.OPEN_DIALOG
or
JFileChooser.SAVE_DIALOG
.addToRecentFiles
- wether to add current file to the recent files list.filter
- file filter, possibly null.
null
if the user cancelled.public ApplicationState getApplicationState()
The state is lazily loaded or initialized on first use.
protected void initialize(String[] args)
initialize
in class org.jdesktop.application.Application
protected void shutdown()
shutdown
in class org.jdesktop.application.SingleFrameApplication
protected void startup()
startup
in class org.jdesktop.application.Application
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:11
Copyright (c) 2002-2007 Ergon Informatik AG