Class DataSourceConfigPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.reporting.designer.api.DataSourceConfigPanel
All Implemented Interfaces:
Changeable, ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
QueryDataSourceConfigPanel, ScriptDataConfigPanel, StaticDataConfigPanel

public abstract class DataSourceConfigPanel extends JPanel implements Changeable
This class must be extended by authors of new data sources. It's created by the data source's DataSourceConfigFactory
Since:
7.8.0
See Also:
  • Field Details

  • Constructor Details

    • DataSourceConfigPanel

      protected DataSourceConfigPanel(LayoutManager layoutManager)
  • Method Details

    • getConfigObject

      public abstract Serializable getConfigObject()

      Implement this to return a new "config object" that will be saved in the report resource. The class you use for this must be:

      • In Common Scope (because it's used in designer and gateway
      • Traditionally java.io.Serializable
      • Ignition's bean-style XML serializable (public, empty ctor and getter/setters

      Make sure to make new copies of your config object each time; don't mutate and re-use an existing instance of your config object.

    • dispose

      public void dispose()
      Implementors can optionally override this function to perform any cleanup necessary when this panel is disposed and will not be re-used in the UI at all.
    • addChangeListener

      public void addChangeListener(ChangeListener l)
      Specified by:
      addChangeListener in interface Changeable
    • removeChangeListener

      public void removeChangeListener(ChangeListener l)
      Specified by:
      removeChangeListener in interface Changeable
    • fireStateChanged

      protected void fireStateChanged()