Class FilterAppliedEvent

All Implemented Interfaces:
ILayerEvent, IStructuralChangeEvent, IVisualChangeEvent

public class FilterAppliedEvent extends RowStructuralRefreshEvent
Special RowStructuralRefreshEvent that is fired in case the filter changes via FilterRowDataProvider. This includes clearing a filter.
  • Constructor Details

    • FilterAppliedEvent

      public FilterAppliedEvent(ILayer layer)
      Parameters:
      layer - The ILayer from which this event was fired.
    • FilterAppliedEvent

      public FilterAppliedEvent(ILayer layer, boolean cleared)
      Parameters:
      layer - The ILayer from which this event was fired.
      cleared - true if the filter was cleared, false if a filter was applied.
      Since:
      2.1
    • FilterAppliedEvent

      public FilterAppliedEvent(ILayer layer, int columnIndex, Object oldValue, Object newValue, boolean cleared)
      Parameters:
      layer - The ILayer from which this event was fired.
      columnIndex - The index of the column on which a filter was set or cleared. -1 if a general filter operation like clear all or loadState was executed.
      oldValue - The old value that was set previously as filter.
      newValue - The new value that was set as filter.
      cleared - true if the filter was cleared, false if a filter was applied.
      Since:
      2.1
  • Method Details

    • getColumnIndex

      public int getColumnIndex()
      Returns:
      The index of the column on which a filter was set or cleared. -1 if a general filter operation like clear all or loadState was executed.
      Since:
      2.1
    • getOldValue

      public Object getOldValue()
      Returns:
      The old value that was set previously as filter.
      Since:
      2.1
    • getNewValue

      public Object getNewValue()
      Returns:
      The new value that was set as filter.
      Since:
      2.1
    • isFilterComboEditor

      public boolean isFilterComboEditor()
      Returns:
      true if the filter editor was a filter combobox editor, false if it was any other editor.
      Since:
      2.1
    • setFilterComboEditor

      public void setFilterComboEditor(boolean filterComboEditor)
      Parameters:
      filterComboEditor - true if the filter editor was a filter combobox editor, false if it was any other editor.
      Since:
      2.1
    • isCleared

      public boolean isCleared()
      Returns:
      true if the filter was cleared, false if a filter was applied.
      Since:
      2.1
    • setCleared

      public void setCleared(boolean cleared)
      Parameters:
      cleared - true if the filter was cleared, false if a filter was applied.
      Since:
      2.1