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

public Class DialogSkin

extends SkinBase<DialogControl>
Class Inheritance
Imports
com.dlsc.workbenchfx.model.WorkbenchDialog, com.dlsc.workbenchfx.view.controls.MultilineLabel, java.util.Objects, javafx.beans.binding.Bindings, javafx.beans.property.ReadOnlyObjectProperty, javafx.collections.ObservableList, javafx.scene.control.Button, .ButtonBar, .Label, .SkinBase, javafx.scene.layout.HBox, .Priority, .StackPane, .VBox, org.slf4j.Logger, .LoggerFactory

Represents the Skin of the DialogControl.
Authors
Dirk Lemmermann, François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
private final ObservableList<Button>
private final ReadOnlyObjectProperty<WorkbenchDialog>
private ButtonBar
private StackPane
private HBox
private VBox
private Label
private static final Logger
private static final double

Constructor Summary

AccessConstructor and Description
public
DialogSkin(DialogControl
the DialogControl for which this Skin is created
dialogControl
)

Creates a new DialogSkin object for a corresponding DialogControl.

Method Summary

Modifier and TypeMethod and Description
private void
protected void
layoutChildren(double
the x position
contentX
,
double
the y position
contentY
,
double
the width
contentWidth
,
double
the height
contentHeight
)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

private void
private void
private void
private void
private void
Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthconsumeMouseEventsdisposeexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

buttonsback to summary
private final ObservableList<Button> buttons
dialogback to summary
private final ReadOnlyObjectProperty<WorkbenchDialog> dialog
dialogButtonBarback to summary
private ButtonBar dialogButtonBar
dialogContentPaneback to summary
private StackPane dialogContentPane
dialogHeaderback to summary
private HBox dialogHeader
dialogPaneback to summary
private VBox dialogPane
dialogTitleback to summary
private Label dialogTitle
LOGGERback to summary
private static final Logger LOGGER
MARGIN_PERCENTback to summary
private static final double MARGIN_PERCENT

Constructor Detail

DialogSkinback to summary
public DialogSkin(DialogControl dialogControl)

Creates a new DialogSkin object for a corresponding DialogControl.

Parameters
dialogControl:DialogControl

the DialogControl for which this Skin is created

Method Detail

initializePartsback to summary
private void initializeParts()
layoutChildrenback to summary
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Doc from javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

Parameters
contentX:double

the x position

contentY:double

the y position

contentWidth:double

the width

contentHeight:double

the height

Annotations
@Override
layoutPartsback to summary
private void layoutParts()
setupBindingsback to summary
private void setupBindings()
setupEventHandlersback to summary
private void setupEventHandlers()
setupValueChangedListenersback to summary
private void setupValueChangedListeners()
updateDialogback to summary
private void updateDialog(WorkbenchDialog oldDialog, WorkbenchDialog newDialog)