- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AutoCompletePopup.SuggestionEvent<TE>
Represents an Event which is fired when the user has selected a suggestion for auto-complete
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_STYLE_CLASS
* Stylesheet Handling * *
-
Constructor Summary
Constructors Constructor Description AutoCompletePopup()
Creates a new AutoCompletePopup
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javafx.scene.control.Skin<?>
createDefaultSkin()
javafx.util.StringConverter<T>
getConverter()
Get the string converter used to turn a generic suggestion into a stringjavafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>>
getOnSuggestion()
javafx.collections.ObservableList<T>
getSuggestions()
Get the suggestions presented by this AutoCompletePopupint
getVisibleRowCount()
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>>>
onSuggestionProperty()
* Properties * *void
setConverter(javafx.util.StringConverter<T> converter)
Set the string converter used to turn a generic suggestion into a stringvoid
setOnSuggestion(javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>> value)
void
setVisibleRowCount(int value)
void
show(javafx.scene.Node node)
Show this popup right below the given Nodejavafx.beans.property.IntegerProperty
visibleRowCountProperty()
-
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, styleProperty
-
Methods 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, show
-
Methods 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
-
-
-
-
Field Detail
-
DEFAULT_STYLE_CLASS
public static final String DEFAULT_STYLE_CLASS
* Stylesheet Handling * *- See Also:
- Constant Field Values
-
-
Method Detail
-
getSuggestions
public javafx.collections.ObservableList<T> 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
public void setConverter(javafx.util.StringConverter<T> converter)
Set the string converter used to turn a generic suggestion into a string
-
getConverter
public javafx.util.StringConverter<T> getConverter()
Get the string converter used to turn a generic suggestion into a string
-
setVisibleRowCount
public final void setVisibleRowCount(int value)
-
getVisibleRowCount
public final int getVisibleRowCount()
-
visibleRowCountProperty
public final javafx.beans.property.IntegerProperty visibleRowCountProperty()
-
onSuggestionProperty
public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>>> onSuggestionProperty()
* Properties * *
-
setOnSuggestion
public final void setOnSuggestion(javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>> value)
-
getOnSuggestion
public final javafx.event.EventHandler<AutoCompletePopup.SuggestionEvent<T>> getOnSuggestion()
-
createDefaultSkin
protected javafx.scene.control.Skin<?> createDefaultSkin()
- Overrides:
createDefaultSkin
in classjavafx.scene.control.PopupControl
-
-