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 classSwappableTableOneClickAbstract.OneClickTypeMismatchExceptionprotected static classSwappableTableOneClickAbstract.SwappableTablePreemptiveUpdatesQueryNested 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
Fields Modifier and Type Field Description static StringATTR_SERIES_NAMEprotected String[]byColumnsprotected Map<String,Class>columnTypesstatic StringNODE_NAMEprotected booleanrequireAllFiltersToDisplayprotected TableMapHandletableMapHandleprotected longupdateInterval -
Constructor Summary
Constructors Modifier Constructor Description protectedSwappableTableOneClickAbstract(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, boolean requireAllFiltersToDisplay, String[] byColumns) -
Method Summary
Modifier and Type Method Description voidaddColumn(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 StringgetFriendlyName()Get a readable name for use with threads/logs etc.ComparablegetSeriesName()TableMapHandlegetTableMapHandle()Gets theTableHandlefor this SwappableTable.voidhandleOneClickItem(String column, String item, OneClickListener.OneClickUpdateType type)voidhandleOneClickList(String column, OneClickList list, OneClickListener.OneClickUpdateType type)protected voidinvokeRecompute()booleanisRequireAllFiltersToDisplay()protected voidlocalRecomputeComplete()voidsetChartRenderingState(ChartRenderingState renderingState)voidupdate(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, 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:
- 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: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()
-