public class PMIComboBox extends javax.swing.JComboBox implements MutableDynamicPropertyProvider, StyleProvider, VisionComponent, EnabledEx, LocaleListener
Modifier and Type | Class and Description |
---|---|
class |
PMIComboBox.DataSetComboBoxModel |
class |
PMIComboBox.DataSetListCellRenderer |
javax.swing.JComboBox.AccessibleJComboBox, javax.swing.JComboBox.KeySelectionManager
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected boolean |
antialias |
protected VisionClientContext |
context
The current ClientContext that is set on startupComponent()
|
protected int |
cursorCode |
protected Dataset |
data |
static java.lang.String |
LABEL_FORMAT |
static int |
LIST |
static int |
MODE_EDITABLE |
static int |
MODE_LENIENT |
static int |
MODE_STRICT |
protected PMIComboBox.DataSetComboBoxModel |
model |
protected java.awt.Color |
selectionBackground |
static int |
TABLE |
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder
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
RESERVED_SET_KEY
COMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
COMPONENT_RUNNING
DISABLED_BY_PERMISSIONS
Constructor and Description |
---|
PMIComboBox() |
Modifier and Type | Method and Description |
---|---|
void |
contentsChanged(javax.swing.event.ListDataEvent e) |
void |
evaluateEnabled() |
VisionClientContext |
getAppContext() |
int |
getCursorCode() |
Dataset |
getData() |
int |
getDataQuality()
For backwards compatibility with scripts.
|
java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> |
getDynamicProps() |
java.lang.String |
getHideTableColumns() |
int |
getHorizontalAlignment() |
int |
getMaxTableHeight() |
int |
getMaxTableWidth() |
int |
getMode() |
java.lang.String |
getNoSelectionLabel() |
java.lang.String |
getNoSelectionString() |
int |
getNoSelectionValue() |
DynamicPropertyDescriptor[] |
getProperties() |
java.lang.Object |
getPropertyValue(java.lang.String name) |
QualityCode |
getQuality()
Retrieves the data quality code.
|
com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection |
getSelectedItem() |
java.lang.String |
getSelectedLabel() |
java.lang.String |
getSelectedStringValue() |
java.lang.Integer |
getSelectedValue() |
java.awt.Color |
getSelectionBackground() |
int |
getSelectionMode() |
Dataset |
getStyles() |
java.lang.String |
getToolTipText() |
Dataset |
getTranslatedData() |
int |
getVerticalAlignment() |
boolean |
isAntialias() |
boolean |
isComponentEnabled() |
boolean |
isOpaque() |
boolean |
isPropertyDefined(java.lang.String name) |
boolean |
isShowTableHeader() |
void |
localeChanged(java.util.Locale newLocale) |
protected void |
paintChildren(java.awt.Graphics g) |
protected void |
paintComponent(java.awt.Graphics g) |
void |
setAntialias(boolean antialias) |
void |
setComponentEnabled(boolean componentEnabled) |
void |
setCursorCode(int cursorCode) |
void |
setData(Dataset set) |
void |
setDataQuality(int value) |
void |
setDynamicProps(java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> map) |
void |
setHideTableColumns(java.lang.String hideTableColumns) |
void |
setHorizontalAlignment(int horizontalAlignment) |
void |
setMaxTableHeight(int maxTableHeight) |
void |
setMaxTableWidth(int maxTableWidth) |
void |
setMode(int mode) |
void |
setName(java.lang.String newName) |
protected void |
setNoSelection(com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection sel) |
void |
setNoSelectionLabel(java.lang.String noSelectionLabel) |
void |
setNoSelectionString(java.lang.String noSelectionString) |
void |
setNoSelectionValue(int noSelectionValue) |
void |
setPropertyValue(java.lang.String name,
java.lang.Object value) |
void |
setQuality(QualityCode value)
Sets the current data quality to the given value
|
void |
setSelectedItem(java.lang.Object anObject) |
void |
setSelectedLabel(java.lang.String value) |
void |
setSelectedStringValue(java.lang.String value) |
void |
setSelectedValue(java.lang.Integer value) |
void |
setSelectedValue(java.lang.Number n) |
void |
setSelectionBackground(java.awt.Color selectionColor) |
void |
setSelectionMode(int selectionMode) |
void |
setShowTableHeader(boolean showTableHeader) |
void |
setStyles(Dataset styleDS) |
void |
setToolTipText(java.lang.String text) |
void |
setVerticalAlignment(int verticalAlignment) |
void |
setVisible(boolean visible) |
void |
shutdownComponent()
Called when the component is now shown anymore.
|
void |
startupComponent(VisionClientContext context)
Called when the component is first shown.
|
protected java.lang.String |
translateTerm(java.lang.String term) |
void |
updateQuality(java.lang.String propName,
QualityCode quality)
Updates the quality for the given property name.
|
actionPerformed, actionPropertyChanged, addActionListener, addItem, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultKeySelectionManager, fireActionEvent, fireItemStateChanged, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getAction, getActionCommand, getActionListeners, getEditor, getItemAt, getItemCount, getItemListeners, getKeySelectionManager, getMaximumRowCount, getModel, getPopupMenuListeners, getPrototypeDisplayValue, getRenderer, getSelectedIndex, getSelectedObjects, getUI, getUIClassID, hidePopup, insertItemAt, installAncestorListener, intervalAdded, intervalRemoved, isEditable, isLightWeightPopupEnabled, isPopupVisible, paramString, processKeyBinding, processKeyEvent, removeActionListener, removeAllItems, removeItem, removeItemAt, removeItemListener, removePopupMenuListener, selectedItemChanged, selectWithKeyChar, setAction, setActionCommand, setEditable, setEditor, setEnabled, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPopupVisible, setPrototypeDisplayValue, setRenderer, setSelectedIndex, setUI, showPopup, 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, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, 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, 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
public static final int MODE_STRICT
public static final int MODE_LENIENT
public static final int MODE_EDITABLE
public static final int LIST
public static final int TABLE
public static final java.lang.String LABEL_FORMAT
protected PMIComboBox.DataSetComboBoxModel model
protected java.awt.Color selectionBackground
protected Dataset data
protected int cursorCode
protected boolean antialias
protected VisionClientContext context
protected java.lang.String translateTerm(java.lang.String term)
public int getCursorCode()
public void setCursorCode(int cursorCode)
public boolean isComponentEnabled()
isComponentEnabled
in interface EnabledEx
public void setComponentEnabled(boolean componentEnabled)
setComponentEnabled
in interface EnabledEx
public void evaluateEnabled()
evaluateEnabled
in interface EnabledEx
public void setVisible(boolean visible)
setVisible
in class javax.swing.JComponent
public void setSelectedItem(java.lang.Object anObject)
setSelectedItem
in class javax.swing.JComboBox
public void contentsChanged(javax.swing.event.ListDataEvent e)
contentsChanged
in interface javax.swing.event.ListDataListener
contentsChanged
in class javax.swing.JComboBox
public void setToolTipText(java.lang.String text)
setToolTipText
in class javax.swing.JComponent
public java.lang.String getToolTipText()
getToolTipText
in class javax.swing.JComponent
public boolean isAntialias()
public void setAntialias(boolean antialias)
public int getMode()
public void setMode(int mode)
public void setName(java.lang.String newName)
setName
in class java.awt.Component
public Dataset getData()
public Dataset getTranslatedData()
public void setData(Dataset set)
public java.lang.Integer getSelectedValue()
public java.lang.String getSelectedStringValue()
public java.lang.String getSelectedLabel()
public com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection getSelectedItem()
getSelectedItem
in class javax.swing.JComboBox
public void setSelectedValue(java.lang.Integer value)
public void setSelectedStringValue(java.lang.String value)
public void setSelectedValue(java.lang.Number n) throws org.python.core.PyIgnoreMethodTag
org.python.core.PyIgnoreMethodTag
public void setSelectedLabel(java.lang.String value)
public void localeChanged(java.util.Locale newLocale)
localeChanged
in interface LocaleListener
public boolean isOpaque()
isOpaque
in class javax.swing.JComponent
public int getHorizontalAlignment()
public void setHorizontalAlignment(int horizontalAlignment)
public int getVerticalAlignment()
public void setVerticalAlignment(int verticalAlignment)
public java.awt.Color getSelectionBackground()
public void setSelectionBackground(java.awt.Color selectionColor)
protected void setNoSelection(com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection sel)
public int getNoSelectionValue()
public void setNoSelectionValue(int noSelectionValue)
public java.lang.String getNoSelectionString()
public void setNoSelectionString(java.lang.String noSelectionString)
public java.lang.String getNoSelectionLabel()
public void setNoSelectionLabel(java.lang.String noSelectionLabel)
public boolean isShowTableHeader()
public void setShowTableHeader(boolean showTableHeader)
public java.lang.String getHideTableColumns()
public void setHideTableColumns(java.lang.String hideTableColumns)
public int getMaxTableWidth()
public void setMaxTableWidth(int maxTableWidth)
public int getMaxTableHeight()
public void setMaxTableHeight(int maxTableHeight)
public int getSelectionMode()
public void setSelectionMode(int selectionMode)
public java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> getDynamicProps()
getDynamicProps
in interface MutableDynamicPropertyProvider
public void setDynamicProps(java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> map)
setDynamicProps
in interface MutableDynamicPropertyProvider
public void setPropertyValue(java.lang.String name, java.lang.Object value) throws java.lang.ClassCastException
setPropertyValue
in interface DynamicPropertyProvider
java.lang.ClassCastException
public java.lang.Object getPropertyValue(java.lang.String name)
getPropertyValue
in interface DynamicPropertyProvider
public DynamicPropertyDescriptor[] getProperties()
getProperties
in interface DynamicPropertyProvider
public boolean isPropertyDefined(java.lang.String name)
isPropertyDefined
in interface DynamicPropertyProvider
public QualityCode getQuality()
QualityMonitor
getQuality
in interface QualityMonitor
public int getDataQuality()
QualityMonitor
getDataQuality
in interface QualityMonitor
public void setDataQuality(int value)
setDataQuality
in interface QualityMonitor
public void setQuality(QualityCode value)
QualityMonitor
setQuality
in interface QualityMonitor
public void updateQuality(java.lang.String propName, QualityCode quality)
QualityMonitor
updateQuality
in interface QualityMonitor
protected void paintChildren(java.awt.Graphics g)
paintChildren
in class javax.swing.JComponent
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public Dataset getStyles()
getStyles
in interface StyleProvider
public void setStyles(Dataset styleDS)
setStyles
in interface StyleProvider
public final void startupComponent(VisionClientContext context)
ComponentLifecycle
startupComponent
in interface ComponentLifecycle
public final void shutdownComponent()
ComponentLifecycle
shutdownComponent
in interface ComponentLifecycle
public VisionClientContext getAppContext()
getAppContext
in interface ComponentLifecycle