Class RateOptionsPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.gui.RateOptionsPanel
All Implemented Interfaces:
ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class RateOptionsPanel extends JPanel implements ItemListener, ChangeListener
A component that displays polling rate options
See Also:
  • Field Details

  • Constructor Details

    • RateOptionsPanel

      public RateOptionsPanel()
    • RateOptionsPanel

      public RateOptionsPanel(boolean compact)
  • Method Details

    • setRate

      public void setRate(int ms)
    • getRate

      public int getRate()
    • setPollingMode

      public void setPollingMode(int mode)
    • getPollingMode

      public int getPollingMode()
    • getPollingRate

      public PollingRate getPollingRate()
    • setPollingRate

      public void setPollingRate(@Nonnull PollingRate pr)
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Specified by:
      itemStateChanged in interface ItemListener
    • setSerializableDataset

      public void setSerializableDataset(boolean b)
      Sets the selected value of the serializabel dataset (a.k.a. "retain rows") checkbox. NOTE by calling this method with any value, you will also cause the checkbox to be shown (it is invisible by default)

      This is because this panel is used in places (client tag query config) where this option doesn't make sense.

    • isSerializableDataset

      public boolean isSerializableDataset()
    • setEnabled

      public void setEnabled(boolean en)
      Overrides:
      setEnabled in class JComponent
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
      See Also: