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

public final Class ContentPresenter

extends Presenter
Class Inheritance
Imports
com.dlsc.workbenchfx.Workbench, com.dlsc.workbenchfx.model.WorkbenchModule, com.dlsc.workbenchfx.util.WorkbenchUtils, java.util.Objects, javafx.collections.FXCollections, .ObservableList, .ObservableMap, javafx.scene.Node, javafx.scene.layout.Priority, .VBox, org.slf4j.Logger, .LoggerFactory

Represents the presenter of the corresponding ContentView.
Authors
François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
private static final Logger
private final Workbench
private final ObservableList<WorkbenchModule>
private final ObservableMap<WorkbenchModule, Node>
private final ContentView

Constructor Summary

AccessConstructor and Description
public
ContentPresenter(Workbench
the workbench, holding all data
model
,
ContentView
the corresponding ContentView
view
)

Creates a new ContentPresenter object for a corresponding ContentView.

Method Summary

Modifier and TypeMethod and Description
public final void
initializeViewParts()

Overrides com.dlsc.workbenchfx.view.Presenter.initializeViewParts.

Initializes parts of the view which require more logic.

public final void
setupBindings()

Overrides com.dlsc.workbenchfx.view.Presenter.setupBindings.

Sets up bindings of the view.

public final void
setupEventHandlers()

Overrides com.dlsc.workbenchfx.view.Presenter.setupEventHandlers.

Sets up event handlers of the view.

public final void
setupValueChangedListeners()

Overrides com.dlsc.workbenchfx.view.Presenter.setupValueChangedListeners.

Adds all listeners to view elements and model properties.

Inherited from com.dlsc.workbenchfx.view.Presenter:
init

Field Detail

LOGGERback to summary
private static final Logger LOGGER
modelback to summary
private final Workbench model
openModulesback to summary
private final ObservableList<WorkbenchModule> openModules
openModuleViewsback to summary
private final ObservableMap<WorkbenchModule, Node> openModuleViews
viewback to summary
private final ContentView view

Constructor Detail

ContentPresenterback to summary
public ContentPresenter(Workbench model, ContentView view)

Creates a new ContentPresenter object for a corresponding ContentView.

Parameters
model:Workbench

the workbench, holding all data

view:ContentView

the corresponding ContentView

Method Detail

initializeViewPartsback to summary
public final void initializeViewParts()

Overrides com.dlsc.workbenchfx.view.Presenter.initializeViewParts.

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

Initializes parts of the view which require more logic.

Annotations
@Override
setupBindingsback to summary
public final void setupBindings()

Overrides com.dlsc.workbenchfx.view.Presenter.setupBindings.

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

Sets up bindings of the view.

Annotations
@Override
setupEventHandlersback to summary
public final void setupEventHandlers()

Overrides com.dlsc.workbenchfx.view.Presenter.setupEventHandlers.

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

Sets up event handlers of the view.

Annotations
@Override
setupValueChangedListenersback to summary
public final void setupValueChangedListeners()

Overrides com.dlsc.workbenchfx.view.Presenter.setupValueChangedListeners.

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

Adds all listeners to view elements and model properties.

Annotations
@Override