public class GuiFrameManager extends java.lang.Object implements PamSettings
The user can move tabs between the various frames and create new frames by right clicking on the tabs themselves.
PamGui
Constructor and Description |
---|
GuiFrameManager(PamController pamController) |
Modifier and Type | Method and Description |
---|---|
void |
addControlledUnit(PamControlledUnit controlledUnit) |
void |
addView(PamViewInterface newView) |
void |
closeExtraFrame(PamGui pamGui)
Closes a PamGui FRame (not the main one)
All tabs are first moved to the main frame (No.
|
void |
destroyModel() |
void |
enableGUIControl(boolean enable) |
void |
getAllFrameParameters()
Goes through all open frames before they start closing
and gets their parameters into the structure
which will be written to the psf file.
|
javax.swing.JFrame |
getFrame(int iFrame)
Get a frame
|
java.util.List<java.lang.Integer> |
getFrameList() |
java.lang.String |
getFrameName(int iFrame)
Get a name for a frame which can be used in their titles
and in menus, etc.
|
java.lang.String |
getMenuFrameName(int iFrame) |
int |
getNumFrames()
Get the total number of frames
|
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
javax.swing.JPopupMenu |
getTabPopupMenu(PamGui pamGui,
int tabIndex) |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
void |
makeFrameList()
Make a list of Gui frames - that is all
PamView's with a frame number > 0 which indicates
they are a GUI frame.
|
void |
notifyModelChanged(int changeType) |
void |
pamStart() |
void |
pamStop() |
void |
removeControlledUnt(PamControlledUnit controlledUnit) |
void |
removeView(PamViewInterface oldView) |
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
showControlledUnit(PamControlledUnit unit) |
void |
sortFrameTitles() |
public GuiFrameManager(PamController pamController)
public java.util.List<java.lang.Integer> getFrameList()
public void makeFrameList()
public int getNumFrames()
public javax.swing.JFrame getFrame(int iFrame)
iFrame
- frame numberpublic void closeExtraFrame(PamGui pamGui)
pamGui
- reference to frame to close.public void getAllFrameParameters()
public javax.swing.JPopupMenu getTabPopupMenu(PamGui pamGui, int tabIndex)
public java.lang.String getMenuFrameName(int iFrame)
public java.lang.String getFrameName(int iFrame)
iFrame
- frame Numberpublic void sortFrameTitles()
public void addControlledUnit(PamControlledUnit controlledUnit)
public void removeControlledUnt(PamControlledUnit controlledUnit)
public void addView(PamViewInterface newView)
public void removeView(PamViewInterface oldView)
public void showControlledUnit(PamControlledUnit unit)
public void pamStart()
public void pamStop()
public void notifyModelChanged(int changeType)
public void destroyModel()
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public void enableGUIControl(boolean enable)