java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.propertyeditor.config.ConfigPropertyEditPanel<T>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
TagGroupEditorPanel.TagGroupPropertyPanel, TagPropertyEditPanel

public class ConfigPropertyEditPanel<T extends PropertyConfigurationController> extends JPanel
Holds the editor table and custom property button. Listens to property change events.
See Also:
  • Field Details

  • Constructor Details

    • ConfigPropertyEditPanel

      public ConfigPropertyEditPanel(DesignerContext context, boolean allowCustomProperties)
  • Method Details

    • getTarget

      public T getTarget()
    • setTarget

      public void setTarget(T target)
    • clear

      public void clear()
    • firePropertyValueUpdated

      public void firePropertyValueUpdated(String property)
    • init

      public void init(boolean allowCustomProperties)
    • createTable

    • createPane

      protected DefaultPropertyPane createPane(ConfigPropertyTable table)
    • getPane

      public DefaultPropertyPane getPane()
    • initToolBar

      protected void initToolBar(boolean allowCustomProperties)
    • editCustomProperty

      protected void editCustomProperty(Property<?> current)
    • getPropertyValue

      protected Object getPropertyValue(Property<?> prop)
    • getSelectedProperty

      protected Property<?> getSelectedProperty()
    • getPropertyAt

      protected Property<?> getPropertyAt(int row)
    • isCustomProperty

      protected boolean isCustomProperty(Property<?> prop)
    • rebuildModel

      protected void rebuildModel()
    • evaluateModelForPropertyChange

      protected void evaluateModelForPropertyChange(Property<?> prop)
    • cancelEdit

      public void cancelEdit()
    • rebuildInternal

      protected void rebuildInternal()
    • getPropertiesForTarget

      protected Collection<Property<?>> getPropertiesForTarget()
    • stopCellEditing

      public boolean stopCellEditing()
    • isPropertyVisible

      protected boolean isPropertyVisible(T target, Property<?> prop)
    • isPropertyMutable

      protected boolean isPropertyMutable(T target, Property<?> prop)
    • isPropertyMetaMutable

      protected boolean isPropertyMetaMutable(T target, Property<?> prop)
    • createModelFrom

      protected ConfigPropTableModel createModelFrom(List<PropWrapper> newModel)
    • validateEdit

      protected boolean validateEdit(Property<?> prop, Object newValue)
    • isPropertyBindable

      protected boolean isPropertyBindable(Property<?> prop)
    • filterOptions

      protected List<?> filterOptions(Property<?> prop, Collection<?> options)
      We may want to further filter the options based on the prop
    • toWrapper

      protected <T> PropWrapper<T> toWrapper(Property<T> prop)
    • showCustomEditor

      protected void showCustomEditor(Property<?> prop, CustomPropertyEditor editor)
    • showCategory

      protected void showCategory(Property<?> prop)
    • configureMenuForProperty

      protected void configureMenuForProperty(JPopupMenu menu, PropWrapper property)
    • onBeforePropertyChange

      protected void onBeforePropertyChange(Property<?> prop, Object oldValue, Object newValue) throws PropertyVetoException
      Throws:
      PropertyVetoException
    • getParentFrame

      protected Component getParentFrame()
    • onPropertyChanged

      public void onPropertyChanged(Property<?> prop)
      Should be called when we know a property has changed. Public since occasionally that is handled externally, like for custom editors.