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 classprotected static classNested classes/interfaces inherited from class com.illumon.iris.db.plot.util.tables.SwappableTable
SwappableTable.LocalTableUpdateListenerNested classes/interfaces inherited from interface com.illumon.iris.gui.util.oneclick.OneClickListener
OneClickListener.OneClickUpdateType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final String[]static final Stringprotected final booleanprotected final TableMapHandleprotected final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSwappableTableOneClickAbstract(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, boolean requireAllFiltersToDisplay, String[] byColumns) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds 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 StringGet a readable name for use with threads/logs etc.Gets theTableHandlefor this SwappableTable.voidhandleOneClickItem(String column, String item, OneClickListener.OneClickUpdateType type) voidhandleOneClickList(String column, OneClickList list, OneClickListener.OneClickUpdateType type) protected voidbooleanprotected voidvoidsetChartRenderingState(ChartRenderingState renderingState) voidMethods 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, updateStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.gui.util.oneclick.OneClickListener
clearAllFiltersMethods 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:SwappableTableAdds a column to the underlying table structures.- Specified by:
addColumnin classSwappableTable<String,Set<Object>> - Parameters:
column- column
-
getSeriesName
-
getFriendlyName
Description copied from class:SwappableTableGet a readable name for use with threads/logs etc.- Specified by:
getFriendlyNamein 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:
handleOneClickItemin interfaceOneClickListener
-
handleOneClickList
public void handleOneClickList(String column, OneClickList list, OneClickListener.OneClickUpdateType type) - Specified by:
handleOneClickListin interfaceOneClickListener
-
update
- Specified by:
updatein 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:
invokeRecomputein classSwappableTable<String,Set<Object>>
-
localRecomputeComplete
protected void localRecomputeComplete()- Specified by:
localRecomputeCompletein classSwappableTable<String,Set<Object>>
-
setChartRenderingState
-
getByColumns
-
getTableMapHandle
Description copied from class:SwappableTableGets theTableHandlefor this SwappableTable.- Specified by:
getTableMapHandlein interfaceSwappableTableMap- Overrides:
getTableMapHandlein classSwappableTable<String,Set<Object>> - Returns:
- this SwappableTable's
TableHandle
-
isRequireAllFiltersToDisplay
public boolean isRequireAllFiltersToDisplay()
-