Class OneClickUtils
java.lang.Object
com.illumon.iris.console.utils.oneclick.OneClickUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearAllFilters
(Container component) static OneClickListener
Create a new OneClick listener that will push the results of the event down to the specified GuiTablestatic 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.static void
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.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 filterstatic 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.static com.illumon.infonode.docking.DockingWindow
getDockingWindow
(Container startContainer) static com.illumon.infonode.docking.DockingWindow
getOneClickRoot
(Container container, boolean filterIfLastLevel)
-
Constructor Details
-
OneClickUtils
public OneClickUtils()
-
-
Method Details
-
createDefaultOneClickHandler
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
-
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 treecolumn
- The column to apply the filter tovalue
- 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 treecolumn
- The column to apply the filter tolist
- The values to be used in the filtertype
- EitherOneClickUpdateType.REPLACE
orOneClickUpdateType.ADDITIVE
-
clearAllFilters
-
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 tocolumn
- The column in the tablecondition
- The condition to applylist
- The values to filter totype
- 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 tocolumn
- The column to filtercondition
- The Condition to useitem
- The item to filter to
-
getOneClickRoot
public static com.illumon.infonode.docking.DockingWindow getOneClickRoot(Container container, boolean filterIfLastLevel) -
getDockingWindow
-