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:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SwappableTableOneClickAbstract.OneClickTypeMismatchException
protected static class
SwappableTableOneClickAbstract.SwappableTablePreemptiveUpdatesQuery
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
Fields Modifier and Type Field Description static String
ATTR_SERIES_NAME
protected String[]
byColumns
protected Map<String,Class>
columnTypes
static String
NODE_NAME
protected boolean
requireAllFiltersToDisplay
protected TableMapHandle
tableMapHandle
protected long
updateInterval
-
Constructor Summary
Constructors Modifier Constructor Description protected
SwappableTableOneClickAbstract(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, boolean requireAllFiltersToDisplay, String[] byColumns)
-
Method Summary
Modifier and Type Method Description void
addColumn(String column)
Adds a column to the underlying table structures.protected Set<Object>
getBaseOneClick(String column, OneClickListener.OneClickUpdateType type)
Get a writeable set of items for one click taking into account the one click action.abstract List<String>
getByColumns()
abstract Set<Object>
getCurrentOneClicks(String column)
Get the current set of OneClick values for the specified columns.protected String
getFriendlyName()
Get a readable name for use with threads/logs etc.Comparable
getSeriesName()
TableMapHandle
getTableMapHandle()
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
invokeRecompute()
boolean
isRequireAllFiltersToDisplay()
protected void
localRecomputeComplete()
void
setChartRenderingState(ChartRenderingState renderingState)
void
update(String targetColumn, Object value)
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:
- Constant Field Values
-
ATTR_SERIES_NAME
- See Also:
- Constant Field Values
-
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()
-