Class NetworkButton

    • Constructor Detail

      • NetworkButton

        public NetworkButton​(NetworkTableEntry entry)
        Creates a NetworkButton that commands can be bound to.
        Parameters:
        entry - The entry that is the value.
      • NetworkButton

        public NetworkButton​(NetworkTable table,
                             String field)
        Creates a NetworkButton that commands can be bound to.
        Parameters:
        table - The table where the networktable value is located.
        field - The field that is the value.
      • NetworkButton

        public NetworkButton​(String table,
                             String field)
        Creates a NetworkButton that commands can be bound to.
        Parameters:
        table - The table where the networktable value is located.
        field - The field that is the value.
    • 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.

        Overrides:
        get in class Trigger
        Returns:
        whether or not the trigger condition is active.