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

public Class NavigationView

extends VBox
implements View
Class Inheritance
All Implemented Interfaces
com.dlsc.preferencesfx.view.View
Imports
com.dlsc.preferencesfx.model.Category, .PreferencesFxModel, javafx.geometry.Insets, javafx.scene.control.TreeView, javafx.scene.layout.Priority, .VBox, javafx.scene.paint.Color, org.controlsfx.control.textfield.CustomTextField, org.controlsfx.glyphfont.FontAwesome, .Glyph, .GlyphFont, .GlyphFontRegistry, org.slf4j.Logger, .LoggerFactory

Displays a TreeView of all Category including a search bar.
Authors
François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
private static final Logger
private PreferencesFxModel
pack-priv FilterableTreeItem<Category>
pack-priv CustomTextField
pack-priv TreeView<Category>

Constructor Summary

AccessConstructor and Description

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.

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
public void
layoutParts()

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

Defines the layout of all parts in the view.

protected void
setSelectedItem(FilterableTreeItem<Category>
the category TreeItem to be selected
categoryTreeItem
)

Selects the given category TreeItem in the NavigationView.

private void
setupTextField()

Initializes the TextField and sets the search icon.

Inherited from javafx.scene.layout.VBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillWidthPropertygetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMargingetSpacinggetVgrowisFillWidthlayoutChildrenrequestLayoutsetAlignmentsetFillWidthsetMarginsetSpacingsetVgrowspacingProperty

Field Detail

LOGGERback to summary
private static final Logger LOGGER
modelback to summary
private PreferencesFxModel model
rootItemback to summary
pack-priv FilterableTreeItem<Category> rootItem
searchFldback to summary
pack-priv CustomTextField searchFld
treeViewback to summary
pack-priv TreeView<Category> treeView

Constructor Detail

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
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
invalidateback to summary
public void invalidate()
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
setSelectedItemback to summary
protected void setSelectedItem(FilterableTreeItem<Category> categoryTreeItem)

Selects the given category TreeItem in the NavigationView.

Parameters
categoryTreeItem:FilterableTreeItem<Category>

the category TreeItem to be selected

setupTextFieldback to summary
private void setupTextField()

Initializes the TextField and sets the search icon.