Button

public final class Button extends Toggleable

Represents the state of a button.

Constructors

Link copied to clipboard
public Button Button(Boolean state)

Properties

Link copied to clipboard
private final Boolean lastState
Link copied to clipboard
private final Boolean state

Functions

Link copied to clipboard
Link copied to clipboard
public Boolean getState()
Link copied to clipboard
public final Unit toggle()
Link copied to clipboard
public final Unit update(Boolean newState)