Top Description Fields Constructors Methods
com.dlsc.preferencesfx.view

public Class CategoryPresenter

extends Object
implements Presenter
Class Inheritance
All Implemented Interfaces
com.dlsc.preferencesfx.view.Presenter
Imports
com.dlsc.formsfx.model.structure.Form, com.dlsc.formsfx.model.util.BindingMode, com.dlsc.preferencesfx.formsfx.view.renderer.PreferencesFxGroup, com.dlsc.preferencesfx.model.Category, .Group, .PreferencesFxModel, .Setting, java.util.ArrayList, .List, .Objects, org.slf4j.Logger, .LoggerFactory

Contains presenter logic of the CategoryView.
Authors
François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
private Category
private CategoryView
private Form
private static final Logger
private PreferencesFxModel

Constructor Summary

AccessConstructor and Description
public
CategoryPresenter(PreferencesFxModel
the model of PreferencesFX
model
,
Category
the category which is being represented in the view
categoryModel
,
CategoryView
corresponding view to this presenter
categoryView
,
BreadCrumbPresenter
the presenter of the corresponding BreadCrumbView as found in the corresponding view to this presenter
breadCrumbPresenter
)

Constructs a new presenter for the CategoryView.

Method Summary

Modifier and TypeMethod and Description
private void
addI18nListener()

Updates the internal FormsFX form with the most current TranslationService.

private void
private void
applyInstantPersistence(boolean instantPersistent, Form form)

private Form

Returns:

the created form.
createForm
()

Creates a Form with Group and Setting of this Category.

public void
initializeViewParts()

Overrides default com.dlsc.preferencesfx.view.Presenter.initializeViewParts.

Initializes parts of the view which require more logic.

public void
setupBindings()

Overrides default com.dlsc.preferencesfx.view.Presenter.setupBindings.

Sets up bindings of the view.

public void
setupEventHandlers()

Overrides default com.dlsc.preferencesfx.view.Presenter.setupEventHandlers.

Sets up event handlers of the view.

public void
setupValueChangedListeners()

Overrides default com.dlsc.preferencesfx.view.Presenter.setupValueChangedListeners.

Adds all listeners to view elements and model properties.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

categoryModelback to summary
private Category categoryModel
categoryViewback to summary
private CategoryView categoryView
formback to summary
private Form form
LOGGERback to summary
private static final Logger LOGGER
modelback to summary
private PreferencesFxModel model

Constructor Detail

CategoryPresenterback to summary
public CategoryPresenter(PreferencesFxModel model, Category categoryModel, CategoryView categoryView, BreadCrumbPresenter breadCrumbPresenter)

Constructs a new presenter for the CategoryView.

Parameters
model:PreferencesFxModel

the model of PreferencesFX

categoryModel:Category

the category which is being represented in the view

categoryView:CategoryView

corresponding view to this presenter

breadCrumbPresenter:BreadCrumbPresenter

the presenter of the corresponding BreadCrumbView as found in the corresponding view to this presenter

Method Detail

addI18nListenerback to summary
private void addI18nListener()

Updates the internal FormsFX form with the most current TranslationService. Makes sure the group descriptions are updated with changing locale.

addInstantPersistenceListenerback to summary
private void addInstantPersistenceListener()
applyInstantPersistenceback to summary
private void applyInstantPersistence(boolean instantPersistent, Form form)
createFormback to summary
private Form createForm()

Creates a Form with Group and Setting of this Category.

Returns:Form

the created form.

initializeViewPartsback to summary
public void initializeViewParts()

Overrides default com.dlsc.preferencesfx.view.Presenter.initializeViewParts.

Doc from com.dlsc.preferencesfx.view.Presenter.initializeViewParts.

Initializes parts of the view which require more logic.

Annotations
@Override
setupBindingsback to summary
public void setupBindings()

Overrides default com.dlsc.preferencesfx.view.Presenter.setupBindings.

Doc from com.dlsc.preferencesfx.view.Presenter.setupBindings.

Sets up bindings of the view.

Annotations
@Override
setupEventHandlersback to summary
public void setupEventHandlers()

Overrides default com.dlsc.preferencesfx.view.Presenter.setupEventHandlers.

Doc from com.dlsc.preferencesfx.view.Presenter.setupEventHandlers.

Sets up event handlers of the view.

Annotations
@Override
setupValueChangedListenersback to summary
public void setupValueChangedListeners()

Overrides default com.dlsc.preferencesfx.view.Presenter.setupValueChangedListeners.

Doc from com.dlsc.preferencesfx.view.Presenter.setupValueChangedListeners.

Adds all listeners to view elements and model properties.

Annotations
@Override