Class JFXTwoPhaseActionSelector<T,U>
java.lang.Object
jfxutils.TwoPhaseActionSelector<T,U>
jfxutils.JFXTwoPhaseActionSelector<T,U>
- Type Parameters:
T
- represents the moves that can be selectedU
- represents the actions that can be applied to the moves
A subclass of
TwoPhaseActionSelector
that provides a
property to observe the selection phase.-
Nested Class Summary
Nested classes/interfaces inherited from class jfxutils.TwoPhaseActionSelector
TwoPhaseActionSelector.Phase
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyObjectProperty
<TwoPhaseActionSelector.Phase> Represents the current selection phase. -
Field Summary
Fields inherited from class jfxutils.TwoPhaseActionSelector
phase
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aJFXTwoPhaseActionSelector
object to determine the next move in the state specified. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ReadOnlyObjectProperty
<TwoPhaseActionSelector.Phase> Represents the current selection phase.protected void
Sets the value of thephase
property.Methods inherited from class jfxutils.TwoPhaseActionSelector
getAction, getFrom, getPhase, isInvalidSelection, isReadyToMove, makeMove, reset, selectAction, selectFrom
-
Property Details
-
phase
Represents the current selection phase.- See Also:
-
-
Constructor Details
-
JFXTwoPhaseActionSelector
Creates aJFXTwoPhaseActionSelector
object to determine the next move in the state specified.- Parameters:
state
- the state in which the next move is to be made
-
-
Method Details
-
phaseProperty
Represents the current selection phase.- Returns:
- a read-only property that can be observed for changes in the selection phase
- See Also:
-
setPhase
Sets the value of thephase
property.- Overrides:
setPhase
in classTwoPhaseActionSelector<T,
U> - Property description:
- Represents the current selection phase.
- Parameters:
phase
- the value for thephase
property- See Also:
-