Class AbstractJComponentStateMachine<T extends JComponent,S>
java.lang.Object
io.github.astrapi69.design.pattern.state.component.ComponentStateMachine<T,S>
io.github.astrapi69.design.pattern.state.component.AbstractJComponentStateMachine<T,S>
- Type Parameters:
T
- the type parameter for the JComponentS
- the type parameter for the state
public abstract class AbstractJComponentStateMachine<T extends JComponent,S>
extends ComponentStateMachine<T,S>
The abstract class
AbstractJComponentStateMachine
provides a state machine for
JComponents.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setEnabled
(boolean b) Sets the enabled state of the JComponent.Methods inherited from class io.github.astrapi69.design.pattern.state.component.ComponentStateMachine
updateComponentState
-
Constructor Details
-
AbstractJComponentStateMachine
public AbstractJComponentStateMachine()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean b) Sets the enabled state of the JComponent.- Specified by:
setEnabled
in classComponentStateMachine<T extends JComponent,
S> - Parameters:
b
- the new enabled state
-