|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamView.GuiFrameManager
public class GuiFrameManager
The GuiFrameManager manages multiple PamGui frames, each of which may contain multiple tabs of module information and a side panel.
The user can move tabs between the various frames and create new frames by right clicking on the tabs themselves.
PamGui| Nested Class Summary | |
|---|---|
(package private) class |
GuiFrameManager.TabMover
|
| Field Summary | |
|---|---|
private java.util.List<java.lang.Integer> |
frameList
|
private int |
maxFrameNumber
|
private PamController |
pamController
|
private java.util.ArrayList<PamViewInterface> |
pamViewList
|
| Constructor Summary | |
|---|---|
GuiFrameManager(PamController pamController)
|
|
| Method Summary | |
|---|---|
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. |
private PamViewInterface |
createFrame(int frameNumber)
See if a frame exists in the current list. |
void |
destroyModel()
|
void |
enableGUIControl(boolean enable)
|
private PamViewInterface |
findFrame(int iFrame)
|
private int |
firstFreeFrameNumber()
Find the first free frame number that's not in the frame list |
private boolean |
frameExists(int iFrame)
See if a real frame exists. |
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. |
private java.lang.String |
getFrameTitle(int frameNo,
int nFrames)
|
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()
|
private boolean |
haveFrameInList(int iFrame)
|
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. |
private void |
moveUnit(PamControlledUnit pcu,
int currentFrame,
int destinationFrame)
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private PamController pamController
private java.util.List<java.lang.Integer> frameList
private java.util.ArrayList<PamViewInterface> pamViewList
private int maxFrameNumber
| Constructor Detail |
|---|
public GuiFrameManager(PamController pamController)
| Method Detail |
|---|
public java.util.List<java.lang.Integer> getFrameList()
public void makeFrameList()
public int getNumFrames()
public javax.swing.JFrame getFrame(int iFrame)
iFrame - frame number
private PamViewInterface createFrame(int frameNumber)
frameNumber - Frame Numberpublic void closeExtraFrame(PamGui pamGui)
pamGui - reference to frame to close.public void getAllFrameParameters()
private boolean frameExists(int iFrame)
iFrame -
private int firstFreeFrameNumber()
private PamViewInterface findFrame(int iFrame)
private boolean haveFrameInList(int iFrame)
private void moveUnit(PamControlledUnit pcu,
int currentFrame,
int destinationFrame)
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 Number
public void sortFrameTitles()
private java.lang.String getFrameTitle(int frameNo,
int nFrames)
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 PamSettingspublic long getSettingsVersion()
getSettingsVersion in interface PamSettingspublic java.lang.String getUnitName()
getUnitName in interface PamSettingspublic java.lang.String getUnitType()
getUnitType in interface PamSettingspublic boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings in interface PamSettingspublic void enableGUIControl(boolean enable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||