|
||||||||||
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 | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--uk.ac.man.bioinf.gui.util.ApplicationFrame
Provides a JFrame with a menu, a tool bar, a mainwindow and a status bar. The class also provides access to resources.
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ApplicationFrame()
|
|
ApplicationFrame(String resourceName)
Create an Application frame with the resources specified. |
Method Summary | |
JButton |
addButton(String labelName)
add a button with the specified text label. |
JButton |
addButton(String labelName,
String iconName)
add a button with the specified text label. |
JButton |
addButton(String labelName,
String iconName,
String tooltipName)
add a button with the specified text label, icon and tooltip. |
JMenu |
addMenu(String resourceName)
add a menu with the specified text label. |
JMenuItem |
addMenuItem(String menuName,
String menuItemName)
create a menu with the specified text label. |
JMenu |
addSubMenu(String menuName,
String menuItemName)
create a menu with the specified text label. |
JToggleButton |
addToggleButton(String labelName)
add a button with the specified text label. |
JToggleButton |
addToggleButton(String labelName,
String iconName)
add a button with the specified text label. |
JToggleButton |
addToggleButton(String labelName,
String iconName,
String tooltipName)
add a button with the specified text label, icon and tooltip. |
JComponent |
getContents()
|
PackageResourceAdapter |
getResourceAdapter()
|
JButton |
removeButton(String labelName)
remove a menu with the specified text label. |
JMenu |
removeMenu(String resourceName)
remove a menu with the specified text label. |
JMenuItem |
removeMenuItem(String menuItemName)
remove a menu item with the specified text label. |
void |
setContents(JComponent c)
|
void |
setMenuEnabled(String menuName,
boolean enabled)
|
void |
setMenuItemEnabled(String menuItemName,
boolean enabled)
|
void |
showInitialSplash()
|
void |
showMessage(String message)
|
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Constructor Detail |
public ApplicationFrame()
public ApplicationFrame(String resourceName)
resourceName
- looks in the package resources.locale.Method Detail |
public JMenu addMenu(String resourceName)
resourceName
- use the text specified in ApplicationFrame.Menu.public JMenu removeMenu(String resourceName)
resourceName
- use the text specified in ApplicationFrame.Menu.public JMenuItem addMenuItem(String menuName, String menuItemName) throws IllegalArgumentException
menuName
- add to the specified menumenuItemName
- use the text specified in ApplicationFrame.MenuItem.IllegalArgumentException
public JMenuItem removeMenuItem(String menuItemName) throws IllegalArgumentException
menuItemName
- use the text specified in ApplicationFrame.MenuItem.IllegalArgumentException
public JMenu addSubMenu(String menuName, String menuItemName) throws IllegalArgumentException
menuName
- add to the specified menu
IllegalArgumentException
public void setMenuEnabled(String menuName, boolean enabled) throws IllegalArgumentException
IllegalArgumentException
public void setMenuItemEnabled(String menuItemName, boolean enabled) throws IllegalArgumentException
IllegalArgumentException
public JButton addButton(String labelName) throws IllegalArgumentException
labelName
- use the text specified in ApplicationFrame.Button.labelIllegalArgumentException
public JButton addButton(String labelName, String iconName) throws IllegalArgumentException
labelName
- use the text specified in message.iconName
- use the image specified in image.IllegalArgumentException
public JButton addButton(String labelName, String iconName, String tooltipName) throws IllegalArgumentException
labelName
- use the text specified in message.iconName
- use the image specified in image.tooltipName
- use the text specified in tooltip.IllegalArgumentException
public JToggleButton addToggleButton(String labelName) throws IllegalArgumentException
labelName
- use the text specified in ApplicationFrame.Button.labelIllegalArgumentException
public JToggleButton addToggleButton(String labelName, String iconName) throws IllegalArgumentException
labelName
- use the text specified in message.iconName
- use the image specified in image.IllegalArgumentException
public JToggleButton addToggleButton(String labelName, String iconName, String tooltipName) throws IllegalArgumentException
labelName
- use the text specified in message.iconName
- use the image specified in image.tooltipName
- use the text specified in tooltip.IllegalArgumentException
public JButton removeButton(String labelName) throws IllegalArgumentException
IllegalArgumentException
public void showInitialSplash()
public PackageResourceAdapter getResourceAdapter()
public void setContents(JComponent c)
public JComponent getContents()
public void showMessage(String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |