| Modifier and Type | Field and Description |
|---|---|
| private ObjectProperty | |
| private ObjectProperty | |
| private static final Logger | |
| private HashMap | |
| private HashMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(ReadOnlyObjectProperty<Category>
with category to be listened for categoryProperty)Sets the view according to the current category in categoryProperty. |
| public void | addView(Category
of the categoryView category, CategoryView the view to add to the map view, CategoryPresenter the presenter to add to the map presenter)Adds a view / presenter pair to the respective HashMaps. |
| public ReadOnlyObjectProperty | |
| public ReadOnlyObjectProperty | |
| public CategoryPresenter | |
| public CategoryView | |
| public CategoryPresenter | Returns: presenter objectof the view / presenter category)Returns an already loaded presenter. |
| public boolean | |
| public boolean | Returns: true if the view and presenter were unloaded and false if view doesn't exist.of the view / presenter pair to be unloaded. category)Unloads a view / presenter pair from the HashMaps. |
| displayedCategoryPresenter | back to summary |
|---|---|
| private ObjectProperty<CategoryPresenter> displayedCategoryPresenter | |
| displayedCategoryView | back to summary |
|---|---|
| private ObjectProperty<CategoryView> displayedCategoryView | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| presenters | back to summary |
|---|---|
| private HashMap<Category, CategoryPresenter> presenters | |
| views | back to summary |
|---|---|
| private HashMap<Category, CategoryView> views | |
| CategoryController | back to summary |
|---|---|
| public CategoryController() Initializes the category controller. | |
| addListener | back to summary |
|---|---|
| public void addListener(ReadOnlyObjectProperty<Category> categoryProperty) Sets the view according to the current category in categoryProperty. Must ensure that the category is already loaded, else it will fail.
| |
| addView | back to summary |
|---|---|
| public void addView(Category category, CategoryView view, CategoryPresenter presenter) Adds a view / presenter pair to the respective HashMaps.
| |
| displayedCategoryPresenterProperty | back to summary |
|---|---|
| public ReadOnlyObjectProperty | |
| displayedCategoryViewProperty | back to summary |
|---|---|
| public ReadOnlyObjectProperty | |
| getDisplayedCategoryPresenter | back to summary |
|---|---|
| public CategoryPresenter getDisplayedCategoryPresenter() | |
| getDisplayedCategoryView | back to summary |
|---|---|
| public CategoryView getDisplayedCategoryView() | |
| getPresenter | back to summary |
|---|---|
| public CategoryPresenter getPresenter(Category category) Returns an already loaded presenter.
| |
| setView | back to summary |
|---|---|
| public boolean setView(final Category category) Sets the current view to the one of the respective category. This method can be called in the presenter to switch to a different CategoryView. Controls the way views are being transitioned from one to another.
| |
| unloadView | back to summary |
|---|---|
| public boolean unloadView(Category category) Unloads a view / presenter pair from the HashMaps. This method can be used in case a view / presenter pair needs to be reloaded.
| |