public class PropertySheet extends Control
To better describe what a property sheet is, please refer to the picture
below:
In this property sheet there exists two columns: the left column shows a
label describing the property itself, whereas the right column provides a
PropertyEditor that allows the end user the means to manipulate the
property. In the screenshot you can see CheckEditor,
ChoiceEditor, TextEditor and FontEditor, among the
many editors that are available in the org.controlsfx.property.editor
package.
To create a PropertySheet is simple: you firstly instantiate an instance
of PropertySheet, and then you pass in a list of PropertySheet.Item instances,
where each Item represents a single property that is to be editable by the
end user.
class, in particular the
BeanPropertyUtils.getProperties(Object) method that will return a
list of Item instances, one Item instance per property on the given JavaBean.PropertySheet.Item,
PropertySheet.Mode| Type | Property and Description |
|---|---|
SimpleObjectProperty<PropertySheet.Mode> |
mode
A property used to represent how the properties should be laid out in
the PropertySheet.
|
SimpleBooleanProperty |
modeSwitcherVisible
This property represents whether a visual option should be presented to
users to switch between the various
modes available. |
SimpleBooleanProperty |
searchBoxVisible
This property represents whether a text field should be presented to
users to allow for them to filter the properties in the property sheet to
only show ones matching the typed input.
|
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyblendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, 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, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty| Modifier and Type | Class and Description |
|---|---|
static interface |
PropertySheet.Item
A wrapper interface for a single property to be displayed in a
PropertySheet control. |
static class |
PropertySheet.Mode
Specifies how the
PropertySheet should be laid out. |
USE_COMPUTED_SIZE, USE_PREF_SIZEBASELINE_OFFSET_SAME_AS_HEIGHT| Constructor and Description |
|---|
PropertySheet()
Creates a default PropertySheet instance with no properties to edit.
|
PropertySheet(ObservableList<PropertySheet.Item> items)
Creates a PropertySheet instance prepopulated with the items provided
in the items
ObservabelList. |
| Modifier and Type | Method and Description |
|---|---|
protected Skin<?> |
createDefaultSkin() |
ObservableList<PropertySheet.Item> |
getItems()
A list of properties that will be displayed to the user to allow for them
to be edited.
|
PropertySheet.Mode |
getMode()
Gets the value of the property mode.
|
Callback<PropertySheet.Item,PropertyEditor<?>> |
getPropertyEditorFactory() |
String |
getTitleFilter() |
protected String |
getUserAgentStylesheet() |
boolean |
isModeSwitcherVisible()
Gets the value of the property modeSwitcherVisible.
|
boolean |
isSearchBoxVisible()
Gets the value of the property searchBoxVisible.
|
SimpleObjectProperty<PropertySheet.Mode> |
modeProperty()
A property used to represent how the properties should be laid out in
the PropertySheet.
|
SimpleBooleanProperty |
modeSwitcherVisibleProperty()
This property represents whether a visual option should be presented to
users to switch between the various
modes available. |
SimpleObjectProperty<Callback<PropertySheet.Item,PropertyEditor<?>>> |
propertyEditorFactory()
The property editor factory is used by the PropertySheet to determine which
PropertyEditor to use for a given PropertySheet.Item. |
SimpleBooleanProperty |
searchBoxVisibleProperty()
This property represents whether a text field should be presented to
users to allow for them to filter the properties in the property sheet to
only show ones matching the typed input.
|
void |
setMode(PropertySheet.Mode mode)
Sets the value of the property mode.
|
void |
setModeSwitcherVisible(boolean visible)
Sets the value of the property modeSwitcherVisible.
|
void |
setPropertyEditorFactory(Callback<PropertySheet.Item,PropertyEditor<?>> factory) |
void |
setSearchBoxVisible(boolean visible)
Sets the value of the property searchBoxVisible.
|
void |
setTitleFilter(String filter) |
SimpleStringProperty |
titleFilter()
Regardless of whether the
search box
is visible or not, it is possible to filter the options shown on screen
using this title filter property. |
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, 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, snapSize, snapSpace, snapToPixelProperty, widthPropertygetChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaddEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, 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, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_geomChanged, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, 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, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, 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, screenToLocal, screenToLocal, screenToLocal, 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, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertypublic final SimpleObjectProperty<PropertySheet.Mode> modeProperty
PropertySheet.Mode enumeration to better
understand the available options.getMode(),
setMode(Mode)public final SimpleBooleanProperty modeSwitcherVisibleProperty
modes available. By
default this is true, so setting it to false will hide these buttons.public final SimpleBooleanProperty searchBoxVisibleProperty
isSearchBoxVisible(),
setSearchBoxVisible(boolean)public PropertySheet()
public PropertySheet(ObservableList<PropertySheet.Item> items)
ObservabelList.items - The items that should appear within the PropertySheet.public ObservableList<PropertySheet.Item> getItems()
protected Skin<?> createDefaultSkin()
createDefaultSkin in class Controlprotected String getUserAgentStylesheet()
getUserAgentStylesheet in class Controlpublic final SimpleObjectProperty<PropertySheet.Mode> modeProperty()
PropertySheet.Mode enumeration to better
understand the available options.getMode(),
setMode(Mode)public final PropertySheet.Mode getMode()
public final void setMode(PropertySheet.Mode mode)
public final SimpleObjectProperty<Callback<PropertySheet.Item,PropertyEditor<?>>> propertyEditorFactory()
PropertyEditor to use for a given PropertySheet.Item. By default the
DefaultPropertyEditorFactory is used, but this may be replaced
or extended by developers wishing to add in (or substitute) their own
property editors.public final Callback<PropertySheet.Item,PropertyEditor<?>> getPropertyEditorFactory()
public final void setPropertyEditorFactory(Callback<PropertySheet.Item,PropertyEditor<?>> factory)
public final SimpleBooleanProperty modeSwitcherVisibleProperty()
modes available. By
default this is true, so setting it to false will hide these buttons.public final boolean isModeSwitcherVisible()
public final void setModeSwitcherVisible(boolean visible)
public final SimpleBooleanProperty searchBoxVisibleProperty()
isSearchBoxVisible(),
setSearchBoxVisible(boolean)public final boolean isSearchBoxVisible()
public final void setSearchBoxVisible(boolean visible)
public final SimpleStringProperty titleFilter()
search box
is visible or not, it is possible to filter the options shown on screen
using this title filter property. If the search box is visible, it will
manipulate this property to contain whatever the user types.public final String getTitleFilter()
public final void setTitleFilter(String filter)