Interface IProblemListModel
- All Known Implementing Classes:
ProblemListModel
public interface IProblemListModel
Manages logic and state related to the selection of
problem to be solved by the user.
A single problem can be selected for solving via the selectProblem(Problem) method.
All solvable problems are available via problemsProperty().
Currently selected problem is available via selectedProblemProperty().- Author:
- Erik Zemčík
-
Property Summary
Properties -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.value.ObservableObjectValue<javafx.collections.ObservableList<Problem>>Property holding allproblemssolvable by the user.javafx.beans.value.ObservableObjectValue<Problem>Property holding the currently selectedproblemfor solving.voidselectProblem(Problem problem) Selects aproblemfor solving.
-
Property Details
-
Method Details
-
selectProblem
Selects aproblemfor solving. This method acceptsnullvia theproblemparameter to indicate that noproblemshould be selected. All listeners should be notified of a change via theselectedProblemProperty().- Parameters:
problem- problem to select, may benull
-
problemsProperty
javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableList<Problem>> problemsProperty()Property holding allproblemssolvable by the user. -
selectedProblemProperty
javafx.beans.value.ObservableObjectValue<Problem> selectedProblemProperty()
-