edu.wpi.first.wpilibj.buttons

## Class NetworkButton

- java.lang.Object
- - edu.wpi.first.wpilibj.buttons.Trigger
  - - edu.wpi.first.wpilibj.buttons.Button
    - - edu.wpi.first.wpilibj.buttons.NetworkButton

- All Implemented Interfaces:
    Sendable

      public class NetworkButton
      extends Button

  A `Button` that uses a `NetworkTable` boolean field.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.buttons.Trigger

      `Trigger.ButtonScheduler`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NetworkButton(NetworkTable table, java.lang.String field)`
    `NetworkButton(java.lang.String table, java.lang.String field)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `get()` Returns whether or not the trigger is active.

    - ### Methods inherited from class edu.wpi.first.wpilibj.buttons.Button

      `cancelWhenPressed, toggleWhenPressed, whenPressed, whenReleased, whileHeld`

    - ### Methods inherited from class edu.wpi.first.wpilibj.buttons.Trigger

      `cancelWhenActive, getSmartDashboardType, initTable, toggleWhenActive, whenActive, whenInactive, whileActive`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NetworkButton

          public NetworkButton(java.lang.String table,
                               java.lang.String field)

    - #### NetworkButton

          public NetworkButton(NetworkTable table,
                               java.lang.String field)

  - ### Method Detail

    - #### get

          public boolean get()

      Description copied from class: `Trigger`
      Returns whether or not the trigger is active.

      This method will be called repeatedly a command is linked to the Trigger.

      Specified by:
        `get` in class `Trigger`
      Returns:
        whether or not the trigger condition is active.