|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.arch4j.ui.JApplication
Field Summary | |
protected CommandManager |
commandMgr
|
protected JPanel |
contentPanel
|
protected Component |
menubar
|
protected Performer |
performer
|
protected ResourceManager |
resourceMgr
|
protected AbstractSplashScreen |
splashScreen
|
protected Component |
statusbar
|
protected JToolBar |
toolbar
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JApplication()
Constructor. |
|
JApplication(AbstractSplashScreen aSplashScreen)
Constructor. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Listener callback method. |
void |
addAction(Action anAction)
Add an Action to the command manager. |
static void |
centerWindow(JFrame aFrame)
Center the screen on the desktop. |
void |
disableAction(String action)
Disable an action in the command manager. |
void |
enableAction(String action)
Enable an action in the command manager. |
void |
exitApplication()
Cause the application to terminate. |
ImageIcon |
getIcon()
Get the icon that is displayed in the Window titlebar from the command manager. |
JMenuBar |
getMenubar()
Gets the menubar for the application. |
JPopupMenu |
getPopupMenu(String name)
Get a named popup menu from the command manager. |
protected AbstractSplashScreen |
getSplashScreen()
Gets the splash screen. |
String |
getTitle()
Get the title of the application from the command manager. |
String |
getTitleBarTitle()
Get the title of the application from the command manager. |
JToolBar |
getToolbar()
Gets the toolbar for the application. |
protected void |
initialize()
Initialize the JApplication. |
void |
initializeButtonState()
Initialize the buttons to be enable/disable buttons when the interface comes up. |
protected void |
initializeCommandManager()
Create an instance of the CommandManager. |
protected void |
initializeCommands()
The command manager automatically creates Actions for menu items and toolbar buttons. |
protected void |
initializeContentPanel()
Initialize the contentPanel. |
protected void |
initializeLookAndFeel()
Initialize the Windows look & feel. |
protected void |
initializeResourceManager()
Create an instance of the ResourceManager. |
static void |
main(String[] args)
Main method for JApplication. |
void |
setDefaultCursor()
Set the wait cursor. |
void |
setWaitCursor()
Set the wait cursor. |
void |
setWindowTitle()
Find the top level frame and set its title.. |
protected void |
showStartupStatus(String aStatus)
Display the status string in the splash screen. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected ResourceManager resourceMgr
protected CommandManager commandMgr
protected Performer performer
protected Component menubar
protected JToolBar toolbar
protected Component statusbar
protected JPanel contentPanel
protected AbstractSplashScreen splashScreen
Constructor Detail |
public JApplication()
public JApplication(AbstractSplashScreen aSplashScreen)
Method Detail |
public static void centerWindow(JFrame aFrame)
public void actionPerformed(ActionEvent e)
JApplication implements the ActionListener interface so it can a listener for a varity of Components.
The default action in the use the Performer to perform a method within the JApplication of subclass thereof.
actionPerformed
in interface ActionListener
public void addAction(Action anAction)
public void disableAction(String action)
public void enableAction(String action)
public void exitApplication()
exitApplication
in interface CloseableApplication
public ImageIcon getIcon()
public JMenuBar getMenubar()
public JPopupMenu getPopupMenu(String name)
protected AbstractSplashScreen getSplashScreen()
public String getTitle()
public String getTitleBarTitle()
public JToolBar getToolbar()
protected void initialize()
public void initializeButtonState()
protected void initializeCommandManager()
protected void initializeCommands()
protected void initializeContentPanel()
protected void initializeLookAndFeel()
protected void initializeResourceManager()
public static void main(String[] args)
public void setDefaultCursor()
public void setWaitCursor()
public void setWindowTitle()
protected void showStartupStatus(String aStatus)
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |