java.lang.Object
javafx.stage.Window
javafx.stage.PopupWindow
javafx.scene.control.PopupControl
impl.org.controlsfx.skin.AutoCompletePopup<T>
- All Implemented Interfaces:
javafx.css.Styleable,javafx.event.EventTarget,javafx.scene.control.Skinnable
public class AutoCompletePopup<T>
extends javafx.scene.control.PopupControl
The auto-complete-popup provides an list of available suggestions in order
to complete current user input.
-
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ObjectProperty<javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>>> * Properties * *final javafx.beans.property.IntegerPropertyThe maximum number of rows to be visible in the popup when it is showing.Properties inherited from class javafx.scene.control.PopupControl
id, maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidth, skin, styleProperties inherited from class javafx.stage.PopupWindow
anchorLocation, anchorX, anchorY, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide, ownerNode, ownerWindowProperties inherited from class javafx.stage.Window
eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents an Event which is fired when the user has selected a suggestion for auto-completeNested classes/interfaces inherited from class javafx.scene.control.PopupControl
javafx.scene.control.PopupControl.CSSBridgeNested classes/interfaces inherited from class javafx.stage.PopupWindow
javafx.stage.PopupWindow.AnchorLocation -
Field Summary
FieldsFields inherited from class javafx.scene.control.PopupControl
bridge, USE_COMPUTED_SIZE, USE_PREF_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javafx.scene.control.Skin<?> javafx.util.StringConverter<T> Get the string converter used to turn a generic suggestion into a stringfinal javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>> Gets the value of theonSuggestionproperty.javafx.collections.ObservableList<T> Get the suggestions presented by this AutoCompletePopupfinal intGets the value of thevisibleRowCountproperty.final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>>> * Properties * *voidsetConverter(javafx.util.StringConverter<T> converter) Set the string converter used to turn a generic suggestion into a stringfinal voidsetOnSuggestion(javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>> value) Sets the value of theonSuggestionproperty.final voidsetVisibleRowCount(int value) Sets the value of thevisibleRowCountproperty.voidshow(javafx.scene.Node node) Show this popup right below the given Nodefinal javafx.beans.property.IntegerPropertyThe maximum number of rows to be visible in the popup when it is showing.Methods inherited from class javafx.scene.control.PopupControl
getClassCssMetaData, getCssMetaData, getId, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getPseudoClassStates, getSkin, getStyle, getStyleableNode, getStyleableParent, getStyleClass, getTypeSelector, idProperty, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, pseudoClassStateChanged, setId, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPrefHeight, setPrefSize, setPrefWidth, setSkin, setStyle, skinProperty, stylePropertyMethods inherited from class javafx.stage.PopupWindow
anchorLocationProperty, anchorXProperty, anchorYProperty, autoFixProperty, autoHideProperty, consumeAutoHidingEventsProperty, getAnchorLocation, getAnchorX, getAnchorY, getConsumeAutoHidingEvents, getOnAutoHide, getOwnerNode, getOwnerWindow, hide, hideOnEscapeProperty, isAutoFix, isAutoHide, isHideOnEscape, onAutoHideProperty, ownerNodeProperty, ownerWindowProperty, setAnchorLocation, setAnchorX, setAnchorY, setAutoFix, setAutoHide, setConsumeAutoHidingEvents, setHideOnEscape, setOnAutoHide, setScene, show, show, showMethods inherited from class javafx.stage.Window
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, show, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
-
Property Details
-
visibleRowCount
public final javafx.beans.property.IntegerProperty visibleRowCountPropertyThe maximum number of rows to be visible in the popup when it is showing. By default this value is 10, but this can be changed to increase or decrease the height of the popup.- See Also:
-
onSuggestion
public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>>> onSuggestionProperty* Properties * *- See Also:
-
-
Field Details
-
DEFAULT_STYLE_CLASS
* Stylesheet Handling * *- See Also:
-
-
Constructor Details
-
AutoCompletePopup
public AutoCompletePopup()Creates a new AutoCompletePopup
-
-
Method Details
-
getSuggestions
Get the suggestions presented by this AutoCompletePopup- Returns:
-
show
public void show(javafx.scene.Node node) Show this popup right below the given Node- Parameters:
node-
-
setConverter
Set the string converter used to turn a generic suggestion into a string -
getConverter
Get the string converter used to turn a generic suggestion into a string -
setVisibleRowCount
public final void setVisibleRowCount(int value) Sets the value of thevisibleRowCountproperty.- Property description:
- The maximum number of rows to be visible in the popup when it is showing. By default this value is 10, but this can be changed to increase or decrease the height of the popup.
- Parameters:
value- the value for thevisibleRowCountproperty- See Also:
-
getVisibleRowCount
public final int getVisibleRowCount()Gets the value of thevisibleRowCountproperty.- Property description:
- The maximum number of rows to be visible in the popup when it is showing. By default this value is 10, but this can be changed to increase or decrease the height of the popup.
- Returns:
- the value of the
visibleRowCountproperty - See Also:
-
visibleRowCountProperty
public final javafx.beans.property.IntegerProperty visibleRowCountProperty()The maximum number of rows to be visible in the popup when it is showing. By default this value is 10, but this can be changed to increase or decrease the height of the popup.- Returns:
- the
visibleRowCountproperty - See Also:
-
onSuggestionProperty
public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>>> onSuggestionProperty()* Properties * *- Returns:
- the
onSuggestionproperty - See Also:
-
setOnSuggestion
public final void setOnSuggestion(javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>> value) Sets the value of theonSuggestionproperty.- Property description:
- * Properties * *
- Parameters:
value- the value for theonSuggestionproperty- See Also:
-
getOnSuggestion
Gets the value of theonSuggestionproperty.- Property description:
- * Properties * *
- Returns:
- the value of the
onSuggestionproperty - See Also:
-
createDefaultSkin
protected javafx.scene.control.Skin<?> createDefaultSkin()- Overrides:
createDefaultSkinin classjavafx.scene.control.PopupControl
-