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

public final Class ContentView

extends BorderPane
implements View
Class Inheritance
All Implemented Interfaces
com.dlsc.workbenchfx.view.View
Imports
com.dlsc.workbenchfx.model.WorkbenchModule, com.dlsc.workbenchfx.view.controls.ToolbarControl, javafx.scene.Node, javafx.scene.layout.BorderPane, .Priority, .StackPane, .VBox, org.slf4j.Logger, .LoggerFactory

Displays the content of the currently active WorkbenchModule.
Authors
François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
pack-priv Node
pack-priv AddModuleView
private static final Logger
pack-priv StackPane
pack-priv ToolbarControl

Constructor Summary

AccessConstructor and Description
public
ContentView(AddModuleView
containing the created modules as tiles
addModuleView
)

Creates a new ContentView.

Method Summary

Modifier and TypeMethod and Description
pack-priv final void
public final void
initializeParts()

Implements com.dlsc.workbenchfx.view.View.initializeParts.

Initializes all parts of the view.

public final void
initializeSelf()

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

Initializes the view.

public final void
layoutParts()

Implements com.dlsc.workbenchfx.view.View.layoutParts.

Defines the layout of all parts in the view.

pack-priv final boolean
pack-priv final void
pack-priv final void
setContent(Node
the module content as a Node
node
)

Replaces the current displayed Node with a new one.

pack-priv final void
showToolbar(boolean
true if the ToolbarControl should be displayed, false if not
show
)

Displays the ToolbarControl based on the given parameter.

Inherited from javafx.scene.layout.BorderPane:
bottomPropertycenterPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthgetAlignmentgetBottomgetCentergetContentBiasgetLeftgetMargingetRightgetToplayoutChildrenleftPropertyrightPropertysetAlignmentsetBottomsetCentersetLeftsetMarginsetRightsetToptopProperty

Field Detail

activeViewback to summary
pack-priv Node activeView
addModuleViewback to summary
pack-priv AddModuleView addModuleView
LOGGERback to summary
private static final Logger LOGGER
moduleViewsback to summary
pack-priv StackPane moduleViews
toolbarControlback to summary
pack-priv ToolbarControl toolbarControl

Constructor Detail

ContentViewback to summary
public ContentView(AddModuleView addModuleView)

Creates a new ContentView.

Parameters
addModuleView:AddModuleView

containing the created modules as tiles

Method Detail

hideActiveViewback to summary
pack-priv final void hideActiveView()
initializePartsback to summary
public final void initializeParts()

Implements com.dlsc.workbenchfx.view.View.initializeParts.

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

Initializes all parts of the view.

Annotations
@Override
initializeSelfback to summary
public final void initializeSelf()

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

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

Initializes the view.

Annotations
@Override
layoutPartsback to summary
public final void layoutParts()

Implements com.dlsc.workbenchfx.view.View.layoutParts.

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

Defines the layout of all parts in the view.

Annotations
@Override
removeViewback to summary
pack-priv final boolean removeView(Node view)
setAddModuleViewback to summary
pack-priv final void setAddModuleView()
setContentback to summary
pack-priv final void setContent(Node node)

Replaces the current displayed Node with a new one. This is called when a new module is selected and displayed.

Parameters
node:Node

the module content as a Node

showToolbarback to summary
pack-priv final void showToolbar(boolean show)

Displays the ToolbarControl based on the given parameter.

Parameters
show:boolean

true if the ToolbarControl should be displayed, false if not