public class PamGui extends PamView implements java.awt.event.WindowListener, PamSettings
Simple PamGui implementing a tab control.
Constructor and Description |
---|
PamGui(PamControllerInterface pamControllerInterface,
PamModelInterface pamModelInterface,
int frameNumber) |
Modifier and Type | Method and Description |
---|---|
void |
addControlledUnit(PamControlledUnit unit) |
void |
enableGUIControl(boolean enable) |
PamControlledUnit |
findControlledUnit(int tabNo) |
PamTabbedPane |
getMainTab() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
java.lang.String |
getViewName() |
static boolean |
isSomethingShowing()
Static flag to say that at least one GUI has opened.
|
javax.swing.JMenuBar |
makeGuiMenu() |
void |
modelChanged(int changeType) |
static void |
openURL(java.lang.String urlString) |
void |
pamEnded() |
void |
pamStarted() |
void |
removeControlledUnit(PamControlledUnit unit) |
void |
renameControlledUnit(PamControlledUnit unit) |
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
setTitle(java.lang.String title) |
void |
showControlledUnit(PamControlledUnit pamControlledUnit)
tells the view to show the main display panel of a pamControlledUnit
|
void |
showDialog(java.lang.String s1,
java.lang.String s2,
int dialogType) |
void |
ShowTabSpecificSettings()
Set up specific settings for the tab - get's called quite a lot,
including whenever modules are added or removed in order to
make sure that menus contain the correct options for
existing modules.
|
void |
windowActivated(java.awt.event.WindowEvent e)
Implementation of WindowListener
|
void |
windowClosed(java.awt.event.WindowEvent e) |
void |
windowClosing(java.awt.event.WindowEvent e) |
void |
windowDeactivated(java.awt.event.WindowEvent e) |
void |
windowDeiconified(java.awt.event.WindowEvent e) |
void |
windowIconified(java.awt.event.WindowEvent e) |
void |
windowOpened(java.awt.event.WindowEvent e) |
getFrameNumber, getGuiFrame, setFrameNumber
public PamGui(PamControllerInterface pamControllerInterface, PamModelInterface pamModelInterface, int frameNumber)
public static boolean isSomethingShowing()
public void addControlledUnit(PamControlledUnit unit)
addControlledUnit
in interface PamViewInterface
public void setTitle(java.lang.String title)
setTitle
in interface PamViewInterface
public void removeControlledUnit(PamControlledUnit unit)
removeControlledUnit
in interface PamViewInterface
public void renameControlledUnit(PamControlledUnit unit)
renameControlledUnit
in class PamView
public PamControlledUnit findControlledUnit(int tabNo)
public void ShowTabSpecificSettings()
public javax.swing.JMenuBar makeGuiMenu()
public static void openURL(java.lang.String urlString)
public void pamEnded()
pamEnded
in interface PamViewInterface
public void pamStarted()
pamStarted
in interface PamViewInterface
public void modelChanged(int changeType)
modelChanged
in interface PamViewInterface
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void showDialog(java.lang.String s1, java.lang.String s2, int dialogType)
public void showControlledUnit(PamControlledUnit pamControlledUnit)
PamView
showControlledUnit
in interface PamViewInterface
showControlledUnit
in class PamView
public java.lang.String getViewName()
getViewName
in class PamView
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 PamTabbedPane getMainTab()
public void enableGUIControl(boolean enable)
enableGUIControl
in interface PamViewInterface