Class ProblemListController

java.lang.Object
dev.zemco.codegame.presentation.problems.ProblemListController

public class ProblemListController extends Object
Controller for the problem list view that manipulates provided problem list model. The problem list view presents a list of solvable problems to the user. User can choose a single problem to display its details and can then attempt to solve the problem.

This controller is intended to be initialized using the JavaFX FXML toolkit, as it requires view nodes to be injected using property injection. Target properties are annotated with the FXML annotation.

Some event handler methods are directly referenced by the problem list view, and are intended to be bound by JavaFX. These event handlers are also annotated with the FXML annotation.

Author:
Erik Zemčík
See Also:
  • Constructor Details

    • ProblemListController

      public ProblemListController(IProblemListModel model, INavigator navigator)
      Creates an instance of ProblemListController. Instances created using this constructor are not ready for use, as they are required to be initialized by the JavaFX FXML toolkit.
      Parameters:
      model - problem list model to manipulate
      navigator - navigator to use for navigation to different views
      Throws:
      IllegalArgumentException - if model is null or if navigator is null