|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.PanelMaker
The PanelMaker
makes all of the panels for the GUI
.
Any selectable/deselected components, such as statistic check boxes, are stored
in OptionsStorage
. All panels must have a unique name.
Constructor Summary | |
PanelMaker(GUI gui)
Constructor associates the given gui with this PanelMaker . |
Method Summary | |
javax.swing.JPanel |
getPanel(java.lang.String panelName)
Returns the panel with the given panelName . |
java.awt.Component |
makePanel(java.lang.String panelName)
Makes the panel for the given panelName . |
void |
setPanel(java.lang.String panelName,
javax.swing.JPanel panel)
Puts the given panel with the given panelName
into the HashMap of made panels. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PanelMaker(GUI gui)
gui
with this PanelMaker
.
Method Detail |
public javax.swing.JPanel getPanel(java.lang.String panelName)
panelName
.
panelName
- the name of the panel that would like to be retrieved.
panelName
.
Returns null
if no panel exists with the given panelName
.public void setPanel(java.lang.String panelName, javax.swing.JPanel panel)
panel
with the given panelName
into the HashMap
of made panels.
panelName
- the name of the panel. Must be a unique identifier.panel
- the panel to be placed in the HashMap
of made panelspublic java.awt.Component makePanel(java.lang.String panelName)
panelName
.
If the panel has previously been made, then the panel is
retrieved from panel storage and returned.
panelName
- the name of the panel to be made
JPanel
associated with the given panelName
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |