Class TristateCheckBox

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public final class TristateCheckBox extends JCheckBox
derived from: http://www.javaspecialists.eu/archive/Issue145.html
See Also:
  • Constructor Details

    • TristateCheckBox

      public TristateCheckBox()
    • TristateCheckBox

      public TristateCheckBox(String text)
    • TristateCheckBox

      public TristateCheckBox(String text, boolean selected)
    • TristateCheckBox

      public TristateCheckBox(String text, Icon icon, TristateState initial)
  • Method Details

    • setTristateFromProperty

      public void setTristateFromProperty(org.apache.jmeter.testelement.TestElement element, String propName)
      Set state depending on property
      Parameters:
      element - TestElement
      propName - String property name
    • setPropertyFromTristate

      public void setPropertyFromTristate(org.apache.jmeter.testelement.TestElement element, String propName)
      Sets a boolean property from a tristate checkbox.
      Parameters:
      element - the test element
      propName - the property name
    • setIndeterminate

      public void setIndeterminate()
    • isIndeterminate

      public boolean isIndeterminate()
    • getState

      public TristateState getState()
    • setModel

      public void setModel(ButtonModel newModel)
      Overrides:
      setModel in class AbstractButton
    • addMouseListener

      public void addMouseListener(MouseListener l)
      Overrides:
      addMouseListener in class Component
    • getTristateModel

      public org.apache.jmeter.gui.util.TristateCheckBox.TristateButtonModel getTristateModel()