java.lang.Object
javafx.stage.Window
javafx.stage.PopupWindow
javafx.scene.control.PopupControl
org.controlsfx.control.tableview2.filter.popupfilter.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:
Styleable, EventTarget, Skinnable
Direct Known Subclasses:
PopupNumberFilter, PopupStringFilter

public abstract class PopupFilter<S,T> extends 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.
  • Property Details

  • Field Details

    • text

      protected final StringProperty text
      The textual content of this PopupFilter.
  • Constructor Details

    • PopupFilter

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

    • textProperty

      public final StringProperty textProperty()
      The textual content of this PopupFilter.
      See Also:
    • getText

      public final String getText()
      Gets the value of the property text.
      Property description:
      The textual content of this PopupFilter.
    • setText

      public final void setText(String value)
      Sets the value of the property text.
      Property description:
      The textual content of this PopupFilter.
    • 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 Skin<?> createDefaultSkin()
      Overrides:
      createDefaultSkin in class PopupControl