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

public final Class AddModulePresenter

extends Presenter
Class Inheritance
Imports
com.dlsc.workbenchfx.Workbench, com.dlsc.workbenchfx.view.controls.module.Page, javafx.css.PseudoClass, org.slf4j.Logger, .LoggerFactory

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

Field Summary

Modifier and TypeField and Description
private static final Logger
private final Workbench
private static final PseudoClass
private final AddModuleView

Constructor Summary

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

Creates a new AddModulePresenter object for a corresponding AddModuleView.

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.

private void
updatePageCount(int amountOfPages)

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
ONE_PAGE_STATEback to summary
private static final PseudoClass ONE_PAGE_STATE
viewback to summary
private final AddModuleView view

Constructor Detail

AddModulePresenterback to summary
public AddModulePresenter(Workbench model, AddModuleView view)

Creates a new AddModulePresenter object for a corresponding AddModuleView.

Parameters
model:Workbench

the workbench, holding all data

view:AddModuleView

the corresponding AddModuleView

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
updatePageCountback to summary
private void updatePageCount(int amountOfPages)