java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
javafx.scene.control.Labeled
javafx.scene.control.ButtonBase
javafx.scene.control.ToggleButton
javafx.scene.control.RadioButton
org.tentackle.fx.component.FxRadioButton
- All Implemented Interfaces:
javafx.css.Styleable
,javafx.event.EventTarget
,javafx.scene.control.Skinnable
,javafx.scene.control.Toggle
,ErrorPopupSupported
,FxComponent
,FxControl
,InfoPopupSupported
Extended RadioButton.
- Author:
- harald
-
Property Summary
TypePropertyDescriptionjavafx.beans.property.ReadOnlyBooleanProperty
Gets the changeable property.javafx.beans.property.BooleanProperty
Gets the mandatory property.javafx.beans.property.BooleanProperty
Gets the viewModified property.Properties inherited from class javafx.scene.control.ToggleButton
selected, toggleGroup
Properties inherited from class javafx.scene.control.ButtonBase
armed, onAction
Properties inherited from class javafx.scene.control.Labeled
alignment, contentDisplay, ellipsisString, font, graphic, graphicTextGap, labelPadding, lineSpacing, mnemonicParsing, textAlignment, textFill, textOverrun, text, underline, wrapText
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
-
Field Summary
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.protected FxRadioButtonDelegate
Creates the delegate.Gets the binding.Gets the binding path.Gets the component path.Gets the lazily created component delegate.getError()
Gets the error message.Gets the generic type.Gets the online-help URL.getInfo()
Gets the info message.Gets the parent container.Retrieves the view value saved withFxControl.saveView()
.
The returned type is the internal native type of the component.FxTableCell
<?, ?> Gets the table cell if the component is used as a table cell editor.FxTreeTableCell
<?, ?> Gets the treetable cell if the component is used as a treetable cell editor.Class
<?> getType()
Gets the type this component returns viaFxComponent.getViewValue()
.ValueTranslator
<?, ?> Gets the value translator.Retrieves the internal native object of the component.<V> V
Retrieves the value from this component.
The value's type is that of the model.void
Hides the error popup if shown.void
Hides the info popup if shown.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
Returns whether this is a temporary error.
Temporary errors are set by the value translators typically if some parsing failed.boolean
Returns whether theViewToModelListener
s should be invoked even if the model's value did not change at all.
By default, the listener will always be invoked.boolean
Returns whether theModelToViewListener
s should be invoked even if the view's value will not change at all.
By default, the listener will always be invoked.boolean
Gets the value of themandatory
property.boolean
Returns whether model was updated andFxControl.updateView()
not invoked since then.
Some components, such as FxTableView, never update the model because this is already done by the ObservableList.boolean
Returns whether the view object is saved.boolean
Gets the value of theviewModified
property.javafx.beans.property.BooleanProperty
Gets the mandatory 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
setBinding
(FxComponentBinding binding) Sets the binding.void
setBindingPath
(String bindingPath) Sets the path to bind this component to.void
setChangeable
(boolean changeable) Sets the value of thechangeable
property.void
setComponentPath
(String componentPath) Sets the component path.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
setDelegate
(FxRadioButtonDelegate delegate) Sets the delegate.
Useful for application specific needs.void
Sets the error message.
Notice that an empty string will set the style but does not show any popup.void
setErrorTemporary
(boolean errorTemporary) Sets the temporary error flag.void
setGenericType
(Type type) Sets the generic type.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
Sets the info message.
Notice that an empty string will set the style but does not show any popup.void
setListenerSuppressedIfModelUnchanged
(boolean listenerSuppressedIfModelUnchanged) Sets whether theViewToModelListener
s should be invoked even if the model's value did not change at all.void
setListenerSuppressedIfViewUnchanged
(boolean listenerSuppressedIfViewUnchanged) Sets whether theModelToViewListener
s should be invoked even if the view's value will not change at all.void
setMandatory
(boolean mandatory) Sets the value of themandatory
property.void
setTableCell
(FxTableCell<?, ?> tableCell) Sets the table cell if the component is used as a table cell editor.void
setTreeTableCell
(FxTreeTableCell<?, ?> treeTableCell) Sets the treetable cell if the component is used as a treetable cell editor.void
Sets the type for this component.void
setValueTranslator
(ValueTranslator<?, ?> valueTranslator) Sets a value translator.void
setViewModified
(boolean viewModified) Sets the value of theviewModified
property.void
setViewObject
(Object viewObject) Sets the internal native object of the component.void
setViewValue
(Object value) Sets a value in this component.
The value's type is that of the model.void
Shows the error popup.
Requires the error message set.void
showHelp()
Displays online help if configured.void
Shows the info popup.
Requires the info message set.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.javafx.beans.property.BooleanProperty
Gets the viewModified property.Methods inherited from class javafx.scene.control.RadioButton
createDefaultSkin, fire, getInitialAlignment, queryAccessibleAttribute
Methods inherited from class javafx.scene.control.ToggleButton
getToggleGroup, isSelected, selectedProperty, setSelected, setToggleGroup, toggleGroupProperty
Methods inherited from class javafx.scene.control.ButtonBase
arm, armedProperty, disarm, executeAccessibleAction, getOnAction, isArmed, onActionProperty, setOnAction
Methods inherited from class javafx.scene.control.Labeled
alignmentProperty, contentDisplayProperty, ellipsisStringProperty, fontProperty, getAlignment, getClassCssMetaData, getContentBias, getContentDisplay, getControlCssMetaData, getEllipsisString, getFont, getGraphic, getGraphicTextGap, getLabelPadding, getLineSpacing, getText, getTextAlignment, getTextFill, getTextOverrun, graphicProperty, graphicTextGapProperty, isMnemonicParsing, isUnderline, isWrapText, labelPaddingProperty, lineSpacingProperty, mnemonicParsingProperty, setAlignment, setContentDisplay, setEllipsisString, setFont, setGraphic, setGraphicTextGap, setLineSpacing, setMnemonicParsing, setText, setTextAlignment, setTextFill, setTextOverrun, setUnderline, setWrapText, textAlignmentProperty, textFillProperty, textOverrunProperty, textProperty, toString, underlineProperty, wrapTextProperty
Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, 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, 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, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, 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, 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, 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 org.tentackle.fx.FxComponent
isCellEditor
Methods inherited from interface javafx.css.Styleable
getStyleableNode
Methods inherited from interface javafx.scene.control.Toggle
getProperties, getUserData, setUserData
-
Property Details
-
mandatory
public javafx.beans.property.BooleanProperty mandatoryProperty- Specified by:
mandatoryProperty
in interfaceFxComponent
- Returns:
- the property
- See Also:
-
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
-
FxRadioButton
public FxRadioButton()Creates a FxRadioButton.
-
-
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 interfaceFxComponent
- Specified by:
getDelegate
in interfaceFxControl
- Returns:
- the delegate
-
setDelegate
Sets the delegate.
Useful for application specific needs.- Parameters:
delegate
- 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
-
setValueTranslator
Description copied from interface:FxComponent
Sets a value translator.- Specified by:
setValueTranslator
in interfaceFxComponent
- Parameters:
valueTranslator
- the translator
-
getValueTranslator
Description copied from interface:FxComponent
Gets the value translator.- Specified by:
getValueTranslator
in interfaceFxComponent
- Returns:
- the translator
-
invalidateSavedView
public void invalidateSavedView()Description copied from interface:FxControl
Invalidates the saved view.- Specified by:
invalidateSavedView
in interfaceFxControl
-
isSavedViewObjectValid
public boolean isSavedViewObjectValid()Description copied from interface:FxComponent
Returns whether the view object is saved.- Specified by:
isSavedViewObjectValid
in interfaceFxComponent
- Returns:
- true if saved, false if invalid
-
getViewValue
public <V> V getViewValue()Description copied from interface:FxComponent
Retrieves the value from this component.
The value's type is that of the model.- Specified by:
getViewValue
in interfaceFxComponent
- Type Parameters:
V
- the value's type- Returns:
- the value shown by the component
-
setViewValue
Description copied from interface:FxComponent
Sets a value in this component.
The value's type is that of the model.- Specified by:
setViewValue
in interfaceFxComponent
- Parameters:
value
- is the value to set
-
setType
Description copied from interface:FxComponent
Sets the type for this component.Notice that the type can be applied only once. This is because previously installed listeners could cause memory leaks.
- Specified by:
setType
in interfaceFxComponent
- Parameters:
type
- the type
-
getType
Description copied from interface:FxComponent
Gets the type this component returns viaFxComponent.getViewValue()
.- Specified by:
getType
in interfaceFxComponent
- Returns:
- the type
-
setGenericType
Description copied from interface:FxComponent
Sets the generic type.- Specified by:
setGenericType
in interfaceFxComponent
- Parameters:
type
- the generic type
-
getGenericType
Description copied from interface:FxComponent
Gets the generic type.- Specified by:
getGenericType
in interfaceFxComponent
- Returns:
- the generic type
-
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
-
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
-
setMandatory
public void setMandatory(boolean mandatory) Sets the value of themandatory
property.- Specified by:
setMandatory
in interfaceFxComponent
- Property description:
- Parameters:
mandatory
- the value for themandatory
property- See Also:
-
isMandatory
public boolean isMandatory()Gets the value of themandatory
property.- Specified by:
isMandatory
in interfaceFxComponent
- Property description:
- Returns:
- the value of the
mandatory
property - See Also:
-
mandatoryProperty
public javafx.beans.property.BooleanProperty mandatoryProperty()Description copied from interface:FxComponent
Gets the mandatory property.- Specified by:
mandatoryProperty
in interfaceFxComponent
- Returns:
- the
mandatory
property - See Also:
-
setBindingPath
Description copied from interface:FxComponent
Sets the path to bind this component to.Usually the binding path will be determined from the components declared name. However, it can be set programmatically as well.
- Specified by:
setBindingPath
in interfaceFxComponent
- Parameters:
bindingPath
- the binding path, for ex."invoiceNumber"
, null if autobinding- See Also:
-
getBindingPath
Description copied from interface:FxComponent
Gets the binding path.- Specified by:
getBindingPath
in interfaceFxComponent
- Returns:
- the field path, null if autobinding (default)
-
setComponentPath
Description copied from interface:FxComponent
Sets the component path.The path is
<declaring-class-name>.<field-name>
. Example"de.krake.invoicer.InvoicePanel.customerNumberField"
.Notice: the component path is set during binding.
- Specified by:
setComponentPath
in interfaceFxComponent
- Parameters:
componentPath
- the component path
-
getComponentPath
Description copied from interface:FxComponent
Gets the component path.- Specified by:
getComponentPath
in interfaceFxComponent
- Returns:
- the component path, null if not bound
-
setBinding
Description copied from interface:FxComponent
Sets the binding.- Specified by:
setBinding
in interfaceFxComponent
- Parameters:
binding
- the binding, null if none.
-
getBinding
Description copied from interface:FxComponent
Gets the binding.- Specified by:
getBinding
in interfaceFxComponent
- Returns:
- the binding, null if none
-
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:
-
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:
-
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
-
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:
-
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
-
saveView
public void saveView()Description copied from interface:FxControl
Creates a copy of the value shown to the user. -
getSavedViewObject
Description copied from interface:FxComponent
Retrieves the view value saved withFxControl.saveView()
.
The returned type is the internal native type of the component.- Specified by:
getSavedViewObject
in interfaceFxComponent
- Returns:
- the saved view value
-
getViewObject
Description copied from interface:FxComponent
Retrieves the internal native object of the component.- Specified by:
getViewObject
in interfaceFxComponent
- Returns:
- the component's object
-
setViewObject
Description copied from interface:FxComponent
Sets the internal native object of the component.- Specified by:
setViewObject
in interfaceFxComponent
- Parameters:
viewObject
- the internal object
-
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
-
setError
Description copied from interface:ErrorPopupSupported
Sets the error message.
Notice that an empty string will set the style but does not show any popup.- Specified by:
setError
in interfaceErrorPopupSupported
- Parameters:
error
- the error message, null to clear
-
getError
Description copied from interface:ErrorPopupSupported
Gets the error message.- Specified by:
getError
in interfaceErrorPopupSupported
- Returns:
- the message, null if no error
-
setErrorTemporary
public void setErrorTemporary(boolean errorTemporary) Description copied from interface:ErrorPopupSupported
Sets the temporary error flag.- Specified by:
setErrorTemporary
in interfaceErrorPopupSupported
- Parameters:
errorTemporary
- true if this is a temporary error
-
isErrorTemporary
public boolean isErrorTemporary()Description copied from interface:ErrorPopupSupported
Returns whether this is a temporary error.
Temporary errors are set by the value translators typically if some parsing failed. Non-temporary are set by the application, for example when a persistence validation failed.- Specified by:
isErrorTemporary
in interfaceErrorPopupSupported
- Returns:
- true if temporary error
-
showErrorPopup
public void showErrorPopup()Description copied from interface:ErrorPopupSupported
Shows the error popup.
Requires the error message set.- Specified by:
showErrorPopup
in interfaceErrorPopupSupported
-
hideErrorPopup
public void hideErrorPopup()Description copied from interface:ErrorPopupSupported
Hides the error popup if shown.- Specified by:
hideErrorPopup
in interfaceErrorPopupSupported
-
setInfo
Description copied from interface:InfoPopupSupported
Sets the info message.
Notice that an empty string will set the style but does not show any popup.- Specified by:
setInfo
in interfaceInfoPopupSupported
- Parameters:
info
- the info message, null to clear
-
getInfo
Description copied from interface:InfoPopupSupported
Gets the info message.- Specified by:
getInfo
in interfaceInfoPopupSupported
- Returns:
- the message, null if no info
-
showInfoPopup
public void showInfoPopup()Description copied from interface:InfoPopupSupported
Shows the info popup.
Requires the info message set.- Specified by:
showInfoPopup
in interfaceInfoPopupSupported
-
hideInfoPopup
public void hideInfoPopup()Description copied from interface:InfoPopupSupported
Hides the info popup if shown.- Specified by:
hideInfoPopup
in interfaceInfoPopupSupported
-
isModelUpdated
public boolean isModelUpdated()Description copied from interface:FxComponent
Returns whether model was updated andFxControl.updateView()
not invoked since then.
Some components, such as FxTableView, never update the model because this is already done by the ObservableList. On those cases, false will be returned.- Specified by:
isModelUpdated
in interfaceFxComponent
- Returns:
- true if updateView could make sense
-
setTableCell
Description copied from interface:FxComponent
Sets the table cell if the component is used as a table cell editor.- Specified by:
setTableCell
in interfaceFxComponent
- Parameters:
tableCell
- the cell, null to disconnect from table cell
-
getTableCell
Description copied from interface:FxComponent
Gets the table cell if the component is used as a table cell editor.- Specified by:
getTableCell
in interfaceFxComponent
- Returns:
- the cell, null if not a cell editor
-
setTreeTableCell
Description copied from interface:FxComponent
Sets the treetable cell if the component is used as a treetable cell editor.- Specified by:
setTreeTableCell
in interfaceFxComponent
- Parameters:
treeTableCell
- the cell, null to disconnect from treetable cell
-
getTreeTableCell
Description copied from interface:FxComponent
Gets the treetable cell if the component is used as a treetable cell editor.- Specified by:
getTreeTableCell
in interfaceFxComponent
- Returns:
- the cell, null if not a cell editor
-
isListenerSuppressedIfModelUnchanged
public boolean isListenerSuppressedIfModelUnchanged()Description copied from interface:FxComponent
Returns whether theViewToModelListener
s should be invoked even if the model's value did not change at all.
By default, the listener will always be invoked.- Specified by:
isListenerSuppressedIfModelUnchanged
in interfaceFxComponent
- Returns:
- true if suppress invocation
-
setListenerSuppressedIfModelUnchanged
public void setListenerSuppressedIfModelUnchanged(boolean listenerSuppressedIfModelUnchanged) Description copied from interface:FxComponent
Sets whether theViewToModelListener
s should be invoked even if the model's value did not change at all.- Specified by:
setListenerSuppressedIfModelUnchanged
in interfaceFxComponent
- Parameters:
listenerSuppressedIfModelUnchanged
- true if suppress invocation
-
isListenerSuppressedIfViewUnchanged
public boolean isListenerSuppressedIfViewUnchanged()Description copied from interface:FxComponent
Returns whether theModelToViewListener
s should be invoked even if the view's value will not change at all.
By default, the listener will always be invoked.- Specified by:
isListenerSuppressedIfViewUnchanged
in interfaceFxComponent
- Returns:
- true if suppress invocation
-
setListenerSuppressedIfViewUnchanged
public void setListenerSuppressedIfViewUnchanged(boolean listenerSuppressedIfViewUnchanged) Description copied from interface:FxComponent
Sets whether theModelToViewListener
s should be invoked even if the view's value will not change at all.- Specified by:
setListenerSuppressedIfViewUnchanged
in interfaceFxComponent
- Parameters:
listenerSuppressedIfViewUnchanged
- true if suppress invocation
-