java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.layout.Pane
javafx.scene.layout.HBox
com.iamsoft.util.ui.javafx.SearchBox
- All Implemented Interfaces:
javafx.css.Styleable,javafx.event.EventTarget
- Direct Known Subclasses:
CodeAreaSearchBox
public class SearchBox
extends javafx.scene.layout.HBox
'Search' field.
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.BooleanPropertyfinal javafx.beans.property.ObjectProperty<BiFunction<String, String, javafx.collections.ObservableList<String>>> final javafx.beans.property.StringPropertyjavafx.beans.property.ObjectProperty<AbstractTableFindSupport> Properties inherited from class javafx.scene.layout.HBox
alignment, fillHeight, spacingProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final javafx.scene.image.Imageprotected static final Stringstatic final javafx.scene.input.KeyCombinationprotected static final javafx.scene.image.Imageprotected static final Stringprotected static final javafx.scene.image.Imageprotected static final Stringstatic final javafx.scene.input.KeyCombinationprotected static final javafx.scene.image.Imageprotected static final Stringprotected static final javafx.scene.image.Imageprotected static final Stringprotected static final javafx.scene.image.Imageprotected static final StringFields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionSearchBox(SearchBox.ButtonType pExcludeButton) SearchBox(Function<FindTextFieldSupport, AbstractTableFindSupport> pCreateFindSupport) SearchBox(Function<FindTextFieldSupport, AbstractTableFindSupport> pCreateFindSupport, SearchBox.ButtonType pExcludeButton) -
Method Summary
Modifier and TypeMethodDescriptionorg.controlsfx.control.action.ActioncreateFindAction(javafx.beans.property.BooleanProperty pToolBarVisible) protected javafx.scene.control.ToggleButtonprotected javafx.scene.control.Buttonprotected javafx.scene.control.ToggleButtonprotected javafx.scene.control.Buttonprotected javafx.scene.control.ToggleButtonprotected javafx.scene.control.ToggleButtonjavafx.beans.property.BooleanPropertyfinal javafx.beans.property.ObjectProperty<BiFunction<String, String, javafx.collections.ObservableList<String>>> final javafx.beans.property.StringPropertyvoidvoidbooleanGets the value of thedisplaySearchResultInfoproperty.final BiFunction<String, String, javafx.collections.ObservableList<String>> Gets the value of thefindSuggestionsFactoryproperty.final StringGets the value of thefindSuggestionsIdproperty.javafx.scene.control.TextFieldfinal javafx.scene.control.LabelA wrapper which can be used as a workaround for showing default cursor for 'error' badge (bug 1835).javafx.scene.control.ToggleButtonjavafx.scene.control.Buttonfinal javafx.scene.control.ToggleButtonjavafx.scene.control.Buttonfinal javafx.scene.control.ToggleButtonorg.controlsfx.control.SegmentedButtonGets the value of thetableFindSupportproperty.final javafx.scene.control.ToggleButtonvoidrequestFind(javafx.beans.property.BooleanProperty pToolBarVisible) Sets the tool bar to be visible (if it is not) and requests the focus for the find text field.voidsetDisplaySearchResultInfo(boolean pDisplaySearchResultInfo) Sets the value of thedisplaySearchResultInfoproperty.final voidsetFindSuggestionsFactory(BiFunction<String, String, javafx.collections.ObservableList<String>> pFactory) Sets the value of thefindSuggestionsFactoryproperty.final voidSets the value of thefindSuggestionsIdproperty.voidsetTableFindSupport(AbstractTableFindSupport pTableFindSupport) Sets the value of thetableFindSupportproperty.javafx.beans.property.ObjectProperty<AbstractTableFindSupport> Methods inherited from class javafx.scene.layout.HBox
alignmentProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, fillHeightProperty, getAlignment, getBaselineOffset, getClassCssMetaData, getContentBias, getCssMetaData, getHgrow, getMargin, getSpacing, isFillHeight, layoutChildren, requestLayout, setAlignment, setFillHeight, setHgrow, setMargin, setSpacing, spacingPropertyMethods inherited from class javafx.scene.layout.Pane
getChildrenMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, 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, widthPropertyMethods inherited from class javafx.scene.Parent
getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestParentLayout, setNeedsLayout, updateBoundsMethods 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, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, 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, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
tableFindSupport
- See Also:
-
findSuggestionsId
public final javafx.beans.property.StringProperty findSuggestionsIdProperty- See Also:
-
findSuggestionsFactory
public final javafx.beans.property.ObjectProperty<BiFunction<String,String, findSuggestionsFactoryPropertyjavafx.collections.ObservableList<String>>> - See Also:
-
displaySearchResultInfo
public javafx.beans.property.BooleanProperty displaySearchResultInfoProperty- See Also:
-
-
Field Details
-
PREV_TEXT
- See Also:
-
PREV_ICON
protected static final javafx.scene.image.Image PREV_ICON -
PREV_ACCELERATOR
public static final javafx.scene.input.KeyCombination PREV_ACCELERATOR -
NEXT_TEXT
- See Also:
-
NEXT_ICON
protected static final javafx.scene.image.Image NEXT_ICON -
NEXT_ACCELERATOR
public static final javafx.scene.input.KeyCombination NEXT_ACCELERATOR -
MATCH_CASE_TEXT
- See Also:
-
MATCH_CASE_ICON
protected static final javafx.scene.image.Image MATCH_CASE_ICON -
REGEX_TEXT
- See Also:
-
REGEX_ICON
protected static final javafx.scene.image.Image REGEX_ICON -
PLAIN_TEXT
- See Also:
-
PLAIN_ICON
protected static final javafx.scene.image.Image PLAIN_ICON -
XPATH_TEXT
- See Also:
-
XPATH_ICON
protected static final javafx.scene.image.Image XPATH_ICON -
FIND_TEXT
- See Also:
-
-
Constructor Details
-
SearchBox
-
SearchBox
public SearchBox(Function<FindTextFieldSupport, AbstractTableFindSupport> pCreateFindSupport, SearchBox.ButtonType pExcludeButton) -
SearchBox
public SearchBox() -
SearchBox
-
-
Method Details
-
getFindTextFieldSupport
-
getFindTextField
public javafx.scene.control.TextField getFindTextField() -
getFindTextFieldWrapper
public final javafx.scene.control.Label getFindTextFieldWrapper()A wrapper which can be used as a workaround for showing default cursor for 'error' badge (bug 1835). -
getPrevBtn
public javafx.scene.control.Button getPrevBtn() -
getNextBtn
public javafx.scene.control.Button getNextBtn() -
getMatchCaseBtn
public javafx.scene.control.ToggleButton getMatchCaseBtn() -
getPlainTextBtn
public final javafx.scene.control.ToggleButton getPlainTextBtn() -
getRegexBtn
public final javafx.scene.control.ToggleButton getRegexBtn() -
getXPathBtn
public final javafx.scene.control.ToggleButton getXPathBtn() -
getSearchTypeBtn
public org.controlsfx.control.SegmentedButton getSearchTypeBtn() -
tableFindSupportProperty
- Returns:
- the
tableFindSupportproperty - See Also:
-
getTableFindSupport
Gets the value of thetableFindSupportproperty.- Property description:
- Returns:
- the value of the
tableFindSupportproperty - See Also:
-
setTableFindSupport
Sets the value of thetableFindSupportproperty.- Property description:
- Parameters:
pTableFindSupport- the value for thetableFindSupportproperty- See Also:
-
findSuggestionsIdProperty
public final javafx.beans.property.StringProperty findSuggestionsIdProperty()- Returns:
- the
findSuggestionsIdproperty - See Also:
-
getFindSuggestionsId
Gets the value of thefindSuggestionsIdproperty.- Property description:
- Returns:
- the value of the
findSuggestionsIdproperty - See Also:
-
setFindSuggestionsId
Sets the value of thefindSuggestionsIdproperty.- Property description:
- Parameters:
pId- the value for thefindSuggestionsIdproperty- See Also:
-
findSuggestionsFactoryProperty
public final javafx.beans.property.ObjectProperty<BiFunction<String,String, findSuggestionsFactoryProperty()javafx.collections.ObservableList<String>>> - Returns:
- the
findSuggestionsFactoryproperty - See Also:
-
getFindSuggestionsFactory
public final BiFunction<String,String, getFindSuggestionsFactory()javafx.collections.ObservableList<String>> Gets the value of thefindSuggestionsFactoryproperty.- Property description:
- Returns:
- the value of the
findSuggestionsFactoryproperty - See Also:
-
setFindSuggestionsFactory
public final void setFindSuggestionsFactory(BiFunction<String, String, javafx.collections.ObservableList<String>> pFactory) Sets the value of thefindSuggestionsFactoryproperty.- Property description:
- Parameters:
pFactory- the value for thefindSuggestionsFactoryproperty- See Also:
-
displaySearchResultInfoProperty
public javafx.beans.property.BooleanProperty displaySearchResultInfoProperty()- Returns:
- the
displaySearchResultInfoproperty - See Also:
-
getDisplaySearchResultInfo
public boolean getDisplaySearchResultInfo()Gets the value of thedisplaySearchResultInfoproperty.- Property description:
- Returns:
- the value of the
displaySearchResultInfoproperty - See Also:
-
setDisplaySearchResultInfo
public void setDisplaySearchResultInfo(boolean pDisplaySearchResultInfo) Sets the value of thedisplaySearchResultInfoproperty.- Property description:
- Parameters:
pDisplaySearchResultInfo- the value for thedisplaySearchResultInfoproperty- See Also:
-
createPrevBtn
protected javafx.scene.control.Button createPrevBtn() -
createNextBtn
protected javafx.scene.control.Button createNextBtn() -
createMatchCaseBtn
protected javafx.scene.control.ToggleButton createMatchCaseBtn() -
createRegexBtn
protected javafx.scene.control.ToggleButton createRegexBtn() -
createPlainTextBtn
protected javafx.scene.control.ToggleButton createPlainTextBtn() -
createXPathBtn
protected javafx.scene.control.ToggleButton createXPathBtn() -
requestFind
public void requestFind(javafx.beans.property.BooleanProperty pToolBarVisible) Sets the tool bar to be visible (if it is not) and requests the focus for the find text field.- Parameters:
pToolBarVisible- visibility
-
createFindAction
public org.controlsfx.control.action.Action createFindAction(javafx.beans.property.BooleanProperty pToolBarVisible) -
firePrevBtn
public void firePrevBtn() -
fireNextBtn
public void fireNextBtn()
-