java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
javafx.scene.control.TabPane
org.tentackle.fx.container.FxTabPane
- All Implemented Interfaces:
javafx.css.Styleable
,javafx.event.EventTarget
,javafx.scene.control.Skinnable
,FxContainer
,FxControl
Extended TabPane.
- Author:
- harald
-
Property Summary
TypePropertyDescriptionjavafx.beans.property.ReadOnlyBooleanProperty
Gets the changeable property.javafx.beans.property.BooleanProperty
Gets the viewModified property.Properties inherited from class javafx.scene.control.TabPane
rotateGraphic, selectionModel, side, tabClosingPolicy, tabDragPolicy, tabMaxHeight, tabMaxWidth, tabMinHeight, tabMinWidth
Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltip
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.Parent
needsLayout
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, focusVisible, focusWithin, 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
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.scene.control.TabPane
javafx.scene.control.TabPane.TabClosingPolicy, javafx.scene.control.TabPane.TabDragPolicy
-
Field Summary
Fields inherited from class javafx.scene.control.TabPane
STYLE_CLASS_FLOATING
Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZE
Fields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addModelToViewListener
(ModelToViewListener listener) Adds a model-to-view listener.
The listener will be invoked before the binding operation.
If the control is a container, the listener will be invoked if any of the container's components get updated.void
addViewToModelListener
(ViewToModelListener listener) Adds a view-to-model listener.
The listener will be invoked after the binding operation.
If the control is a container, the listener will be invoked if any of the container's components update the model.javafx.beans.property.ReadOnlyBooleanProperty
Gets the changeable property.void
Clears all error messages in all components.protected FxTabPaneDelegate
Creates the delegate.javafx.collections.ObservableList
<?> Gets the component nodes maintained by this container.Gets the controller of this container.<C extends FxController>
CgetController
(Class<C> clazz) Gets the controller along the parent hierarchy that is an instanceof the given class.Gets the lazily created component delegate.Gets the online-help URL.Gets the parent container.void
Invalidates the saved view.boolean
Determines whether this container is bindable.boolean
Gets the value of thechangeable
property.boolean
Returns whether setContainerChangeable is ignored by this control.boolean
Gets the value of theviewModified
property.void
removeModelToViewListener
(ModelToViewListener listener) Removes a model-to-view listener.void
removeViewToModelListener
(ViewToModelListener listener) Removes a view-to-model listener.void
saveView()
Creates a copy of the value shown to the user.void
setBindable
(boolean bindable) Sets whether this control is bindable, i.e. should be checked within a binding hierarchy.void
setChangeable
(boolean changeable) Sets the value of thechangeable
property.void
setContainerChangeable
(boolean containerChangeable) Invoked when setChangeable() is invoked on the container of this component.void
setContainerChangeableIgnored
(boolean containerChangeableIgnored) Sets whether to ignore setContainerChangeable.void
setController
(FxController controller) Sets the controller of this container.void
setHelpUrl
(String helpUrl) Sets the online-help URL.
If a help url is set, a browser will be launched to show that url if there is no help url for the control the help was requested for.void
setViewModified
(boolean viewModified) Sets the value of theviewModified
property.void
showHelp()
Displays online help if configured.Returns the classname plus optional fx:id.void
Walks up the component hierarchy and updates the viewModified property.
This is done by comparing the saved view value with the current view.void
Updates the model according to the view.void
Updates the view according to the model.void
Updates the view according to the model.
The method is the same asFxControl.updateView()
but skips any focused component.javafx.beans.property.BooleanProperty
Gets the viewModified property.Methods inherited from class javafx.scene.control.TabPane
createDefaultSkin, getClassCssMetaData, getControlCssMetaData, getSelectionModel, getSide, getTabClosingPolicy, getTabDragPolicy, getTabMaxHeight, getTabMaxWidth, getTabMinHeight, getTabMinWidth, getTabs, isRotateGraphic, lookup, lookupAll, rotateGraphicProperty, selectionModelProperty, setRotateGraphic, setSelectionModel, setSide, setTabClosingPolicy, setTabDragPolicy, setTabMaxHeight, setTabMaxWidth, setTabMinHeight, setTabMinWidth, sideProperty, tabClosingPolicyProperty, tabDragPolicyProperty, tabMaxHeightProperty, tabMaxWidthProperty, tabMinHeightProperty, tabMinWidthProperty
Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, 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, getUserAgentStylesheet, 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, 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, focusVisibleProperty, focusWithinProperty, 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, isFocusVisible, isFocusWithin, 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, 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
changeable
public javafx.beans.property.ReadOnlyBooleanProperty changeableProperty- Specified by:
changeableProperty
in interfaceFxControl
- Returns:
- the property
- See Also:
-
viewModified
public javafx.beans.property.BooleanProperty viewModifiedProperty- Specified by:
viewModifiedProperty
in interfaceFxControl
- Returns:
- the property
- See Also:
-
-
Constructor Details
-
FxTabPane
public FxTabPane()Creates a FxTabPane.
-
-
Method Details
-
createDelegate
Creates the delegate.- Returns:
- the delegate
-
getDelegate
Description copied from interface:FxControl
Gets the lazily created component delegate.- Specified by:
getDelegate
in interfaceFxControl
- Returns:
- the delegate
-
getParentContainer
Description copied from interface:FxControl
Gets the parent container.- Specified by:
getParentContainer
in interfaceFxControl
- Returns:
- the parent, null if not a component of a container
-
getComponents
public javafx.collections.ObservableList<?> getComponents()Description copied from interface:FxContainer
Gets the component nodes maintained by this container.- Specified by:
getComponents
in interfaceFxContainer
- Returns:
- list of components
-
setChangeable
public void setChangeable(boolean changeable) Sets the value of thechangeable
property.- Specified by:
setChangeable
in interfaceFxControl
- Property description:
- Parameters:
changeable
- the value for thechangeable
property- See Also:
-
isChangeable
public boolean isChangeable()Gets the value of thechangeable
property.- Specified by:
isChangeable
in interfaceFxControl
- Property description:
- Returns:
- the value of the
changeable
property - See Also:
-
setContainerChangeable
public void setContainerChangeable(boolean containerChangeable) Description copied from interface:FxControl
Invoked when setChangeable() is invoked on the container of this component.- Specified by:
setContainerChangeable
in interfaceFxControl
- Parameters:
containerChangeable
- true if container is changeable, false if all components readonly
-
setContainerChangeableIgnored
public void setContainerChangeableIgnored(boolean containerChangeableIgnored) Description copied from interface:FxControl
Sets whether to ignore setContainerChangeable.- Specified by:
setContainerChangeableIgnored
in interfaceFxControl
- Parameters:
containerChangeableIgnored
- true if ignore, default is false
-
isContainerChangeableIgnored
public boolean isContainerChangeableIgnored()Description copied from interface:FxControl
Returns whether setContainerChangeable is ignored by this control.- Specified by:
isContainerChangeableIgnored
in interfaceFxControl
- Returns:
- true if ignore
-
changeableProperty
public javafx.beans.property.ReadOnlyBooleanProperty changeableProperty()Description copied from interface:FxControl
Gets the changeable property.- Specified by:
changeableProperty
in interfaceFxControl
- Returns:
- the
changeable
property - See Also:
-
updateViewNonFocused
public void updateViewNonFocused()Description copied from interface:FxContainer
Updates the view according to the model.
The method is the same asFxControl.updateView()
but skips any focused component.- Specified by:
updateViewNonFocused
in interfaceFxContainer
-
updateView
public void updateView()Description copied from interface:FxControl
Updates the view according to the model.- Specified by:
updateView
in interfaceFxControl
-
updateModel
public void updateModel()Description copied from interface:FxControl
Updates the model according to the view.- Specified by:
updateModel
in interfaceFxControl
-
saveView
public void saveView()Description copied from interface:FxControl
Creates a copy of the value shown to the user. -
invalidateSavedView
public void invalidateSavedView()Description copied from interface:FxControl
Invalidates the saved view.- Specified by:
invalidateSavedView
in interfaceFxControl
-
triggerViewModified
public void triggerViewModified()Description copied from interface:FxControl
Walks up the component hierarchy and updates the viewModified property.
This is done by comparing the saved view value with the current view.- Specified by:
triggerViewModified
in interfaceFxControl
-
setViewModified
public void setViewModified(boolean viewModified) Sets the value of theviewModified
property.- Specified by:
setViewModified
in interfaceFxControl
- Property description:
- Parameters:
viewModified
- the value for theviewModified
property- See Also:
-
isViewModified
public boolean isViewModified()Gets the value of theviewModified
property.- Specified by:
isViewModified
in interfaceFxControl
- Property description:
- Returns:
- the value of the
viewModified
property - See Also:
-
viewModifiedProperty
public javafx.beans.property.BooleanProperty viewModifiedProperty()Description copied from interface:FxControl
Gets the viewModified property.- Specified by:
viewModifiedProperty
in interfaceFxControl
- Returns:
- the
viewModified
property - See Also:
-
setBindable
public void setBindable(boolean bindable) Description copied from interface:FxControl
Sets whether this control is bindable, i.e. should be checked within a binding hierarchy.- Specified by:
setBindable
in interfaceFxControl
- Parameters:
bindable
- true if bindable, else not eligible for the binding process
-
isBindable
public boolean isBindable()Description copied from interface:FxControl
Determines whether this container is bindable.- Specified by:
isBindable
in interfaceFxControl
- Returns:
- true if bindable, else not eligible for the binding process
-
setHelpUrl
Description copied from interface:FxControl
Sets the online-help URL.
If a help url is set, a browser will be launched to show that url if there is no help url for the control the help was requested for.- Specified by:
setHelpUrl
in interfaceFxControl
- Parameters:
helpUrl
- the help url
-
getHelpUrl
Description copied from interface:FxControl
Gets the online-help URL.- Specified by:
getHelpUrl
in interfaceFxControl
- Returns:
- the help url, default is null
-
showHelp
public void showHelp()Description copied from interface:FxControl
Displays online help if configured. -
toGenericString
Description copied from interface:FxControl
Returns the classname plus optional fx:id.- Specified by:
toGenericString
in interfaceFxControl
- Returns:
- the generic string for diagnostics and logging
-
clearErrors
public void clearErrors()Description copied from interface:FxContainer
Clears all error messages in all components.- Specified by:
clearErrors
in interfaceFxContainer
-
getController
Description copied from interface:FxContainer
Gets the controller of this container.- Specified by:
getController
in interfaceFxContainer
- Returns:
- the controller, null if nested container without a controller
-
setController
Description copied from interface:FxContainer
Sets the controller of this container.- Specified by:
setController
in interfaceFxContainer
- Parameters:
controller
- the controller, null if nested container without a controller
-
getController
Description copied from interface:FxContainer
Gets the controller along the parent hierarchy that is an instanceof the given class.- Specified by:
getController
in interfaceFxContainer
- Type Parameters:
C
- the controller type- Parameters:
clazz
- the controller class- Returns:
- the controller, null if no such controller
-
addModelToViewListener
Description copied from interface:FxControl
Adds a model-to-view listener.
The listener will be invoked before the binding operation.
If the control is a container, the listener will be invoked if any of the container's components get updated.- Specified by:
addModelToViewListener
in interfaceFxControl
- Parameters:
listener
- the value listener to add
-
removeModelToViewListener
Description copied from interface:FxControl
Removes a model-to-view listener.- Specified by:
removeModelToViewListener
in interfaceFxControl
- Parameters:
listener
- the value listener to remove
-
addViewToModelListener
Description copied from interface:FxControl
Adds a view-to-model listener.
The listener will be invoked after the binding operation.
If the control is a container, the listener will be invoked if any of the container's components update the model.- Specified by:
addViewToModelListener
in interfaceFxControl
- Parameters:
listener
- the value listener to add
-
removeViewToModelListener
Description copied from interface:FxControl
Removes a view-to-model listener.- Specified by:
removeViewToModelListener
in interfaceFxControl
- Parameters:
listener
- the value listener to remove
-