|
WIDAR Classes | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.nrao.widar.gui.widget.BlankPanel
ca.nrc.widar.mccc.crmGui.CrmGuiTab
public class CrmGuiTab
WIDAR/EVLA - CRM GUI: CrmGuiTab Class
This class extends the BlankPanel, and acts as a super class for defining tabs that appear on the CrmGUI front panel.
Copyright: National Research Council of Canada and Associated Universities Inc., 2010, 2011, 2012
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Nested Class Summary | |
---|---|
class |
CrmGuiTab.ColumnHeaderListener
A custom Column Header Listener class that listens for mouse action on the column header elements of the active process table |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected javax.swing.JScrollPane |
activeScroll
|
protected javax.swing.JButton |
analyzeAllButton
|
static java.lang.String |
CLASSNAME
|
protected javax.swing.JButton |
clearAllButton
|
protected javax.swing.JButton |
clearGoodButton
|
protected BlankPanel |
controlPanel
|
protected javax.xml.bind.Marshaller |
crmM
|
protected ca.nrc.widar.jaxb.crm.ObjectFactory |
crmOF
|
protected javax.xml.bind.Unmarshaller |
crmU
|
protected boolean |
enabled
|
protected javax.swing.JButton |
executeButton
|
protected javax.swing.JButton |
haltActiveButton
|
protected javax.swing.JButton |
haltAllButton
|
protected BlankPanel |
indicatorPanel
|
protected int |
indWidth
|
protected javax.swing.table.JTableHeader |
processHeader
|
protected CrmGuiDiagTableModel |
processModel
|
protected CrmGuiTable |
processTable
|
protected int |
tabType
|
protected java.lang.String |
title
|
Fields inherited from class edu.nrao.widar.gui.widget.BlankPanel |
---|
bigLabelFont, defaultFont, fieldFont, LABEL_POS_BOTTOM, LABEL_POS_LEFT, LABEL_POS_RIGHT, LABEL_POS_TOP |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CrmGuiTab(java.lang.String value,
int width,
int height)
Constructor for the CrmGuiTab class |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Receives an ActionEvent, determines the source and performs instructions accordingly. |
void |
addActionListener(java.awt.event.ActionListener listener)
Adds a listener to the action listener list within this class. |
void |
addDiagnostic(ca.nrc.widar.jaxb.crm.Diagnostic diagXml)
Calls a CrmGuiDiagTableModel method which adds a Diagnostic XML object to the current tab active processes table |
void |
dataIsReady(DataReadyEvent event)
The DataReadyEvent handler for this tab |
protected void |
fireActionEvent(java.awt.event.ActionEvent event)
Generates an action event for each class listed in the listener list, and calls the actionPerformed method in that class. |
protected void |
fireActionEvent(java.lang.String text)
Generates an action event for each class listed in the listener list, and calls the actionPerformed method in that class. |
double |
getCcErrorThreshold()
|
java.lang.String |
getConfigPath()
|
java.util.ArrayList<ca.nrc.widar.jaxb.crm.CrmFile> |
getCrmFileList()
|
java.lang.String |
getDataProcPath()
|
java.lang.String |
getDestIp()
|
java.lang.String |
getDestMac()
|
protected java.util.Vector<ca.nrc.widar.jaxb.crm.Diagnostic> |
getDiagnosticXml()
Abstract method. |
java.lang.String |
getFrameTitle(ca.nrc.widar.jaxb.crm.Diagnostic dXml)
|
int |
getLagCollectionDuration()
|
int |
getRxpSyncTimeout()
|
java.lang.Object |
getSettings()
|
int |
getStationId()
|
int |
getSyncCheck()
|
java.lang.String |
getTitle()
Returns the current tab title |
protected void |
handleModelAction(ca.nrc.widar.jaxb.crm.Diagnostic diagXml,
ca.nrc.widar.jaxb.crm.DiagStateType state)
This method is called from the CrmGuiDiagTableModel upon registering an event in the CrmGuiDiagTableModel that is within the tab. |
void |
initIndicator()
Method to initialize the indicator panel. |
boolean |
isEnabled()
Returns the enabled status of the execute button to the caller |
boolean |
isSetDestIpDefault()
|
boolean |
isSetDestMacDefault()
|
boolean |
isSystemWide()
|
void |
loadSettings(java.lang.Object xml)
|
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes a listener from the action listener list within this class. |
void |
removeAllDiagnostics()
|
void |
removeAllDiagnosticsOnClose()
Calls a CrmGuiDiagTableModel method which is run just prior to the CrmGui exiting. |
void |
removeDiagnostic(java.lang.String id)
Calls a CrmGuiDiagTableModel method which removes a Diagnostic XML object from the current tab active processes table |
void |
setBlankingDuration(int value)
|
void |
setCcErrorThreshold(double value)
|
void |
setConfigPath(java.lang.String value)
|
void |
setCrmFileList(java.util.List<ca.nrc.widar.jaxb.crm.CrmFile> value)
|
void |
setDataProcPath(java.lang.String value)
|
void |
setDestIp(java.lang.String value)
|
void |
setDestMac(java.lang.String value)
|
void |
setEnabled(boolean state)
Affects the enabled button on the tab, setting its enabled state to the provided boolean value |
void |
setLagCollectionDuration(int value)
|
void |
setRxpSyncTimeout(int value)
|
void |
setStationId(int value)
|
void |
setSyncCheck(int value)
|
void |
setSystemWide(boolean value)
|
void |
updateBlbHstConfigFileList(java.util.ArrayList<ca.nrc.widar.jaxb.crm.CrmFile> list)
|
void |
updateControl()
Method used to update the LED values for common LED objects within the CrmGuiTab |
void |
updateDiagnostic(ca.nrc.widar.jaxb.crm.Diagnostic diagXml)
Calls a CrmGuiDiagTableModel method which replaces the existing Diagnostic XML stored within the tab with the provided Diagnostic XML |
void |
updateDiagnosticStatus(ca.nrc.widar.jaxb.crm.DiagStatus dsXml)
Calls a CrmGuiDiagTableModel method which replaces the DiagStatus child of the Diagnostic XML within the tab with the supplied DiagStatus XML object. |
void |
updateSelector()
|
void |
updateTotalDuration()
|
Methods inherited from class edu.nrao.widar.gui.widget.BlankPanel |
---|
add, add, add, add, add, add, add, add, add, add, add, add, add, add, addButton, addComponent, addComponent, addComponent, addComponent, addComponent, addComponent, addLabel, addPanel, drawGrid, drawGrid, fixMarginsAndGetDimension, getComponent, getField, getFieldText, getValue, setAndAlarm, setField |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASSNAME
protected boolean enabled
protected int indWidth
protected int tabType
protected java.lang.String title
protected BlankPanel indicatorPanel
protected BlankPanel controlPanel
protected javax.swing.JButton executeButton
protected javax.swing.JButton clearGoodButton
protected javax.swing.JButton clearAllButton
protected javax.swing.JButton haltActiveButton
protected javax.swing.JButton haltAllButton
protected javax.swing.JButton analyzeAllButton
protected CrmGuiDiagTableModel processModel
protected CrmGuiTable processTable
protected javax.swing.table.JTableHeader processHeader
protected javax.swing.JScrollPane activeScroll
protected ca.nrc.widar.jaxb.crm.ObjectFactory crmOF
protected javax.xml.bind.Marshaller crmM
protected javax.xml.bind.Unmarshaller crmU
Constructor Detail |
---|
public CrmGuiTab(java.lang.String value, int width, int height)
value
- The String value for the tab titlewidth
- The width in pixels for the tab panelheight
- The height in pixels for the tab panelMethod Detail |
---|
public void initIndicator()
protected java.util.Vector<ca.nrc.widar.jaxb.crm.Diagnostic> getDiagnosticXml()
public java.lang.Object getSettings()
public void loadSettings(java.lang.Object xml)
public void updateTotalDuration()
public boolean isSetDestIpDefault()
public java.lang.String getDestIp()
public void setDestIp(java.lang.String value)
public boolean isSetDestMacDefault()
public java.lang.String getDestMac()
public void setDestMac(java.lang.String value)
public java.lang.String getConfigPath()
public void setConfigPath(java.lang.String value)
public java.lang.String getDataProcPath()
public void setDataProcPath(java.lang.String value)
public java.util.ArrayList<ca.nrc.widar.jaxb.crm.CrmFile> getCrmFileList()
public void setCrmFileList(java.util.List<ca.nrc.widar.jaxb.crm.CrmFile> value)
public int getLagCollectionDuration()
public void setLagCollectionDuration(int value)
public double getCcErrorThreshold()
public void setCcErrorThreshold(double value)
public void setBlankingDuration(int value)
public int getRxpSyncTimeout()
public void setRxpSyncTimeout(int value)
public int getSyncCheck()
public void setSyncCheck(int value)
public int getStationId()
public void setStationId(int value)
public boolean isSystemWide()
public void setSystemWide(boolean value)
public void updateControl()
public void updateSelector()
public void updateBlbHstConfigFileList(java.util.ArrayList<ca.nrc.widar.jaxb.crm.CrmFile> list)
public java.lang.String getTitle()
public java.lang.String getFrameTitle(ca.nrc.widar.jaxb.crm.Diagnostic dXml)
public void setEnabled(boolean state)
setEnabled
in class javax.swing.JComponent
state
- The new enabled state of the execute button (true=enabled)public boolean isEnabled()
isEnabled
in class java.awt.Component
public void addDiagnostic(ca.nrc.widar.jaxb.crm.Diagnostic diagXml)
diagXml
- A Diagnostic XML object representing a new Diagnosticpublic void removeDiagnostic(java.lang.String id)
id
- The unique String ID of the Diagnostic to be removed from this tabpublic void removeAllDiagnostics()
public void removeAllDiagnosticsOnClose()
public void updateDiagnostic(ca.nrc.widar.jaxb.crm.Diagnostic diagXml)
diagXml
- A Diagnostic XMl objectpublic void updateDiagnosticStatus(ca.nrc.widar.jaxb.crm.DiagStatus dsXml)
dsXml
- A DiagStatus XML objectprotected void handleModelAction(ca.nrc.widar.jaxb.crm.Diagnostic diagXml, ca.nrc.widar.jaxb.crm.DiagStateType state)
diagXml
- The Diagnostic XML object to which the action is associatedstate
- The current diagnostic state of the object to which the action is associatedpublic void addActionListener(java.awt.event.ActionListener listener)
listener
- The class being added to the listener list.public void removeActionListener(java.awt.event.ActionListener listener)
listener
- The class being removed from the listener list.protected void fireActionEvent(java.awt.event.ActionEvent event)
event
- The event being fired.protected void fireActionEvent(java.lang.String text)
text
- A string containing the content to be added to the event being firedpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- The incoming action event.public void dataIsReady(DataReadyEvent event)
dataIsReady
in interface DataReadyListener
event
- A DataReadyEvent object
|
NRAO/DRAO | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |