|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationFrame
An application frame is an interface to extend the functionality of JFrame.
Date: Apr 5, 2002
Field Summary | |
---|---|
static int |
BOTTOM
|
static int |
LEFT
|
static int |
RIGHT
|
static int |
TOP
|
Method Summary | |
---|---|
void |
addFrameListener(ApplicationFrameListener frameListener)
|
void |
addJMenu(javax.swing.JMenu menuToAdd)
Adds a JMenu to the menu bar |
void |
addToolBar(java.lang.String name,
javax.swing.JToolBar toolBar)
|
void |
addToToolBar(javax.swing.Action actionToAdd)
Adds an action to the default tool bar |
void |
addToToolBar(java.lang.String name,
javax.swing.Action actionToAdd)
Adds an action to the named tool bar |
void |
addView(javax.swing.JPanel view,
java.lang.String title)
Update the GUI view on the data stored in File. |
void |
addViewChangeListener(ViewChangeListener viewChangeListener)
Add a view change listener to this frame each time the view changes an event is fired calling the method fireViewChanged . |
void |
center()
Centers the frame on screen |
void |
destroy()
|
Application |
getApplication()
|
javax.swing.JToolBar |
getDefaultToolBar()
|
javax.swing.JFrame |
getFrame()
|
javax.swing.JMenuBar |
getJMenuBar()
|
javax.swing.JLabel |
getStatusBarLabel()
|
boolean |
hasJMenuBar()
|
void |
init()
|
boolean |
isPersistent()
|
void |
removeFrameListener(ApplicationFrameListener frameListener)
|
void |
removeToolBar(java.lang.String name)
|
void |
removeView(javax.swing.JPanel view)
Remove a view |
void |
setJMenuBar(javax.swing.JMenuBar menuBar)
|
void |
setPersistent(boolean persistent)
|
void |
setProgress(java.lang.String label,
float percentage)
TODO: Should this be here or could we combine with setStatus(String, boolean) }?? |
void |
setStatus(java.lang.String status,
boolean isSticky)
Sets the status message at the bottom of the GUI if the first argument is null it sets the staus message to "Ready" and ignores the second arg. |
void |
setTitle(java.lang.String title)
|
Field Detail |
---|
static final int TOP
static final int LEFT
static final int RIGHT
static final int BOTTOM
Method Detail |
---|
Application getApplication()
void init() throws InitialisationException
InitialisationException
void destroy()
javax.swing.JFrame getFrame()
javax.swing.JToolBar getDefaultToolBar()
void addToolBar(java.lang.String name, javax.swing.JToolBar toolBar)
name
- toolBar
- void removeToolBar(java.lang.String name)
name
- void addToToolBar(javax.swing.Action actionToAdd)
default
tool bar
actionToAdd
- - The action to put on the tool barvoid addToToolBar(java.lang.String name, javax.swing.Action actionToAdd)
name
- - The name of the toolbar to add toactionToAdd
- - The action to put on the tool baraddToolBar(java.lang.String, javax.swing.JToolBar)
javax.swing.JLabel getStatusBarLabel()
javax.swing.JMenuBar getJMenuBar()
void setJMenuBar(javax.swing.JMenuBar menuBar)
menuBar
- boolean hasJMenuBar()
void addView(javax.swing.JPanel view, java.lang.String title)
view
- - A panel that is a view for the applicationvoid removeView(javax.swing.JPanel view)
view
- - The view to removevoid addViewChangeListener(ViewChangeListener viewChangeListener)
fireViewChanged
.
viewChangeListener
- void setStatus(java.lang.String status, boolean isSticky)
status
- - The String to displayisSticky
- - Should the message be permanent or stay for 3 seconds
then govoid setProgress(java.lang.String label, float percentage)
setStatus(String, boolean)
}??
label
- - String to display on the progress barpercentage
- - Should be in the range 0 - 100 inclusivevoid center()
boolean isPersistent()
void setPersistent(boolean persistent)
void addFrameListener(ApplicationFrameListener frameListener)
frameListener
- void removeFrameListener(ApplicationFrameListener frameListener)
frameListener
- void addJMenu(javax.swing.JMenu menuToAdd)
menuToAdd
- - The menu to addvoid setTitle(java.lang.String title)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |