public class FormsControl extends PamControlledUnit
Modifier and Type | Field and Description |
---|---|
static java.util.ArrayList<java.lang.String> |
restrictedTitles |
Constructor and Description |
---|
FormsControl(java.lang.String unitName) |
Modifier and Type | Method and Description |
---|---|
void |
addFormDescription(java.lang.String newFormName) |
boolean |
canClose()
Called before Pamguard shuts down.
|
javax.swing.JMenuItem |
createDetectionMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with PamProcesses
|
javax.swing.JMenuItem |
createDisplayMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with the view
|
void |
displayOptions(java.awt.Frame parentFrame) |
FormDescription |
findFormByOrder(int order)
Find a form which has a particular order value.
|
FormDescription |
findFormDescription(java.lang.String formName)
Find a form description with a given name.
|
FormDescription |
getFormDescription(int iForm)
Get the form description for a specific index.
|
int |
getFormIndex(FormDescription formDescription)
Get a form index from a form description
|
FormsProcess |
getFormsProcess() |
FormsTabPanel |
getFormsTabPanel()
Get the correct type of reference to the forms tab panel.
|
int |
getNumFormDescriptions() |
java.lang.Character |
getOutputTableNameCounterSuffix(FormDescription thisFormDescription) |
PamSidePanel |
getSidePanel()
Gets a reference to a small panel to be displayed along the
left hand edge of the main tab panel.
|
PamTabPanel |
getTabPanel()
Gets a reference to a panel to be added to a view
|
void |
newLoggerform(java.awt.Frame parentFrame) |
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
void |
regenerateForms(java.awt.Window parentFrame)
Delete and recreate all forms / form data, etc.
|
void |
rewriteChangedUDFTables()
Rewrite all UDF tables in forms which have been altered.
|
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addRelatedMenuItems, addXMLParameter, addXMLParameter, addXMLParameter, addXMLParameter, canPlayViewerSound, createFileMenu, createHelpMenu, fillXMLElement, flushDataBlockBuffers, getFrameNumber, getGuiFrame, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineTaskGroup, getPamController, getPamModuleInfo, getPamProcess, getPamView, getShortUnitType, getTabClipCopier, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setupControlledUnit, stopViewerSound, terminalPrint, terminalPrintln, toString
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic int getNumFormDescriptions()
public FormDescription getFormDescription(int iForm)
iForm
- form indexpublic int getFormIndex(FormDescription formDescription)
formDescription
- Form Descriptionspublic FormDescription findFormByOrder(int order)
order
- order (starts from 1 generally)public FormDescription findFormDescription(java.lang.String formName)
formName
- public java.lang.Character getOutputTableNameCounterSuffix(FormDescription thisFormDescription)
public void addFormDescription(java.lang.String newFormName)
public FormsTabPanel getFormsTabPanel()
public PamTabPanel getTabPanel()
PamControlledUnit
getTabPanel
in class PamControlledUnit
PamTabPanel
,
PamSidePanel
public PamSidePanel getSidePanel()
PamControlledUnit
It is possible for a PamControlled unit to have a side panel without having a pamTabPanel.
getSidePanel
in class PamControlledUnit
PamSidePanel
,
PamTabPanel
public FormsProcess getFormsProcess()
public javax.swing.JMenuItem createDetectionMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDetectionMenu
in class PamControlledUnit
parentFrame
- The owner frame of the menuNote that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
public void newLoggerform(java.awt.Frame parentFrame)
public void regenerateForms(java.awt.Window parentFrame)
parentFrame
- public javax.swing.JMenuItem createDisplayMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDisplayMenu
in class PamControlledUnit
Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
public void displayOptions(java.awt.Frame parentFrame)
public boolean canClose()
PamControlledUnit
canClose
in class PamControlledUnit
public void rewriteChangedUDFTables()