public class ActiveButtonState
extends java.lang.Object
ActiveButtonControl
finite state machine.
ActiveButtonControl
.
For each controlled button, it holds the index of the label to be displayed in
this state, whether that button should be enabled or disabled and which state
should be jumped to if that button is pressed.
See the example documented in
ActiveButtonControl.
ActiveButton
,
ActiveButtonControl
Modifier and Type | Class and Description |
---|---|
static class |
ActiveButtonState.BadArguments
This gets thrown if a consistency check fails in the
ActiveButtonState
constructor. |
Constructor and Description |
---|
ActiveButtonState(int[] labelId,
boolean[] enable,
int[] next)
Constructs a new ActiveButtonState, performing consistency
checks on its supplied arguments.
|
ActiveButtonState(int[] labelId,
boolean[] enable,
int[] next,
boolean verbose)
Constructs a new ActiveButtonState, performing consistency
checks on its supplied arguments, with a verbose reporting option.
|
public ActiveButtonState(int[] labelId, boolean[] enable, int[] next) throws ActiveButtonState.BadArguments
labelId
- the button labels for this state.enable
- the enable/disable status of each button for this state
(true <==> enabled).next
- the next state after each button is pushed.ActiveButtonState.BadArguments
- if the consistency check fails.
The exception contains details of the error.public ActiveButtonState(int[] labelId, boolean[] enable, int[] next, boolean verbose) throws ActiveButtonState.BadArguments
labelId
- the button labels for this state.enable
- the enable/disable status of each button for this state
(true <==> enabled).next
- the next state after each button is pushed.verbose
- if true, a running commentary is printed on the consistency checks.ActiveButtonState.BadArguments
- if the consistency check fails.
The exception contains details of the error.Copyright © 1996–2022. All rights reserved.