Interface ToggleButton


public interface ToggleButton
A .NET WPF toggle button control Note: To create an instance of this interface, first create a Button instance for a button with toggle behavior, and then return the ToggleButton using the Button.getToggleButton method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Button test object, from which this toggle button was accessed.
    Returns the toggle button status.
    boolean
    Indicates whether the toggle button is checked.
    boolean
    Indicates whether the toggle button is able to display three check states.
    void
    Sets the status of the toggle button.
  • Method Details

    • getButtonTestObject

      Button getButtonTestObject()
      Returns the Button test object, from which this toggle button was accessed.
      Returns:
      the Button test object, from which this toggle button was accessed.
    • getState

      Returns the toggle button status.
      Returns:
      the toggle button status.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • set

      void set(CheckedState state) throws GeneralLeanFtException
      Sets the status of the toggle button.
      Parameters:
      state - the status to be assigned to the toggle button.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • isChecked

      boolean isChecked() throws GeneralLeanFtException
      Indicates whether the toggle button is checked.
      For Three State toggle button: IsChecked will return true for either a Checked or Indeterminate State.
      Returns:
      true, if the check box is checked.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • isThreeState

      boolean isThreeState() throws GeneralLeanFtException
      Indicates whether the toggle button is able to display three check states.
      Returns:
      true, if the toggle button is able to display three check states.
      Throws:
      GeneralLeanFtException - if error occurs during execution