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

public Class Tile

extends Control
Class Inheritance
Imports
com.dlsc.workbenchfx.Workbench, com.dlsc.workbenchfx.model.WorkbenchModule, com.dlsc.workbenchfx.util.WorkbenchUtils, javafx.beans.property.ObjectProperty, .ReadOnlyObjectProperty, .ReadOnlyStringProperty, .SimpleObjectProperty, .SimpleStringProperty, .StringProperty, javafx.scene.Node, javafx.scene.control.Control, .Skin, org.slf4j.Logger, .LoggerFactory

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

Field Summary

Modifier and TypeField and Description
private final ObjectProperty<Node>
private static final Logger
private final ObjectProperty<WorkbenchModule>
private final StringProperty
private final Workbench

Constructor Summary

AccessConstructor and Description
public
Tile(Workbench
which created this Tile
workbench
)

Constructs a new Tile.

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 Node
public final WorkbenchModule
public final String
public final ReadOnlyObjectProperty<Node>
public final ObjectProperty<WorkbenchModule>
public final ReadOnlyStringProperty
public final void
open()

Opens the WorkbenchModule belonging to this Tile.

public final void
setModule(WorkbenchModule
to be represented by this Tile
module
)

Defines the module which is being represented by this Tile.

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

Field Detail

iconback to summary
private final ObjectProperty<Node> icon
LOGGERback to summary
private static final Logger LOGGER
moduleback to summary
private final ObjectProperty<WorkbenchModule> module
nameback to summary
private final StringProperty name
workbenchback to summary
private final Workbench workbench

Constructor Detail

Tileback to summary
public Tile(Workbench workbench)

Constructs a new Tile.

Parameters
workbench:Workbench

which created this Tile

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
getIconback to summary
public final Node getIcon()
getModuleback to summary
public final WorkbenchModule getModule()
getNameback to summary
public final String getName()
iconPropertyback to summary
public final ReadOnlyObjectProperty<Node> iconProperty()
modulePropertyback to summary
public final ObjectProperty<WorkbenchModule> moduleProperty()
namePropertyback to summary
public final ReadOnlyStringProperty nameProperty()
openback to summary
public final void open()

Opens the WorkbenchModule belonging to this Tile.

setModuleback to summary
public final void setModule(WorkbenchModule module)

Defines the module which is being represented by this Tile.

Parameters
module:WorkbenchModule

to be represented by this Tile

setupEventHandlersback to summary
private void setupEventHandlers()
setupModuleListenersback to summary
private void setupModuleListeners()