Class OneClickUtils

java.lang.Object
com.illumon.iris.console.utils.oneclick.OneClickUtils

public class OneClickUtils
extends Object
  • Constructor Details

  • Method Details

    • createDefaultOneClickHandler

      public static OneClickListener createDefaultOneClickHandler​(GuiTable table)
      Create a new OneClick listener that will push the results of the event down to the specified GuiTable
      Parameters:
      table - The GuiTable to apply filters to
      Returns:
      A new OneClickListener that will apply oneClick changes to the table
    • filter

      public static void filter​(Container component, String column, String value)
    • filter

      public static void filter​(Container component, String column, String value, OneClickListener.OneClickUpdateType type)
      Traverse a stack of components, progressing the filter down the tree until a AsyncPanel or GuiTable is encountered. It then applies the filter
      Parameters:
      component - The root of the component tree
      column - The column to apply the filter to
      value - The value to filter to
    • filter

      public static void filter​(Container component, String column, OneClickList list, OneClickListener.OneClickUpdateType type)
      Traverse a stack of components, progressing the filter down the tree until a AsyncPanel or GuiTable is encountered. It then applies the filter
      Parameters:
      component - The root of the component tree
      column - The column to apply the filter to
      list - The values to be used in the filter
      type - Either OneClickUpdateType.REPLACE or OneClickUpdateType.ADDITIVE
    • clearAllFilters

      public static void clearAllFilters​(Container component)
    • filterTable

      public static void filterTable​(JTable table, String column, Condition condition, OneClickList list, OneClickListener.OneClickUpdateType type)
      Filter a table to a list of values, either replacing or adding to the current filter
      Parameters:
      table - The table to apply the filter to
      column - The column in the table
      condition - The condition to apply
      list - The values to filter to
      type - Either ADDITIVE or REPLACE
    • filterTable

      public static void filterTable​(JTable table, String column, Condition condition, String item, OneClickListener.OneClickUpdateType type)
      Filter a table living within the specified component to the specified column, condition and item. This method will replace any existing filter on the column.
      Parameters:
      table - The JTable to apply a filter to
      column - The column to filter
      condition - The Condition to use
      item - The item to filter to
    • getOneClickRoot

      public static com.illumon.infonode.docking.DockingWindow getOneClickRoot​(Container container, boolean filterIfLastLevel)
    • getDockingWindow

      public static com.illumon.infonode.docking.DockingWindow getDockingWindow​(Container startContainer)