Package com.illumon.iris.console.db
Class DBTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.illumon.iris.gui.table.IrisTableModel
com.illumon.iris.console.db.BaseDBTableModel
com.illumon.iris.console.db.DBTableModel
- All Implemented Interfaces:
DBTableFetcher,DBViewportFetcher,LayoutHintingModel,TableFormatProvider,AutoFilterModel,ConditionalFormattingModel,CsvExportable,ExtendableTableInterface,FilteredModel,ConditionalFormattingStrategy.ConditionalFormattingChangeListener,MultiModelTable,QuickFilterable,ReversibleModel,SortableModel,ToolTipGeneratingTableModel,UpdateListener,Workspace,Serializable,TableModel
public class DBTableModel
extends BaseDBTableModel
implements Workspace, TableModel, ToolTipGeneratingTableModel, MultiModelTable, DBTableFetcher, DBViewportFetcher, CsvExportable, TableFormatProvider, LayoutHintingModel, ExtendableTableInterface, FilteredModel, QuickFilterable, AutoFilterModel, ReversibleModel, SortableModel, ConditionalFormattingModel
Table model for displaying views of layered Deephaven tables.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for listeners that want to be notified about changes to the underlying tables.Nested classes/interfaces inherited from interface com.illumon.iris.gui.table.AutoFilterModel
AutoFilterModel.AutoFilterListener, AutoFilterModel.AutoFilterRequestHandlerNested classes/interfaces inherited from interface com.illumon.iris.gui.table.ExtendableTableInterface
ExtendableTableInterface.Entry, ExtendableTableInterface.PartialResultNested classes/interfaces inherited from interface com.illumon.iris.gui.table.ReversibleModel
ReversibleModel.ReverseTypeNested classes/interfaces inherited from interface com.illumon.iris.gui.table.SortableModel
SortableModel.SortingDirectiveNested classes/interfaces inherited from interface com.illumon.iris.console.db.TableFormatProvider
TableFormatProvider.FormatTypeNested classes/interfaces inherited from interface com.illumon.iris.gui.table.ToolTipGeneratingTableModel
ToolTipGeneratingTableModel.GeneratedToolTip -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates how long an output the RemoteOperatorApply toString function can produce.static final StringDefines the name of the property that controls how long the RemoteOperatorApply toString value is allowed to be.static final Collection<String>Fields inherited from class com.illumon.iris.gui.table.IrisTableModel
columnSet_, nonViewColumnSet_Fields inherited from class javax.swing.table.AbstractTableModel
listenerListFields inherited from interface com.illumon.iris.gui.table.QuickFilterable
DEFAULT_MAX_QUICKFILTER_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionDBTableModel(com.fishlib.io.logger.Logger log, String name, Table baselineTable) Construct a new model.DBTableModel(com.fishlib.io.logger.Logger log, String name, Table baselineTable, Function<DBTableModel, FilterStrategyImpl> filterStrategyFactory) Construct a new model. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener for changes to the underlying Table.beginAddColumns(List<ExtendableTableInterface.Entry> columnDefinitions) Begin the process of setting extended columns.voidClear sorting on all columns.voidChange the baseline table for this model to an empty table with the same schema, and recompute accordingly.longconvertRowIndexToTableIndex(Table table, int row) Convert an index in Swing space, to Deephaven Table space.voiddeleteRollup(String name) Delete the saved rollup.protected voidvoidexportToCsv(Container ref, File f, com.fishlib.base.Procedure.Unary<File> openOrCopyFile) voidNotify the implementation that the set of underlying filters have changed.voidfinishAddColumns(ExtendableTableInterface.PartialResult partialResult) Incorporate the new DBTable and columns into tables and models.generateToolTip(int columnIndex, GuiColumn column) Gets the baseline table.getCellFormat(String columnName, int row, TableFormatProvider.FormatType type) longgetColumnColor(String columnName, int row) Gets the data table.Deprecated.Gets the displayed table.intgetEstimatedSelectedItemCount(JTable jTable) Get the estimated number of selected rows for this table.get all extended columns and definitionsGet theFilterStrategyImplin use.getHeaderRendererIcon(int columnIndex, int size) Get the sort icon for the specified column and size.intgetInitialFetchSize(String column) Get the number of unique values to initially fetch for the specified column.getModel()return the single child model, or null if none<MODEL_TYPE extends TableModel>
MODEL_TYPEreturn a model of type modelType, or null if noneint[]getOriginalRowIndices(int[] selectedRows) int[]getOriginalRowIndices(int[] selectedRows, boolean sorted) Get the current quick filter stringGet the current quick filter mode.longGets the raw size of theviewport tablelonggetRowColor(int row) intorg.jdom2.Element[]Gets the info for performing a rollup on this model.Get list of all saved rollups for this model.org.jdom2.Element[]Get all of the saved strategy workspaceElementsGet the set of sortable columns.getSortingDirective(int columnIndex) Get the sorting status of a single column.getTable()Deprecated.getTableForSelection(int[] selectedRowIndexes, BitSet includedColumnIndexes) Get a table containing only values as determined by the identified array of selected rows.getTableForSelection(int[] selectedRowIndexes, BitSet includedColumnIndexes, boolean stripPreview) Get a table containing only values as determined by the identified array of selected rows.getTableForSelection(JTable jTable) Get a table containing only selected values as determined by the selection model.getTableForSelection(JTable jTable, boolean stripPreview) Get a table containing only selected values as determined by the selection model.getTableForSelection(JTable jTable, BitSet includedColumnIndexes) Get a table containing only selected values as determined by the selection model.getTableForSelection(JTable jTable, BitSet includedColumnIndexes, boolean stripPreview) Get a table containing only selected values as determined by the selection model.Gets the unfiltered data table.getValueAt(int rowIndex, int columnIndex) Gets the viewport table.org.jdom2.ElementSerialize the class into an element to be stored in the workspacebooleanhasCellFormat(String columnName, TableFormatProvider.FormatType type) booleanhasColumnColor(String columnName) booleanhasRowColor(String columnName) booleanvoidCalled when sorting should be changed based on a header click.booleanFigure out whether the baseline table columns in this DBTableModel are all present in another DBTableModel's baseline table.booleanisCellEditable(int rowIndex, int columnIndex) booleanisClosed()booleanisFilterable(String column) Check if the specified column is filterable.booleanCheck if the model is currently being filtered.booleanisRemote()Indicates if the underlying Table for this model is remote.booleandetermine whether there are any sorting directives - similar to empty()booleanisStale(int rowIndex, int columnIndex) Check if the specified cell is stale.voidmarkColumnColorUnchanged(String columnName) voidvoidonFormattingChanged(String columnName) get the current callback value.voidvoidremoveStrategy(String name) Remove the globally saved filter of the specified name.voidRemoves a table change listener.requestAutoFilterData(String columnName, int maxUniqueValues, AutoFilterModel.AutoFilterListener listener) Requests auto filter data for a given column name.requestMoreAutoFilterData(String columnName, AutoFilterModel.AutoFilterListener listener) Requests more data for the given column.voidSet the type of reversal operation to perform.voidvoidsaveRollup(com.illumon.iris.treetable.RollupDefinition def, org.jdom2.Element workspaceInfo) Save the specified rollup to the workspace.voidsaveStrategy(String name) Save the current set of filters to the global set of filters by name.voidsetBaselineTable(Table baselineTable) Change the baseline table for this model, and recompute accordingly.voidCloses the table model and releases all table handles.static voidsetColumnTypeEditable(Class columnType) When rendering a column of columnType; indicate that it is editable to the JTable.voidsetFinishedCallback(Runnable finishedCallback) set a callback to be called on the swing thread sometime after finishAddColumnsvoidsetQuickFilter(String filter, QuickFilterMode mode) Set the quick filter to apply.voidsetSavedRollup(SavedRollup rollup) Sets the rollup info created by a UI rollup.voidsetSortingStatus(int columnIndex, int status, boolean isAbsolute, boolean clearSorting) Set the sorting status of a single column.voidsetToolTipDialog(int col, GuiColumn column, JDialog dialog, JLabel label) voidsetWorkspaceInfo(org.jdom2.Element workspaceInfo) Restore the class to the state defined by the data persisted in workspaceInfovoidshowStatistics(JTable table, int columnIndex, GuiColumn column) booleanDetermine whether this instance supports column change.static voidUpdate the maximum number of tables rows that can be displayed.updateTelemetryInfo(TelemetryLogger.TelemetryInfo telemetryInfo) updateTelemetryInfo(String tableName, long pqSerial, QueryProcessorConnection qpc) booleanwasColumnColorChanged(String columnName) Methods inherited from class com.illumon.iris.console.db.BaseDBTableModel
columnSet, columnSet, columnSet, columnSet, columnSet, generateThrowableHtmlMessage, getIrisTablePanel, getName, getViewportForTable, removeStatusMessage, setIrisTablePanel, setProcessingMessage, setStatusMessage, setStatusMessageButton, setTabColor, setWarningAndTableSize, showProcessingErrorPopup, showProcessingErrorPopupMethods inherited from class com.illumon.iris.gui.table.IrisTableModel
dispose, getColumnClass, getColumnCount, getColumnIndex, getColumnName, getColumnSet, getNonViewColumnSet, getTableModelName, processUpdate, registerAsUpdateListener, setColumnSetMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.gui.table.AutoFilterModel
getColumnSetMethods inherited from interface com.illumon.iris.gui.table.ConditionalFormattingModel
isSupportedMethods inherited from interface com.illumon.iris.gui.table.FilteredModel
getColumnSetMethods inherited from interface com.illumon.iris.gui.table.QuickFilterable
getMaxQuickfilterLengthMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, removeTableModelListener, setValueAtMethods inherited from interface com.illumon.iris.gui.workspace.Workspace
isGlobalSetting
-
Field Details
-
LOG_REMOTE_OPERATOR_APPLY_LENGTH_PROPERTY
Defines the name of the property that controls how long the RemoteOperatorApply toString value is allowed to be.- See Also:
-
LOG_REMOTE_OPERATOR_APPLY_LENGTH
public static final int LOG_REMOTE_OPERATOR_APPLY_LENGTHIndicates how long an output the RemoteOperatorApply toString function can produce. When set to a negative value, no length limit will be applied, though the QueryOperationPerformanceLog has a length limit of its own. When set to 0, the internal details of the RemoteOperatorApply will be omitted. When set to any positive value, the output will be capped at that length.- ImplNote:
- This should not normally be needed, but in some cases (such as a client with a table with thousands of columns, allowing users to use the 'search' function to apply a filter to all the text columns at once), the RemoteOperatorApply full-detail value might become so long as to impact a client. Therefore, this mechanism is included to allow the full-detail value to be reduced or entirely excluded as needed.
-
PREFETCH_ATTRS
-
-
Constructor Details
-
DBTableModel
public DBTableModel(@NotNull com.fishlib.io.logger.Logger log, @NotNull String name, @NotNull Table baselineTable) Construct a new model.- Parameters:
log- The logname- The namebaselineTable- The baseline table
-
DBTableModel
public DBTableModel(@NotNull com.fishlib.io.logger.Logger log, @NotNull String name, @NotNull Table baselineTable, @NotNull Function<DBTableModel, FilterStrategyImpl> filterStrategyFactory) Construct a new model.- Parameters:
log- The logname- The namebaselineTable- The baseline tablefilterStrategyFactory- A factory to create the filter strategy
-
-
Method Details
-
updateMaxTableRows
public static void updateMaxTableRows()Update the maximum number of tables rows that can be displayed. Should be called after changing font or look-and-feel. -
setColumnTypeEditable
When rendering a column of columnType; indicate that it is editable to the JTable.- Parameters:
columnType- the Class to make column's editable for
-
updateTelemetryInfo
-
updateTelemetryInfo
public DBTableModel updateTelemetryInfo(@Nullable String tableName, long pqSerial, @Nullable QueryProcessorConnection qpc) -
getTelemetryInfo
-
isRemote
public boolean isRemote()Indicates if the underlying Table for this model is remote.- Returns:
- true if the Table is remote, false otherwise
-
addTableChangeListener
Adds a listener for changes to the underlying Table. Note that this will call listener immediately upon being added.- Parameters:
listener- the listener to add
-
removeTableChangeListener
Removes a table change listener.- Parameters:
listener- the listener to remove
-
getBaselineTable
Gets the baseline table. This is the unmodified table prior to any apply operations.- Returns:
- the baseline table.
-
getUnfilteredDataTable
Gets the unfiltered data table. This is the table for getting data prior to any filtering.- Returns:
- the unfiltered data table
-
getDataTable
Gets the data table. This is the table for getting data after any filtering.- Returns:
- the data table
-
getDisplayedTable
Gets the displayed table. This is the table that will be displayed.- Returns:
- the displayed table
-
getViewportTable
Gets the viewport table. This is the table for viewport.- Returns:
- the viewport table.
-
setClosed
public void setClosed()Closes the table model and releases all table handles. -
isClosed
public boolean isClosed() -
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:WorkspaceSerialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfoin interfaceWorkspace- Overrides:
getWorkspaceInfoin classIrisTableModel- Returns:
- An
Elementcontaining the data to persist.
-
setWorkspaceInfo
public void setWorkspaceInfo(@NotNull org.jdom2.Element workspaceInfo) Description copied from interface:WorkspaceRestore the class to the state defined by the data persisted in workspaceInfo- Specified by:
setWorkspaceInfoin interfaceWorkspace- Overrides:
setWorkspaceInfoin classIrisTableModel- Parameters:
workspaceInfo- AnElementcontaining the persisted state.
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel
-
getRawSize
public long getRawSize()Gets the raw size of theviewport table- Returns:
- the raw size
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
convertRowIndexToTableIndex
Convert an index in Swing space, to Deephaven Table space. While the indices passed to the DBTableModel may appear to be flat the underlying table may not be.- Parameters:
row- The row in Swing-model space.- Returns:
- the equivalent index into the Deephaven viewport table
-
isStale
public boolean isStale(int rowIndex, int columnIndex) Check if the specified cell is stale. Note that the indices are in SWING model space, and will be automatically converted to Deephaven table space.- Overrides:
isStalein classIrisTableModel- Parameters:
rowIndex- the row indexcolumnIndex- the column index- Returns:
- true if the cell is stale.
-
generateToolTip
public ToolTipGeneratingTableModel.GeneratedToolTip generateToolTip(int columnIndex, @NotNull GuiColumn column) - Specified by:
generateToolTipin interfaceToolTipGeneratingTableModel
-
hasShowStatistics
public boolean hasShowStatistics()- Specified by:
hasShowStatisticsin interfaceToolTipGeneratingTableModel
-
showStatistics
- Specified by:
showStatisticsin interfaceToolTipGeneratingTableModel
-
setToolTipDialog
public void setToolTipDialog(int col, @NotNull GuiColumn column, @NotNull JDialog dialog, @NotNull JLabel label) - Specified by:
setToolTipDialogin interfaceToolTipGeneratingTableModel
-
getModel
public <MODEL_TYPE extends TableModel> MODEL_TYPE getModel(@NotNull Class<MODEL_TYPE> modelTypeClass) Description copied from interface:MultiModelTablereturn a model of type modelType, or null if none- Specified by:
getModelin interfaceMultiModelTable
-
getModel
Description copied from interface:MultiModelTablereturn the single child model, or null if none- Specified by:
getModelin interfaceMultiModelTable
-
getOriginalRowIndices
public int[] getOriginalRowIndices(@NotNull int[] selectedRows) - Specified by:
getOriginalRowIndicesin interfaceMultiModelTable
-
getOriginalRowIndices
public int[] getOriginalRowIndices(@NotNull int[] selectedRows, boolean sorted) - Specified by:
getOriginalRowIndicesin interfaceMultiModelTable
-
getOriginalModel
- Specified by:
getOriginalModelin interfaceMultiModelTable
-
getTable
Deprecated.- Specified by:
getTablein interfaceDBTableFetcher
-
getDbViewportTable
Deprecated.- Specified by:
getDbViewportTablein interfaceDBViewportFetcher
-
exportToCsv
public void exportToCsv(Container ref, File f, com.fishlib.base.Procedure.Unary<File> openOrCopyFile) throws IOException - Specified by:
exportToCsvin interfaceCsvExportable- Throws:
IOException
-
getTableForSelection
Get a table containing only selected values as determined by the selection model.- Parameters:
jTable- The table to find selected items in- Returns:
- A table containing only the rows selected by the model.
-
getTableForSelection
Get a table containing only selected values as determined by the selection model.- Parameters:
jTable- The table to find selected items instripPreview- Remove preview application, so that the raw data from the table is returned (e.g., double[] not the preview of the double[]).- Returns:
- A table containing only the rows selected by the model.
-
getTableForSelection
Get a table containing only selected values as determined by the selection model. The resultant table will only contain the columns defined bycolumns- Parameters:
jTable- The table to find selected items inincludedColumnIndexes- The columns to include in the new table.- Returns:
- A table containing only the rows selected by the model.
-
getTableForSelection
public Table getTableForSelection(@NotNull int[] selectedRowIndexes, @NotNull BitSet includedColumnIndexes) Get a table containing only values as determined by the identified array of selected rows. The resultant table will only contain the columns defined bycolumns- Parameters:
selectedRowIndexes- The properly indexed rows from the original to include in the new tableincludedColumnIndexes- The columns to include in the new table.- Returns:
- A table containing only the rows selected by the model.
-
getTableForSelection
public Table getTableForSelection(@NotNull JTable jTable, @NotNull BitSet includedColumnIndexes, boolean stripPreview) Get a table containing only selected values as determined by the selection model. The resultant table will only contain the columns defined bycolumns- Parameters:
jTable- The table to find selected items inincludedColumnIndexes- The columns to include in the new table.stripPreview- Remove preview application, so that the raw data from the table is returned (e.g., double[] not the preview of the double[]).- Returns:
- A table containing only the rows selected by the model.
-
getTableForSelection
public Table getTableForSelection(@NotNull int[] selectedRowIndexes, @NotNull BitSet includedColumnIndexes, boolean stripPreview) Get a table containing only values as determined by the identified array of selected rows. The resultant table will only contain the columns defined bycolumns- Parameters:
selectedRowIndexes- The properly indexed rows from the original to include in the new tableincludedColumnIndexes- The columns to include in the new table.stripPreview- Remove preview application, so that the raw data from the table is returned (e.g., double[] not the preview of the double[]).- Returns:
- A table containing only the rows selected by the model.
-
getEstimatedSelectedItemCount
Get the estimated number of selected rows for this table. -
getColumnColor
- Specified by:
getColumnColorin interfaceTableFormatProvider
-
getRowColor
public long getRowColor(int row) - Specified by:
getRowColorin interfaceTableFormatProvider
-
getCellFormat
public String getCellFormat(@NotNull String columnName, int row, @NotNull TableFormatProvider.FormatType type) - Specified by:
getCellFormatin interfaceTableFormatProvider
-
hasColumnColor
- Specified by:
hasColumnColorin interfaceTableFormatProvider
-
hasRowColor
- Specified by:
hasRowColorin interfaceTableFormatProvider
-
hasCellFormat
public boolean hasCellFormat(@NotNull String columnName, @NotNull TableFormatProvider.FormatType type) - Specified by:
hasCellFormatin interfaceTableFormatProvider
-
wasColumnColorChanged
- Specified by:
wasColumnColorChangedin interfaceTableFormatProvider
-
markColumnColorUnchanged
- Specified by:
markColumnColorUnchangedin interfaceTableFormatProvider
-
getLayoutHints
- Specified by:
getLayoutHintsin interfaceLayoutHintingModel- Returns:
- A LayoutHintBuilder defining the layout hints for this model, or null if none were present.
-
setSavedRollup
Sets the rollup info created by a UI rollup.- Parameters:
rollup- the info for rolling up this model
-
getSavedRollup
Gets the info for performing a rollup on this model. This will be null if the model has never been rollup up.- Returns:
- the rollup model, null if there is none
-
isBaselineSubsetOfOtherBaseline
Figure out whether the baseline table columns in this DBTableModel are all present in another DBTableModel's baseline table.- Parameters:
other- The other DBTableModel- Returns:
- true if all columns in this model's baseline table are present in the other model's data table with the same data type
-
supportsColumnChange
public boolean supportsColumnChange()Description copied from interface:ExtendableTableInterfaceDetermine whether this instance supports column change. Some subclasses support this in all cases, others only sometimes.- Specified by:
supportsColumnChangein interfaceExtendableTableInterface- Returns:
- true if it is valid to call addColumns
-
beginAddColumns
public ExtendableTableInterface.PartialResult beginAddColumns(@NotNull List<ExtendableTableInterface.Entry> columnDefinitions) Description copied from interface:ExtendableTableInterfaceBegin the process of setting extended columns. This will create and return a new DBTable via updateView, with new columns. Implementations must not touch Swing components, and callers must not invoke this on the Swing event thread.- Specified by:
beginAddColumnsin interfaceExtendableTableInterface- Parameters:
columnDefinitions- list of column name/definition entries to add- Returns:
- PartialResult containing intermediate results to be passed to finishAddColumns
-
setFinishedCallback
Description copied from interface:ExtendableTableInterfaceset a callback to be called on the swing thread sometime after finishAddColumns- Specified by:
setFinishedCallbackin interfaceExtendableTableInterface- Parameters:
finishedCallback- Runnable to be called after finishAddColumns
-
popFinishedCallback
Description copied from interface:ExtendableTableInterfaceget the current callback value. set the callback to null- Specified by:
popFinishedCallbackin interfaceExtendableTableInterface- Returns:
- current callback, if any
-
finishAddColumns
Description copied from interface:ExtendableTableInterfaceIncorporate the new DBTable and columns into tables and models. This must not be called on the Swing event thread.- Specified by:
finishAddColumnsin interfaceExtendableTableInterface- Parameters:
partialResult- intermediate results from beginAddColumns
-
getExtendedColumns
Description copied from interface:ExtendableTableInterfaceget all extended columns and definitions- Specified by:
getExtendedColumnsin interfaceExtendableTableInterface- Returns:
- list of name/definition pairs.
-
filterChanged
public void filterChanged()Description copied from interface:FilteredModelNotify the implementation that the set of underlying filters have changed.- Specified by:
filterChangedin interfaceFilteredModel
-
getFilterStrategy
Description copied from interface:FilteredModelGet theFilterStrategyImplin use.- Specified by:
getFilterStrategyin interfaceAutoFilterModel- Specified by:
getFilterStrategyin interfaceFilteredModel- Returns:
- the FilterStrategy
-
saveStrategy
Description copied from interface:FilteredModelSave the current set of filters to the global set of filters by name.- Specified by:
saveStrategyin interfaceFilteredModel- Parameters:
name- the name of the filter
-
getSavedStrategies
@NotNull public org.jdom2.Element[] getSavedStrategies()Description copied from interface:FilteredModelGet all of the saved strategy workspaceElements- Specified by:
getSavedStrategiesin interfaceFilteredModel- Returns:
- an array of saved filter strategy elements.
-
removeStrategy
Description copied from interface:FilteredModelRemove the globally saved filter of the specified name.- Specified by:
removeStrategyin interfaceFilteredModel- Parameters:
name- the name of the filter to remove
-
isFilteringOn
public boolean isFilteringOn()Description copied from interface:FilteredModelCheck if the model is currently being filtered.- Specified by:
isFilteringOnin interfaceFilteredModel- Returns:
- true if filters are currently applied
-
isFilterable
Description copied from interface:FilteredModelCheck if the specified column is filterable.- Specified by:
isFilterablein interfaceAutoFilterModel- Specified by:
isFilterablein interfaceFilteredModel- Parameters:
column- the column name.- Returns:
- true if the column is filterable.
-
setQuickFilter
Description copied from interface:QuickFilterableSet the quick filter to apply.- Specified by:
setQuickFilterin interfaceQuickFilterable- Parameters:
filter- the filter textmode- theQuickFilterModeto apply with
-
getQuickFilter
Description copied from interface:QuickFilterableGet the current quick filter string- Specified by:
getQuickFilterin interfaceQuickFilterable- Returns:
- the current filter
-
getQuickFilterMode
Description copied from interface:QuickFilterableGet the current quick filter mode.- Specified by:
getQuickFilterModein interfaceQuickFilterable- Returns:
- the quickfilter mode
-
requestAutoFilterData
public AutoFilterModel.AutoFilterRequestHandler requestAutoFilterData(@NotNull String columnName, int maxUniqueValues, @NotNull AutoFilterModel.AutoFilterListener listener) Description copied from interface:AutoFilterModelRequests auto filter data for a given column name.- Specified by:
requestAutoFilterDatain interfaceAutoFilterModel- Parameters:
columnName- the name of the columnmaxUniqueValues- the maximum number of unique values to returnlistener- a listener for the data- Returns:
- a handler for the request
-
requestMoreAutoFilterData
public AutoFilterModel.AutoFilterRequestHandler requestMoreAutoFilterData(@NotNull String columnName, @NotNull AutoFilterModel.AutoFilterListener listener) Description copied from interface:AutoFilterModelRequests more data for the given column.- Specified by:
requestMoreAutoFilterDatain interfaceAutoFilterModel- Parameters:
columnName- the name of the columnlistener- a listener for the data- Returns:
- a handler for the request
-
getInitialFetchSize
Description copied from interface:AutoFilterModelGet the number of unique values to initially fetch for the specified column.- Specified by:
getInitialFetchSizein interfaceAutoFilterModel- Parameters:
column- The column to get the fetch size for- Returns:
- The number of unique values to fetch
-
reverse
Description copied from interface:ReversibleModelSet the type of reversal operation to perform.
ReversibleModel.ReverseType.None- No reversal is performedReversibleModel.ReverseType.PreReverse- Reverse the table before performing sortsReversibleModel.ReverseType.PostReverse- Reverse the table after performing sorts
- Specified by:
reversein interfaceReversibleModel
-
getReverseType
- Specified by:
getReverseTypein interfaceReversibleModel- Returns:
- The current table reversal mode.
-
headerClicked
Description copied from interface:SortableModelCalled when sorting should be changed based on a header click.- Specified by:
headerClickedin interfaceSortableModel- Parameters:
e- the drivingMouseEvent
-
getHeaderRendererIcon
Description copied from interface:SortableModelGet the sort icon for the specified column and size. May return null, for no icon.- Specified by:
getHeaderRendererIconin interfaceSortableModel- Parameters:
columnIndex- the columnsize- the icon size- Returns:
- an icon to render for sorting.
-
cancelSorting
public void cancelSorting()Description copied from interface:SortableModelClear sorting on all columns.- Specified by:
cancelSortingin interfaceSortableModel
-
setSortingStatus
public void setSortingStatus(int columnIndex, int status, boolean isAbsolute, boolean clearSorting) Description copied from interface:SortableModelSet the sorting status of a single column. Adds to existing sort definition.- Specified by:
setSortingStatusin interfaceSortableModel
-
getSortingDirective
Description copied from interface:SortableModelGet the sorting status of a single column.- Specified by:
getSortingDirectivein interfaceSortableModel
-
isSorting
public boolean isSorting()Description copied from interface:SortableModeldetermine whether there are any sorting directives - similar to empty()- Specified by:
isSortingin interfaceSortableModel
-
getSortableColumns
Description copied from interface:SortableModelGet the set of sortable columns.- Specified by:
getSortableColumnsin interfaceSortableModel- Overrides:
getSortableColumnsin classIrisTableModel- Returns:
- the set of sortable columns
-
saveConditionalFormattingStrategy
- Specified by:
saveConditionalFormattingStrategyin interfaceConditionalFormattingModel
-
getSavedConditionalFormattingStrategies
public org.jdom2.Element[] getSavedConditionalFormattingStrategies()- Specified by:
getSavedConditionalFormattingStrategiesin interfaceConditionalFormattingModel
-
removeConditionalFormattingStrategy
- Specified by:
removeConditionalFormattingStrategyin interfaceConditionalFormattingModel
-
getConditionalFormattingStrategy
- Specified by:
getConditionalFormattingStrategyin interfaceConditionalFormattingModel
-
onFormattingChanged
public void onFormattingChanged()- Specified by:
onFormattingChangedin interfaceConditionalFormattingStrategy.ConditionalFormattingChangeListener
-
onFormattingChanged
- Specified by:
onFormattingChangedin interfaceConditionalFormattingStrategy.ConditionalFormattingChangeListener
-
setBaselineTable
Change the baseline table for this model, and recompute accordingly. It is expected that the new baseline table has the same structure as the original.- Parameters:
baselineTable- The new baseline table
-
clearBaselineTable
public void clearBaselineTable()Change the baseline table for this model to an empty table with the same schema, and recompute accordingly. -
doneProcessing
protected void doneProcessing()- Overrides:
doneProcessingin classBaseDBTableModel
-
saveRollup
public void saveRollup(com.illumon.iris.treetable.RollupDefinition def, org.jdom2.Element workspaceInfo) Save the specified rollup to the workspace.- Parameters:
def- the rollup to saveworkspaceInfo-
-
deleteRollup
Delete the saved rollup.- Parameters:
name- the workspace to delete.
-
getSavedRollups
Get list of all saved rollups for this model.- Returns:
- an list of saved rollups
-