Module com.flexganttfx.view
Package com.flexganttfx.view.container
Class DualGanttChartContainerBase<T extends GanttChartBase<?>>
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
com.flexganttfx.view.util.FlexGanttFXControl
com.flexganttfx.view.container.ContainerBase<T>
com.flexganttfx.view.container.DualGanttChartContainerBase<T>
- Type Parameters:
T
- the type of the Gantt chart
- All Implemented Interfaces:
Styleable
,EventTarget
,Skinnable
- Direct Known Subclasses:
DualGanttChartContainer
,DualGanttChartLiteContainer
public abstract class DualGanttChartContainerBase<T extends GanttChartBase<?>> extends ContainerBase<T>
A specialization of
ContainerBase
capable of displaying
exactly two instances of GanttChartBase
and keeping their layouts and
their scrolling and zooming behavior in sync. The container distinguishes between
a primary and a secondary Gantt chart, where the secondary Gantt chart is located
in the detail node section of a MasterDetailPane
. It can be hidden or shown
on demand. Each one of the two Gantt charts can have its own header and footer.- Since:
- 1.6
-
Property Summary
Properties Type Property Description ObjectProperty<Node>
primaryFooter
A property used to store the reference to a node that will be displayed in the footer position of the primary Gantt chart.ObjectProperty<T>
primaryGanttChart
A property used to store the reference to the Gantt chart control that is serving as the primary Gantt chart.ObjectProperty<Node>
primaryHeader
A property used to store the reference to a control that will be serving as a header for the primary Gantt chart.ObjectProperty<Node>
secondaryFooter
A property used to store the reference to a node that will be used in the footer position of the secondary Gantt chart.ObjectProperty<T>
secondaryGanttChart
A property used to store the reference to the secondary Gantt chart.ObjectProperty<Node>
secondaryHeader
A property used to store the reference to a control that will be serving as a header for the secondary Gantt chart.BooleanProperty
showSecondary
A property used to toggle the visibility of the secondary Gantt chart.Properties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
Properties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
DualGanttChartContainerBase(boolean autoBinding, T primaryGanttChart, T secondaryGanttChart)
Constructs a new container with the given Gantt chart controls.protected
DualGanttChartContainerBase(T primaryGanttChart, T secondaryGanttChart)
Constructs a new container with the given Gantt chart controls. -
Method Summary
Modifier and Type Method Description protected Skin<?>
createDefaultSkin()
org.controlsfx.control.MasterDetailPane
getMasterDetailPane()
Returns theMasterDetailPane
instance used by the skin of this control to arrange the primary and secondary Gantt charts.Node
getPrimaryFooter()
Returns the value ofprimaryFooterProperty()
.T
getPrimaryGanttChart()
Returns the value ofprimaryGanttChartProperty()
.Node
getPrimaryHeader()
Returns the value ofprimaryHeaderProperty()
.ObservableList<org.controlsfx.control.PropertySheet.Item>
getPropertySheetItems()
Returns property sheet items.Node
getSecondaryFooter()
Returns the value ofsecondaryFooterProperty()
.T
getSecondaryGanttChart()
Returns the value ofsecondaryGanttChartProperty()
.Node
getSecondaryHeader()
Returns the value ofsecondaryHeaderProperty()
.String
getUserAgentStylesheet()
boolean
isShowSecondary()
Returns the value ofshowSecondaryProperty()
.ObjectProperty<Node>
primaryFooterProperty()
A property used to store the reference to a node that will be displayed in the footer position of the primary Gantt chart.ObjectProperty<T>
primaryGanttChartProperty()
A property used to store the reference to the Gantt chart control that is serving as the primary Gantt chart.ObjectProperty<Node>
primaryHeaderProperty()
A property used to store the reference to a control that will be serving as a header for the primary Gantt chart.ObjectProperty<Node>
secondaryFooterProperty()
A property used to store the reference to a node that will be used in the footer position of the secondary Gantt chart.ObjectProperty<T>
secondaryGanttChartProperty()
A property used to store the reference to the secondary Gantt chart.ObjectProperty<Node>
secondaryHeaderProperty()
A property used to store the reference to a control that will be serving as a header for the secondary Gantt chart.void
setPrimaryFooter(Node footer)
Sets the value ofprimaryFooterProperty()
.void
setPrimaryGanttChart(T ganttChart)
Sets the value ofprimaryGanttChartProperty()
.void
setPrimaryHeader(Node header)
Sets the value of theprimaryHeaderProperty()
.void
setSecondaryFooter(Node footer)
Sets the value ofsecondaryFooterProperty()
.void
setSecondaryGanttChart(T ganttChart)
Sets the value ofsecondaryGanttChartProperty()
.void
setSecondaryHeader(Node header)
Sets the value ofsecondaryHeaderProperty()
.void
setShowSecondary(boolean show)
Sets the value ofshowSecondaryProperty()
.BooleanProperty
showSecondaryProperty()
A property used to toggle the visibility of the secondary Gantt chart.Methods inherited from class com.flexganttfx.view.container.ContainerBase
getGanttCharts, isAutoBinding
Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
Methods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
Methods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
Methods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
-
Property Details
-
primaryGanttChart
A property used to store the reference to the Gantt chart control that is serving as the primary Gantt chart.- Since:
- 1.6
- See Also:
getPrimaryGanttChart()
,setPrimaryGanttChart(T)
-
primaryHeader
A property used to store the reference to a control that will be serving as a header for the primary Gantt chart. In most cases the primary header will be a toolbar.- Since:
- 1.6
- See Also:
getPrimaryHeader()
,setPrimaryHeader(Node)
-
primaryFooter
A property used to store the reference to a node that will be displayed in the footer position of the primary Gantt chart.- Since:
- 1.6
- See Also:
getPrimaryFooter()
,setPrimaryFooter(Node)
-
secondaryHeader
A property used to store the reference to a control that will be serving as a header for the secondary Gantt chart. In most cases the secondary header will not be used.- Returns:
- the secondary header control property
- Since:
- 1.6
-
secondaryFooter
A property used to store the reference to a node that will be used in the footer position of the secondary Gantt chart.- Since:
- 1.6
- See Also:
getSecondaryFooter()
,setSecondaryFooter(Node)
-
secondaryGanttChart
A property used to store the reference to the secondary Gantt chart. -
showSecondary
A property used to toggle the visibility of the secondary Gantt chart.- Since:
- 1.6
- See Also:
isShowSecondary()
,setShowSecondary(boolean)
-
-
Constructor Details
-
DualGanttChartContainerBase
protected DualGanttChartContainerBase(boolean autoBinding, T primaryGanttChart, T secondaryGanttChart)Constructs a new container with the given Gantt chart controls.- Parameters:
autoBinding
- if true many properties of the secondary control will be bound to their equivalent of the primary Gantt chartprimaryGanttChart
- the primary Gantt chart shown in the top positionsecondaryGanttChart
- the secondary Gantt chart shown in the bottom position- Since:
- 1.6
-
DualGanttChartContainerBase
Constructs a new container with the given Gantt chart controls. The properties of the secondary Gantt chart will be bound to their equivalent of the primary Gantt chart.- Parameters:
primaryGanttChart
- the primary Gantt chart shown in the top positionsecondaryGanttChart
- the secondary Gantt chart shown in the bottom position- Since:
- 1.6
-
-
Method Details
-
createDefaultSkin
- Overrides:
createDefaultSkin
in classControl
-
getUserAgentStylesheet
- Overrides:
getUserAgentStylesheet
in classRegion
-
getMasterDetailPane
public final org.controlsfx.control.MasterDetailPane getMasterDetailPane()Returns theMasterDetailPane
instance used by the skin of this control to arrange the primary and secondary Gantt charts. The primary Gantt chart will be the master and the secondary Gantt chart will be the detail node.- Returns:
- the master detail pane
- Since:
- 1.3
- See Also:
MasterDetailPane.setMasterNode(Node)
,MasterDetailPane.setDetailNode(Node)
-
primaryGanttChartProperty
A property used to store the reference to the Gantt chart control that is serving as the primary Gantt chart.- Since:
- 1.6
- See Also:
getPrimaryGanttChart()
,setPrimaryGanttChart(T)
-
setPrimaryGanttChart
Sets the value ofprimaryGanttChartProperty()
.- Parameters:
ganttChart
- the gantt chart control- Since:
- 1.6
-
getPrimaryGanttChart
Returns the value ofprimaryGanttChartProperty()
.- Returns:
- the primary Gantt chart control
- Since:
- 1.6
-
primaryHeaderProperty
A property used to store the reference to a control that will be serving as a header for the primary Gantt chart. In most cases the primary header will be a toolbar.- Since:
- 1.6
- See Also:
getPrimaryHeader()
,setPrimaryHeader(Node)
-
setPrimaryHeader
Sets the value of theprimaryHeaderProperty()
.- Parameters:
header
- the node that will be used as a header- Since:
- 1.6
-
getPrimaryHeader
Returns the value ofprimaryHeaderProperty()
.- Returns:
- the primary header node
- Since:
- 1.6
-
primaryFooterProperty
A property used to store the reference to a node that will be displayed in the footer position of the primary Gantt chart.- Since:
- 1.6
- See Also:
getPrimaryFooter()
,setPrimaryFooter(Node)
-
setPrimaryFooter
Sets the value ofprimaryFooterProperty()
.- Parameters:
footer
- the node that will be displayed in the footer position of the primary Gantt chart- Since:
- 1.6
-
getPrimaryFooter
Returns the value ofprimaryFooterProperty()
.- Returns:
- the node displayed in the footer position of the primary Gantt chart
- Since:
- 1.6
-
secondaryHeaderProperty
A property used to store the reference to a control that will be serving as a header for the secondary Gantt chart. In most cases the secondary header will not be used.- Returns:
- the secondary header control property
- Since:
- 1.6
-
setSecondaryHeader
Sets the value ofsecondaryHeaderProperty()
.- Parameters:
header
- the control used as a header for the secondary Gantt chart- Since:
- 1.6
-
getSecondaryHeader
Returns the value ofsecondaryHeaderProperty()
.- Returns:
- the secondary header node
- Since:
- 1.6
-
secondaryFooterProperty
A property used to store the reference to a node that will be used in the footer position of the secondary Gantt chart.- Since:
- 1.6
- See Also:
getSecondaryFooter()
,setSecondaryFooter(Node)
-
setSecondaryFooter
Sets the value ofsecondaryFooterProperty()
.- Parameters:
footer
- the node that will be shown in the footer position of the secondary Gantt chart- Since:
- 1.6
-
getSecondaryFooter
Returns the value ofsecondaryFooterProperty()
.- Returns:
- the secondary footer node
- Since:
- 1.6
-
secondaryGanttChartProperty
A property used to store the reference to the secondary Gantt chart. -
setSecondaryGanttChart
Sets the value ofsecondaryGanttChartProperty()
.- Parameters:
ganttChart
- the gantt chart control- Since:
- 1.6
-
getSecondaryGanttChart
Returns the value ofsecondaryGanttChartProperty()
.- Returns:
- the secondary Gantt chart control
- Since:
- 1.6
-
showSecondaryProperty
A property used to toggle the visibility of the secondary Gantt chart.- Since:
- 1.6
- See Also:
isShowSecondary()
,setShowSecondary(boolean)
-
isShowSecondary
public final boolean isShowSecondary()Returns the value ofshowSecondaryProperty()
.- Returns:
- true if the secondary Gantt chart shall be visible
- Since:
- 1.6
-
setShowSecondary
public final void setShowSecondary(boolean show)Sets the value ofshowSecondaryProperty()
.- Parameters:
show
- if true the secondary Gantt chart will be visible- Since:
- 1.6
-
getPropertySheetItems
Returns property sheet items.- Returns:
- property sheet items
-