Class SwappableTableOneClickAbstract
java.lang.Object
com.illumon.iris.db.plot.util.tables.SwappableTable<String,Set<Object>>
com.illumon.iris.db.plot.util.tables.SwappableTableOneClickAbstract
- All Implemented Interfaces:
LinkableChartPanel.LinkTargetListener
,SwappableTableMap
,OneClickListener
,Workspace
,Serializable
- Direct Known Subclasses:
SwappableTableOneClickMap
public abstract class SwappableTableOneClickAbstract
extends SwappableTable<String,Set<Object>>
implements OneClickListener, LinkableChartPanel.LinkTargetListener, SwappableTableMap, Workspace
Holds a handle on a one click table that may get swapped out for another table.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
protected static class
Nested classes/interfaces inherited from class com.illumon.iris.db.plot.util.tables.SwappableTable
SwappableTable.LocalTableUpdateListener
Nested classes/interfaces inherited from interface com.illumon.iris.gui.util.oneclick.OneClickListener
OneClickListener.OneClickUpdateType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected final String[]
static final String
protected final boolean
protected final TableMapHandle
protected final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SwappableTableOneClickAbstract
(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, boolean requireAllFiltersToDisplay, String[] byColumns) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a column to the underlying table structures.getBaseOneClick
(String column, OneClickListener.OneClickUpdateType type) Get a writeable set of items for one click taking into account the one click action.getCurrentOneClicks
(String column) Get the current set of OneClick values for the specified columns.protected String
Get a readable name for use with threads/logs etc.Gets theTableHandle
for this SwappableTable.void
handleOneClickItem
(String column, String item, OneClickListener.OneClickUpdateType type) void
handleOneClickList
(String column, OneClickList list, OneClickListener.OneClickUpdateType type) protected void
boolean
protected void
void
setChartRenderingState
(ChartRenderingState renderingState) void
Methods inherited from class com.illumon.iris.db.plot.util.tables.SwappableTable
addDataChangeListener, addLocalTableUpdateListener, beginBatchUpdate, computeRemoteTable, endBatchUpdate, freezeSnapshots, getManager, getReplicatedTableSnapshot, getSnapshotData, getTableDefinition, maybeInitializeTransient, removeLocalTableUpdateListener, setManager, tableCalculationChanged, thawSnapshots, unsubscribeLocalTable, updateState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.gui.util.oneclick.OneClickListener
clearAllFilters
Methods inherited from interface com.illumon.iris.gui.workspace.Workspace
getWorkspaceInfo, isGlobalSetting, setWorkspaceInfo
-
Field Details
-
NODE_NAME
- See Also:
-
ATTR_SERIES_NAME
- See Also:
-
updateInterval
protected final long updateInterval -
requireAllFiltersToDisplay
protected final boolean requireAllFiltersToDisplay -
byColumns
-
tableMapHandle
-
columnTypes
-
-
Constructor Details
-
SwappableTableOneClickAbstract
protected SwappableTableOneClickAbstract(@NotNull Comparable seriesName, long updateInterval, @NotNull TableMapHandle tableMapHandle, boolean requireAllFiltersToDisplay, @NotNull String[] byColumns)
-
-
Method Details
-
addColumn
Description copied from class:SwappableTable
Adds a column to the underlying table structures.- Specified by:
addColumn
in classSwappableTable<String,
Set<Object>> - Parameters:
column
- column
-
getSeriesName
-
getFriendlyName
Description copied from class:SwappableTable
Get a readable name for use with threads/logs etc.- Specified by:
getFriendlyName
in classSwappableTable<String,
Set<Object>> - Returns:
- a name to use
-
getBaseOneClick
Get a writeable set of items for one click taking into account the one click action.- Parameters:
column
- the column to get the item set oftype
- the type of OneClick update.- Returns:
- a synchronized copy of the current item set for the column.
-
handleOneClickItem
public void handleOneClickItem(String column, String item, OneClickListener.OneClickUpdateType type) - Specified by:
handleOneClickItem
in interfaceOneClickListener
-
handleOneClickList
public void handleOneClickList(String column, OneClickList list, OneClickListener.OneClickUpdateType type) - Specified by:
handleOneClickList
in interfaceOneClickListener
-
update
- Specified by:
update
in interfaceLinkableChartPanel.LinkTargetListener
-
getCurrentOneClicks
Get the current set of OneClick values for the specified columns.- Parameters:
column
- the column- Returns:
- the set of one clicked values.
-
invokeRecompute
protected void invokeRecompute()- Overrides:
invokeRecompute
in classSwappableTable<String,
Set<Object>>
-
localRecomputeComplete
protected void localRecomputeComplete()- Specified by:
localRecomputeComplete
in classSwappableTable<String,
Set<Object>>
-
setChartRenderingState
-
getByColumns
-
getTableMapHandle
Description copied from class:SwappableTable
Gets theTableHandle
for this SwappableTable.- Specified by:
getTableMapHandle
in interfaceSwappableTableMap
- Overrides:
getTableMapHandle
in classSwappableTable<String,
Set<Object>> - Returns:
- this SwappableTable's
TableHandle
-
isRequireAllFiltersToDisplay
public boolean isRequireAllFiltersToDisplay()
-