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

public Class Page

extends Control
Class Inheritance
Imports
com.dlsc.workbenchfx.Workbench, com.dlsc.workbenchfx.model.WorkbenchModule, javafx.beans.InvalidationListener, javafx.beans.property.IntegerProperty, .SimpleIntegerProperty, javafx.collections.FXCollections, .ObservableList, javafx.scene.control.Control, .Skin, org.slf4j.Logger, .LoggerFactory

Represents the standard control used to display Pages with WorkbenchModules in the add module screen.
Authors
François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
private static final int
private static final Logger
private final ObservableList<WorkbenchModule>
private InvalidationListener
private final IntegerProperty
private final IntegerProperty
private final ObservableList<Tile>
private final Workbench

Constructor Summary

AccessConstructor and Description
public
Page(Workbench
which created this Tab
workbench
)

Constructs a new Tab.

Method Summary

Modifier and TypeMethod and Description
protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control.

public final int
public final ObservableList<Tile>
public final IntegerProperty
public final void
setPageIndex(int
to be represented by this Page
pageIndex
)

Defines the pageIndex of this Page.

private void
private void
Inherited from javafx.scene.control.Control:
computeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthcontextMenuPropertyexecuteAccessibleActiongetBaselineOffsetgetClassCssMetaDatagetContextMenugetControlCssMetaDatagetCssMetaDatagetInitialFocusTraversablegetSkingetTooltipisResizablelayoutChildrenqueryAccessibleAttributesetContextMenusetSkinsetTooltipskinPropertytooltipProperty

Field Detail

INITIAL_PAGE_INDEXback to summary
private static final int INITIAL_PAGE_INDEX
LOGGERback to summary
private static final Logger LOGGER
modulesback to summary
private final ObservableList<WorkbenchModule> modules
modulesChangedListenerback to summary
private InvalidationListener modulesChangedListener
modulesPerPageback to summary
private final IntegerProperty modulesPerPage
pageIndexback to summary
private final IntegerProperty pageIndex
tilesback to summary
private final ObservableList<Tile> tiles
workbenchback to summary
private final Workbench workbench

Constructor Detail

Pageback to summary
public Page(Workbench workbench)

Constructs a new Tab.

Parameters
workbench:Workbench

which created this Tab

Method Detail

createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Doc from javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).

Returns:Skin<?>

new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.

Annotations
@Override
getPageIndexback to summary
public final int getPageIndex()
getTilesback to summary
public final ObservableList<Tile> getTiles()
pageIndexPropertyback to summary
public final IntegerProperty pageIndexProperty()
setPageIndexback to summary
public final void setPageIndex(int pageIndex)

Defines the pageIndex of this Page.

Parameters
pageIndex:int

to be represented by this Page

setupChangeListenersback to summary
private void setupChangeListeners()
updateTilesback to summary
private void updateTiles()