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
    Type
    Property
    Description
    javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableList<Problem>>
    Property holding all problems solvable by the user.
    javafx.beans.value.ObservableObjectValue<Problem>
    Property holding the currently selected problem for solving.
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableList<Problem>>
    Property holding all problems solvable by the user.
    javafx.beans.value.ObservableObjectValue<Problem>
    Property holding the currently selected problem for solving.
    void
    Selects a problem for solving.
  • Property Details

    • problems

      javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableList<Problem>> problemsProperty
      Property holding all problems solvable by the user.
    • selectedProblem

      javafx.beans.value.ObservableObjectValue<Problem> selectedProblemProperty
      Property holding the currently selected problem for solving. This property will emit the selected problem if the selection is changed. This property may hold null when no problem is currently selected.
  • Method Details

    • selectProblem

      void selectProblem(Problem problem)
      Selects a problem for solving. This method accepts null via the problem parameter to indicate that no problem should be selected. All listeners should be notified of a change via the selectedProblemProperty().
      Parameters:
      problem - problem to select, may be null
    • problemsProperty

      javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableList<Problem>> problemsProperty()
      Property holding all problems solvable by the user.
    • selectedProblemProperty

      javafx.beans.value.ObservableObjectValue<Problem> selectedProblemProperty()
      Property holding the currently selected problem for solving. This property will emit the selected problem if the selection is changed. This property may hold null when no problem is currently selected.