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

public final Class ToolbarPresenter

extends Presenter
Class Inheritance
Imports
com.dlsc.workbenchfx.Workbench, com.dlsc.workbenchfx.model.WorkbenchModule, com.dlsc.workbenchfx.view.controls.ToolbarItem, com.dlsc.workbenchfx.view.controls.selectionstrip.TabCell, java.util.Objects, javafx.beans.InvalidationListener, javafx.collections.ListChangeListener, .ObservableList, javafx.css.PseudoClass, javafx.scene.control.MenuItem, org.slf4j.Logger, .LoggerFactory

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

Field Summary

Modifier and TypeField and Description
private static final PseudoClass
private static final Logger
private final Workbench
private final ObservableList<WorkbenchModule>
private static final String
private final ObservableList<ToolbarItem>
private final ObservableList<ToolbarItem>
private final ToolbarView

Constructor Summary

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

Creates a new ToolbarPresenter object for a corresponding ToolbarView.

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.

private void
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.

private void
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

EMPTY_STATEback to summary
private static final PseudoClass EMPTY_STATE
LOGGERback to summary
private static final Logger LOGGER
modelback to summary
private final Workbench model
openModulesback to summary
private final ObservableList<WorkbenchModule> openModules
STYLE_CLASS_ACTIVE_ADD_BUTTONback to summary
private static final String STYLE_CLASS_ACTIVE_ADD_BUTTON
toolbarControlsLeftback to summary
private final ObservableList<ToolbarItem> toolbarControlsLeft
toolbarControlsRightback to summary
private final ObservableList<ToolbarItem> toolbarControlsRight
viewback to summary
private final ToolbarView view

Constructor Detail

ToolbarPresenterback to summary
public ToolbarPresenter(Workbench model, ToolbarView view)

Creates a new ToolbarPresenter object for a corresponding ToolbarView.

Parameters
model:Workbench

the workbench, holding all data

view:ToolbarView

the corresponding ToolbarView

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
setupActiveModuleListenerback to summary
private void setupActiveModuleListener()
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
setupMenuBtnback to summary
private void setupMenuBtn()
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