java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.inductiveautomation.ignition.designer.gui.expression.expressionvalue.ExpressionValueComboBox<T>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class ExpressionValueComboBox<T> extends JComponent
Control switches between TextField and ComboBox. When ExpressionValue is in ExpressionValue.Type.STATIC, the ComboBox will be displayed. In ExpressionValue.Type.EXPRESSION, a TextField will be displayed.
See Also:
  • Constructor Details

    • ExpressionValueComboBox

      public ExpressionValueComboBox(FunctionFactory functionFactory)
  • Method Details

    • initializeUI

      protected void initializeUI()
    • setComboBoxItems

      public void setComboBoxItems(List<T> items)
      Set the item list in the ComboBox
      Parameters:
      items - List of items will be displayed in the ComboBox
    • setExpressionValue

      public void setExpressionValue(ExpressionValue field)
    • getExpressionValue

      public ExpressionValue getExpressionValue()
    • setInfoText

      public void setInfoText(String message)
    • setWarnText

      public void setWarnText(String message)
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • addListener

      public void addListener(ExpressionValueDocumentListener listener)
    • removeListener

      public void removeListener(ExpressionValueDocumentListener listener)