java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.factorypmi.designer.property.configurators.BoundFieldEditor<T>
Type Parameters:
T - , generally a binding type.
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BoundFieldEditor<T> extends JPanel
Creates a JPanel with JTextField, JideButton to launch binding-path browser, and a notification icon that reports the validation status of the field's String. Status is monitored by a document listener through a ValidatedTextField
See Also:
  • Constructor Details

  • Method Details

    • validateBinding

      protected void validateBinding()
      Validates the format of the String entered into the textfield by implementing ValidatedTextField. Provides icon/onHover tooltip next to the text field to give appropriate user feedback on validation status.
    • init

      public void init()
    • setPLD

      public void setPLD(PropertyListenerDescriptor pld)
    • getPLD

      public PropertyListenerDescriptor getPLD() throws Exception
      Throws:
      Exception
    • getText

      public String getText()
    • isBound

      public boolean isBound()
    • isEmpty

      public boolean isEmpty()
    • setLiteralValue

      public void setLiteralValue(T value)
    • getLiteralValue

      public T getLiteralValue()
    • toString

      protected String toString(T value)
    • isSupportsLiterals

      public boolean isSupportsLiterals()
    • setSupportsLiterals

      public void setSupportsLiterals(boolean supportsLiterals)
    • setEnabled

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