Class PopupFilter<S,​T>

  • Type Parameters:
    S - Type of the objects contained within the FilteredTableView items list.
    T - Type of the content to be filtered, which is similar to the type of cells contained in the FilteredTableColumn.
    All Implemented Interfaces:
    javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable
    Direct Known Subclasses:
    PopupNumberFilter, PopupStringFilter

    public abstract class PopupFilter<S,​T>
    extends javafx.scene.control.PopupControl
    A popup control containing a TextField to filter data in a FilteredTableView. The control accepts a FilteredTableColumn on which the filter is to be applied. showPopup() should be called to show the popup.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javafx.scene.control.PopupControl

        javafx.scene.control.PopupControl.CSSBridge
      • Nested classes/interfaces inherited from class javafx.stage.PopupWindow

        javafx.stage.PopupWindow.AnchorLocation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javafx.beans.property.StringProperty text
      The textual content of this PopupFilter.
      • Fields inherited from class javafx.scene.control.PopupControl

        bridge, USE_COMPUTED_SIZE, USE_PREF_SIZE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected javafx.scene.control.Skin<?> createDefaultSkin()
      abstract List<String> getOperations()
      Returns a list of operations which can be performed on this PopupFilter.
      abstract Parser<T> getParser()
      Returns a TextParser which is used to parse the text in the TextField and filter the data.
      FilteredTableColumn<S,​T> getTableColumn()
      Returns the TableColumn associated with this PopupFilter.
      String getText()  
      void setText​(String value)  
      void showPopup()
      Shows the pop up just below the column header.
      javafx.beans.property.StringProperty textProperty()  
      • 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

      • text

        protected final javafx.beans.property.StringProperty text
        The textual content of this PopupFilter.
    • Constructor Detail

      • PopupFilter

        public PopupFilter​(FilteredTableColumn<S,​T> tableColumn)
        Creates a new instance of PopupFilter.
        Parameters:
        tableColumn - TableColumn associated with this PopupFilter.
    • Method Detail

      • textProperty

        public final javafx.beans.property.StringProperty textProperty()
      • getText

        public final String getText()
      • setText

        public final void setText​(String value)
      • showPopup

        public void showPopup()
        Shows the pop up just below the column header.
      • getOperations

        public abstract List<String> getOperations()
        Returns a list of operations which can be performed on this PopupFilter.
        Returns:
        A list of operations.
      • getParser

        public abstract Parser<T> getParser()
        Returns a TextParser which is used to parse the text in the TextField and filter the data.
        Returns:
        A Parser.
      • getTableColumn

        public FilteredTableColumn<S,​T> getTableColumn()
        Returns the TableColumn associated with this PopupFilter.
        Returns:
        TableColumn associated with this PopupFilter.
      • createDefaultSkin

        protected javafx.scene.control.Skin<?> createDefaultSkin()
        Overrides:
        createDefaultSkin in class javafx.scene.control.PopupControl