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

public Class CategoryView

extends StackPane
implements View
Class Inheritance
All Implemented Interfaces
com.dlsc.preferencesfx.view.View
Imports
com.dlsc.formsfx.model.structure.Form, com.dlsc.preferencesfx.formsfx.view.renderer.PreferencesFxFormRenderer, com.dlsc.preferencesfx.model.Category, .Group, .PreferencesFxModel, .Setting, com.dlsc.preferencesfx.util.VisibilityProperty, javafx.scene.layout.StackPane, org.slf4j.Logger, .LoggerFactory

Displays a Category as a form with all of its Group and Setting.
Authors
François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
private Category
private static final Logger
private PreferencesFxModel
private PreferencesFxFormRenderer

Constructor Summary

AccessConstructor and Description
public
CategoryView(PreferencesFxModel
the model of PreferencesFX
model
,
Category
is the category that will be displayed in this view
categoryModel
)

Initializes a new view of a Category.

Method Summary

Modifier and TypeMethod and Description
public void
bindFieldsToModel()

Overrides default com.dlsc.preferencesfx.view.View.bindFieldsToModel.

Binds properties from the model to the view.

pack-priv void
public void
initializeParts()

Implements com.dlsc.preferencesfx.view.View.initializeParts.

Initializes all parts of the view.

public void
initializeSelf()

Overrides default com.dlsc.preferencesfx.view.View.initializeSelf.

Initializes the view.

public void
layoutParts()

Implements com.dlsc.preferencesfx.view.View.layoutParts.

Defines the layout of all parts in the view.

Inherited from javafx.scene.layout.StackPane:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthgetAlignmentgetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMarginlayoutChildrenrequestLayoutsetAlignmentsetAlignmentsetMargin

Field Detail

categoryModelback to summary
private Category categoryModel
LOGGERback to summary
private static final Logger LOGGER
modelback to summary
private PreferencesFxModel model
preferencesFormRendererback to summary
private PreferencesFxFormRenderer preferencesFormRenderer

Constructor Detail

CategoryViewback to summary
public CategoryView(PreferencesFxModel model, Category categoryModel)

Initializes a new view of a Category.

Parameters
model:PreferencesFxModel

the model of PreferencesFX

categoryModel:Category

is the category that will be displayed in this view

Method Detail

bindFieldsToModelback to summary
public void bindFieldsToModel()

Overrides default com.dlsc.preferencesfx.view.View.bindFieldsToModel.

Doc from com.dlsc.preferencesfx.view.View.bindFieldsToModel.

Binds properties from the model to the view.

Annotations
@Override
initializeFormRendererback to summary
pack-priv void initializeFormRenderer(Form form)

Initializes the PreferencesFxFormRenderer.

Implementation Note

This can't be done in the constructor, since the form has to be initialized by the corresponding presenter first.

Parameters
form:Form

to be rendered using the PreferencesFxFormRenderer

initializePartsback to summary
public void initializeParts()

Implements com.dlsc.preferencesfx.view.View.initializeParts.

Doc from com.dlsc.preferencesfx.view.View.initializeParts.

Initializes all parts of the view.

Annotations
@Override
initializeSelfback to summary
public void initializeSelf()

Overrides default com.dlsc.preferencesfx.view.View.initializeSelf.

Doc from com.dlsc.preferencesfx.view.View.initializeSelf.

Initializes the view.

Annotations
@Override
layoutPartsback to summary
public void layoutParts()

Implements com.dlsc.preferencesfx.view.View.layoutParts.

Doc from com.dlsc.preferencesfx.view.View.layoutParts.

Defines the layout of all parts in the view.

Annotations
@Override