public abstract class AbstractAlarmTable extends AbstractVisionPanel implements EnabledEx, LocaleListener
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractAlarmTable.AbstractRowStyleTableModel |
protected class |
AbstractAlarmTable.AlarmDetailsViewer
The popup for the "view" utility icon
|
protected static interface |
AbstractAlarmTable.AlarmPopup
If your component that you use as a popup implements this, it will be notified when it is shown and hidden.
|
protected static class |
AbstractAlarmTable.AlarmTableTabbedPane |
protected class |
AbstractAlarmTable.DateCellRenderer
Cell renderer that formats as a date (if it is a date), otherwise as tostring()
|
protected class |
AbstractAlarmTable.NumberCellRenderer
Cell renderer that formats as a number (if it is a number), otherwise as tostring()
|
protected class |
AbstractAlarmTable.PopupHolderPanel
Direct parent of anything that pops up.
|
protected class |
AbstractAlarmTable.TranslatableCellRenderer
Translates the value passed in, if possible
|
class |
AbstractAlarmTable.TranslatableHeaderRenderer |
class |
AbstractAlarmTable.TranslatableListCellRenderer |
static class |
AbstractAlarmTable.TranslateTimeFormatUtil |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected AlarmRef |
alarmRef
A reference to an alarm, used for efficient evaluation of the style expressions so that the expressions can be
compiled once and then ran many times for each alarm
|
protected java.lang.String |
dateFormat |
protected com.jidesoft.grid.TableFlashable |
flasher |
protected int |
flashInterval |
protected java.lang.Runnable |
hidePopupRunner
Runnable that will hide any visible popup
|
protected LoggerEx |
log |
protected java.lang.String |
numberFormat |
protected static java.lang.String |
POPUP
Internal property name used for detecting when the popup panel changes.
|
protected Dataset |
rowStyles |
protected java.util.List<AlarmRowStyle> |
rowStylesActual
The parsed list of row styles
|
protected java.awt.Color |
selectionColor |
protected int |
selectionThickness |
protected SlideOverPane |
slider |
protected AbstractAlarmTable.PopupHolderPanel |
slidingContentHolder |
static com.jidesoft.grid.CellStyle |
STANDARD_STYLE
The style that all other styles start from
|
protected com.jidesoft.grid.SortableTable |
table |
protected java.awt.Color |
tableBackground |
protected int |
touchscreenMode |
antialias, context, cursorCode, dynamicProps
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DISABLED_BY_PERMISSIONS
RESERVED_SET_KEY
COMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
COMPONENT_RUNNING
Modifier | Constructor and Description |
---|---|
protected |
AbstractAlarmTable() |
protected |
AbstractAlarmTable(java.awt.LayoutManager layout) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyRowStyles() |
void |
evaluateEnabled() |
protected int |
getActualRow(int viewRow) |
java.lang.String |
getDateFormat() |
protected java.lang.Object |
getDisplayValue(AlarmEvent alarm,
AlarmProperty<?> column) |
int |
getFlashInterval() |
protected java.lang.String |
getHeaderDisplayValue(AlarmProperty<?> column) |
java.lang.String |
getNumberFormat() |
int |
getRowHeight() |
Dataset |
getRowStyles() |
java.util.List<AlarmRowStyle> |
getRowStylesActual() |
java.awt.Color |
getSelectionColor() |
int |
getSelectionThickness() |
protected com.jidesoft.grid.SortableTableModel |
getSortable() |
java.awt.Color |
getTableBackground() |
int |
getTouchscreenMode() |
protected void |
hidePopup()
Hides whatever popup is currently expanded
|
void |
initSliderUi(javax.swing.JPanel tableHolder,
javax.swing.JPanel footer) |
boolean |
isComponentEnabled() |
void |
localeChanged(java.util.Locale newLocale) |
protected void |
onShutdown()
Subclasses should override this to provide shutdown logic.
|
protected void |
onStartup()
Subclasses should override this to provide startup logic.
|
protected void |
paintChildren(java.awt.Graphics g) |
boolean |
print(org.python.core.PyObject[] pyArgs,
java.lang.String[] keywords) |
void |
setComponentEnabled(boolean componentEnabled) |
void |
setDateFormat(java.lang.String dateFormat) |
void |
setFlashInterval(int flashInterval) |
void |
setFont(java.awt.Font font)
Sets the font for this component and passes into the table to set the row font
|
void |
setNumberFormat(java.lang.String numberFormat) |
void |
setRowHeight(int newHeight) |
void |
setRowStyles(Dataset rowStyles) |
void |
setSelectionColor(java.awt.Color selectionColor) |
void |
setSelectionThickness(int selectionThickness) |
void |
setTableBackground(java.awt.Color tableBackground) |
void |
setTouchscreenMode(int touchscreenMode) |
protected void |
showPopup(javax.swing.JComponent popup)
Shows a component using the sliding popup mechanism
|
protected void |
showPopup(javax.swing.JComponent popup,
int preferredHeight)
Shows a component using the sliding popup mechanism
|
protected void |
syncTableFont() |
protected AlarmEvent |
viewRowToAlarm(int row) |
getAppContext, getCursorCode, getDataQuality, getDynamicProps, getProperties, getPropertyValue, getStyles, getToolTipText, initStyleListener, isAntialias, isComponentRunning, isPropertyDefined, paintComponent, paintOverlayOverChildren, setAntialias, setCursorCode, setDataQuality, setDynamicProps, setName, setPropertyValue, setStyles, setToolTipText, setVisible, shutdownComponent, startupComponent, translate, updateQuality
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, 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, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
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, transferFocusDownCycle, validate, validateTree
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, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, 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, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected LoggerEx log
protected static final java.lang.String POPUP
protected com.jidesoft.grid.SortableTable table
protected SlideOverPane slider
protected AbstractAlarmTable.PopupHolderPanel slidingContentHolder
protected java.util.List<AlarmRowStyle> rowStylesActual
protected int flashInterval
protected com.jidesoft.grid.TableFlashable flasher
protected java.awt.Color tableBackground
protected java.awt.Color selectionColor
protected int selectionThickness
protected java.lang.String numberFormat
protected java.lang.String dateFormat
protected int touchscreenMode
public static final com.jidesoft.grid.CellStyle STANDARD_STYLE
protected final AlarmRef alarmRef
protected Dataset rowStyles
protected final java.lang.Runnable hidePopupRunner
protected AbstractAlarmTable()
protected AbstractAlarmTable(java.awt.LayoutManager layout)
public boolean isComponentEnabled()
isComponentEnabled
in interface EnabledEx
public void setComponentEnabled(boolean componentEnabled)
setComponentEnabled
in interface EnabledEx
public int getTouchscreenMode()
public void setTouchscreenMode(int touchscreenMode)
public void evaluateEnabled()
evaluateEnabled
in interface EnabledEx
public void initSliderUi(javax.swing.JPanel tableHolder, javax.swing.JPanel footer)
public boolean print(org.python.core.PyObject[] pyArgs, java.lang.String[] keywords)
protected int getActualRow(int viewRow)
protected AlarmEvent viewRowToAlarm(int row)
protected com.jidesoft.grid.SortableTableModel getSortable()
protected java.lang.Object getDisplayValue(AlarmEvent alarm, AlarmProperty<?> column)
protected java.lang.String getHeaderDisplayValue(AlarmProperty<?> column)
protected void onStartup()
AbstractVisionPanel
onStartup
in class AbstractVisionPanel
protected void onShutdown()
AbstractVisionPanel
onShutdown
in class AbstractVisionPanel
protected void showPopup(javax.swing.JComponent popup)
protected void showPopup(javax.swing.JComponent popup, int preferredHeight)
popup
- preferredHeight
- The height that the popup should beprotected void hidePopup()
public void setRowStyles(Dataset rowStyles)
protected void applyRowStyles()
public java.util.List<AlarmRowStyle> getRowStylesActual()
public Dataset getRowStyles()
public int getFlashInterval()
public void setFlashInterval(int flashInterval)
public int getRowHeight()
public void setRowHeight(int newHeight)
public java.awt.Color getSelectionColor()
public void setSelectionColor(java.awt.Color selectionColor)
public int getSelectionThickness()
public void setSelectionThickness(int selectionThickness)
public java.lang.String getNumberFormat()
public void setNumberFormat(java.lang.String numberFormat)
public java.lang.String getDateFormat()
public void setDateFormat(java.lang.String dateFormat)
public java.awt.Color getTableBackground()
public void setTableBackground(java.awt.Color tableBackground)
public void localeChanged(java.util.Locale newLocale)
localeChanged
in interface LocaleListener
localeChanged
in class AbstractVisionPanel
protected void paintChildren(java.awt.Graphics g)
paintChildren
in class AbstractVisionPanel
protected void syncTableFont()
public void setFont(java.awt.Font font)
setFont
in class javax.swing.JComponent