Class SwappableTableOneClickMap

All Implemented Interfaces:
LinkableChartPanel.LinkTargetListener, SwappableTableMap, OneClickListener, Workspace, Serializable

public class SwappableTableOneClickMap extends SwappableTableOneClickAbstract
Holds a handle on a one click table that may get swapped out for another table. A TableMap is used to compute the OneClick.
See Also:
  • Constructor Details

  • Method Details

    • updateState

      protected boolean updateState(String column, Set<Object> item)
      Description copied from class: SwappableTable
      Update the state for a given column selection.
      Specified by:
      updateState in class SwappableTable<String,Set<Object>>
      Parameters:
      column - key for table calculation
      item - value for table calculation
      Returns:
      whether this table should recompute
    • getCurrentOneClicks

      @NotNull public Set<Object> getCurrentOneClicks(@NotNull String column)
      Description copied from class: SwappableTableOneClickAbstract
      Get the current set of OneClick values for the specified columns.
      Specified by:
      getCurrentOneClicks in class SwappableTableOneClickAbstract
      Parameters:
      column - the column
      Returns:
      the set of one clicked values.
    • invokeRecompute

      protected void invokeRecompute()
      Overrides:
      invokeRecompute in class SwappableTableOneClickAbstract
    • getTransform

      public Function<Table,Table> getTransform()
    • getByColumns

      public List<String> getByColumns()
      Specified by:
      getByColumns in class SwappableTableOneClickAbstract
    • getWorkspaceInfo

      public org.jdom2.Element getWorkspaceInfo()
      Description copied from interface: Workspace
      Serialize the class into an element to be stored in the workspace
      Returns:
      An Element containing the data to persist.
    • setWorkspaceInfo

      public void setWorkspaceInfo(org.jdom2.Element workspaceInfo)
      Description copied from interface: Workspace
      Restore the class to the state defined by the data persisted in workspaceInfo
      Parameters:
      workspaceInfo - An Element containing the persisted state.
    • clearAllFilters

      public void clearAllFilters()
      Description copied from interface: OneClickListener
      Requests the the one click listener clear all of it's filters.
    • computeRemoteTable

      protected Table computeRemoteTable()
      Description copied from class: SwappableTable
      Computes the remote table.
      Specified by:
      computeRemoteTable in class SwappableTable<String,Set<Object>>
      Returns:
      computed remote table
    • getSelectionsForColumn

      protected Set<Object> getSelectionsForColumn(String column)
      Provide limited access to this data for subclasses.
      Parameters:
      column - key for the values collection
      Returns:
      the selected values
    • convertColumnSelections

      protected Predicate<Object> convertColumnSelections(String column)