Top Description Inners Fields Constructors Methods
impl.org.controlsfx.spreadsheet

public Class HorizontalPicker

extends StackPane
Class Inheritance
Imports
java.util.Stack, javafx.beans.InvalidationListener, .Observable, javafx.event.EventHandler, javafx.scene.control.Label, javafx.scene.control.skin.TableColumnHeader, javafx.scene.input.MouseEvent, javafx.scene.layout.Region, .StackPane, javafx.scene.shape.Rectangle, org.controlsfx.control.spreadsheet.Picker, .SpreadsheetView

This class will display all the available pickers. It is a StackPane clipped which contain a inner Region that display the picker. In that way, we don't need to re-layout every time but just "slide" the inner Region inside this class so that the pickers are sliding along with the TableColumnHeaders.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
HorizontalPicker.InnerHorizontalPicker

Inner class that will lay out all the pickers.

Field Summary

Modifier and TypeField and Description
private final HorizontalHeader
private final HorizontalPicker.InnerHorizontalPicker
private final InvalidationListener
private static final String
private final EventHandler<MouseEvent>
private final Stack<Label>
private final Stack<Label>
private final SpreadsheetView

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Label
getPicker(Picker picker)

protected void
layoutChildren()

Overrides javafx.scene.layout.StackPane.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

public void
updateScrollX()

Method called by the HorizontalHeader in order to slide the pickers.

Inherited from javafx.scene.layout.StackPane:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthgetAlignmentgetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMarginrequestLayoutsetAlignmentsetAlignmentsetMargin

Field Detail

horizontalHeaderback to summary
private final HorizontalHeader horizontalHeader
innerPickerback to summary
private final HorizontalPicker.InnerHorizontalPicker innerPicker
layoutListenerback to summary
private final InvalidationListener layoutListener
PICKER_INDEXback to summary
private static final String PICKER_INDEX
pickerMouseEventback to summary
private final EventHandler<MouseEvent> pickerMouseEvent
pickerPileback to summary
private final Stack<Label> pickerPile
pickerUsedback to summary
private final Stack<Label> pickerUsed
spvback to summary
private final SpreadsheetView spv

Constructor Detail

HorizontalPickerback to summary
public HorizontalPicker(HorizontalHeader horizontalHeader, SpreadsheetView spv)

Method Detail

getPickerback to summary
private Label getPicker(Picker picker)
layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.layout.StackPane.layoutChildren.

Doc from javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override
updateScrollXback to summary
public void updateScrollX()

Method called by the HorizontalHeader in order to slide the pickers.

impl.org.controlsfx.spreadsheet back to summary

private Class HorizontalPicker.InnerHorizontalPicker

extends Region
Class Inheritance

Inner class that will lay out all the pickers.

Field Summary

Inherited from javafx.scene.layout.Region:
USE_COMPUTED_SIZEUSE_PREF_SIZE

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected void
layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

Inherited from javafx.scene.layout.Region:
backgroundPropertyborderPropertycacheShapePropertycenterShapePropertycomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthgetBackgroundgetBordergetClassCssMetaDatagetCssMetaDatagetHeightgetInsetsgetMaxHeightgetMaxWidthgetMinHeightgetMinWidthgetOpaqueInsetsgetPaddinggetPrefHeightgetPrefWidthgetShapegetUserAgentStylesheetgetWidthheightPropertyinsetsPropertyisCacheShapeisCenterShapeisResizableisScaleShapeisSnapToPixellayoutInArealayoutInArealayoutInArealayoutInAreamaxHeightmaxHeightPropertymaxWidthmaxWidthPropertyminHeightminHeightPropertyminWidthminWidthPropertyopaqueInsetsPropertypaddingPropertypositionInAreapositionInAreaprefHeightprefHeightPropertyprefWidthprefWidthPropertyresizescaleShapePropertysetBackgroundsetBordersetCacheShapesetCenterShapesetHeightsetMaxHeightsetMaxSizesetMaxWidthsetMinHeightsetMinSizesetMinWidthsetOpaqueInsetssetPaddingsetPrefHeightsetPrefSizesetPrefWidthsetScaleShapesetShapesetSnapToPixelsetWidthshapePropertysnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYsnapToPixelPropertywidthProperty

Constructor Detail

InnerHorizontalPickerback to summary
private InnerHorizontalPicker()

Method Detail

layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Doc from javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override