Class TableViewPainted
java.lang.Object
com.biglybt.ui.common.table.impl.TableViewImpl<Object>
com.biglybt.ui.swt.views.table.painted.TableViewPainted
- All Implemented Interfaces:
ParameterListener, MessageText.MessageTextListener, AEDiagnosticsEvidenceGenerator, TableStructureModificationListener<Object>, TableView<Object>, BubbleTextBox.BubbleTextBoxChangeListener, ObfuscateImage, TableViewSWT<Object>
public class TableViewPainted
extends TableViewImpl<Object>
implements ParameterListener, TableViewSWT<Object>, ObfuscateImage, MessageText.MessageTextListener, BubbleTextBox.BubbleTextBoxChangeListener
A TableView implemented by painting on a canvas
TODO:
Keyboard Selection
Cursor
Column move and resize past bounds
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classNested classes/interfaces inherited from class TableViewImpl
TableViewImpl.filter<DATASOURCETYPE>Nested classes/interfaces inherited from interface TableViewSWT
TableViewSWT.ColorRequester -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.graphics.Imageprivate org.eclipse.swt.graphics.GCprotected org.eclipse.swt.graphics.RectangleUp to date table client area.private org.eclipse.swt.graphics.Colorprivate intprivate org.eclipse.swt.widgets.Compositeprivate static final booleanprivate static final booleanprivate static final booleanprivate intprivate booleanstatic final booleanprivate org.eclipse.swt.dnd.DragSourceprivate org.eclipse.swt.dnd.DropTargetprivate booleanprivate static final booleanprivate booleanprotected booleanprivate booleanprivate TableRowPaintedprotected intHow often graphic cells get updatedprivate static final booleanprivate org.eclipse.swt.widgets.ScrollBarprivate TableHeaderPaintedprivate Objectprotected floatprivate booleanprotected booleanprotected booleanprivate booleanprivate booleanprivate intprivate intprivate intprivate org.eclipse.swt.widgets.Compositeprivate TableViewSWTPanelCreatorprivate org.eclipse.swt.widgets.Menustatic final Stringstatic final Stringstatic final Stringprivate AtomicIntegerprivate Map<TableColumnCore, TableColumnPainted> private List<TableRowPainted> (package private) booleanprivate FrequencyLimitedDispatcherprivate intprivate booleanprivate static final booleanprivate FrequencyLimitedDispatcherprotected intprivate intprivate org.eclipse.swt.widgets.Canvasprivate final Stringprivate booleanprivate org.eclipse.swt.widgets.Shellstatic final Stringprivate booleanprivate intprivate TableViewSWT_Commonprivate TableViewSWT_TabsCommonprivate org.eclipse.swt.widgets.ScrollBar(package private) FrequencyLimitedDispatcher(package private) LinkedHashSet<TableRowPainted> Rows visible to user.private final ObjectFields inherited from class TableViewImpl
configMan, DEBUG_SELECTION, DEBUGADDREMOVE, filter, tableID -
Constructor Summary
ConstructorsConstructorDescriptionTableViewPainted(Class<?> pluginDataSourceType, String _sTableID, String _sTextPrefixID, TableColumnCore[] _basicItems, String _sDefaultSortOn, int _iTableStyle) Main Initializer -
Method Summary
Modifier and TypeMethodDescriptionprivate void__refreshTable(boolean bForceSort) voidaddKeyListener(org.eclipse.swt.events.KeyListener listener) voidvoidaddRowMouseListener(TableRowMouseListener listener) voidaddRowPaintListener(TableRowSWTPaintListener listener) voidbubbleTextBoxChanged(BubbleTextBox bubbleTextBox) booleanvoidSend Selected rows to the clipboard in a SpreadSheet friendly format (tab/cr delimited)voidcolumnOrderChanged(int[] iPositions) voidcolumnSizeChanged(TableColumnCore tableColumn, int diff) org.eclipse.swt.dnd.DragSourcecreateDragSource(int style) Set a Drag Source and handle its disposal.org.eclipse.swt.dnd.DropTargetcreateDropTarget(int style) Set a Drop Target and handle its disposal
Should be called onTableLifeCycleListener.EVENT_TABLELIFECYCLE_INITIALIZEDevent triggercreateFakeRow(Object object) org.eclipse.swt.widgets.CompositecreateMainPanel(org.eclipse.swt.widgets.Composite composite) Creates a composite within the specified composite and sets its layout to a default FillLayout().private org.eclipse.swt.widgets.MenucreateNewRow(Object object) voiddelete()voidvoideditCell(TableColumnCore column, int row) voidenableFilterCheck(BubbleTextBox txtFilter, TableViewFilterCheck<Object> filterCheck) voidenableFilterCheck(BubbleTextBox filterBox, TableViewFilterCheck<Object> filterCheck, boolean filterSubRows) voidenableFilterCheck(org.eclipse.swt.widgets.Text txtFilter, TableViewFilterCheck<Object> filterCheck) booleanenableSizeSlider(org.eclipse.swt.widgets.Composite composite, int min, int max) voidprivate voidforceDebugShellRefresh(org.eclipse.swt.graphics.Rectangle bounds) voidgenerate(IndentWriter writer) org.eclipse.swt.graphics.Rectangleprotected TableColumnPaintedorg.eclipse.swt.widgets.Compositeprotected booleanorg.eclipse.swt.events.KeyListener[]private TableRowPaintedintprotected TableViewSWTPanelCreatorintprotected TableRowCoregetNextRow(TableRowCore relativeToRow) voidgetOffUIThread(AERunnable runnable) protected TableRowCoregetPreviousRow(TableRowCore relativeToRow) getRow(int x, int y) getRow(org.eclipse.swt.dnd.DropTargetEvent event) intintprivate intgetTableCell(int x, int y) org.eclipse.swt.graphics.PointgetTableCellMouseOffset(TableCellSWT tableCell) getTableColumnByOffset(int mouseX) org.eclipse.swt.widgets.CompositegetTableRow(int x, int y, boolean anyX) Retrieves the row that has the cursor over itbooleanbooleanbooleanvoidinitialize(UISWTView parentView, org.eclipse.swt.widgets.Composite parent) voidinitialize(org.eclipse.swt.widgets.Composite parent) voidinvokePaintListeners(org.eclipse.swt.graphics.GC gc, TableRowCore row, TableColumnCore column, org.eclipse.swt.graphics.Rectangle cellArea) voidbooleanbooleanbooleanbooleanprotected booleanbooleanisRowVisible(TableRowCore row) booleanprotected booleanbooleanbooleanbooleanvoidlocaleChanged(Locale old_locale, Locale new_locale) org.eclipse.swt.graphics.ImageobfuscatedImage(org.eclipse.swt.graphics.Image image) voidvoidvoidparameterChanged(String parameterName) Called, when a parameter has changed.private StringprettyIndex(TableRowCore row) private voidrecalculateVisibleRows(TableRowCore[] rows, int yStart, List<TableRowSWT> newVisibleRows, List<TableRowSWT> rowsStayedVisibleButMoved) voidredrawRow(TableRowPainted row, boolean immediateRedraw) voidvoidrefreshTable(boolean bForceSort) voidRemove all the data sources (table rows) from the table.voidremoveKeyListener(org.eclipse.swt.events.KeyListener listener) voidremoveRowMouseListener(TableRowMouseListener listener) voidvoidrequestFocus(int reason) protected voidvoidrowHeightChanged(TableRowCore row, int oldHeight, int newHeight) voidscrollVertically(int distance) protected voidselectRowsTo(TableRowCore clickedRow) voidsetEnabled(boolean enable) voidsetEnableTabViews(boolean enableTabViews, boolean expandByDefault) voidsetExpandEnabled(boolean b) voidsetFilterText(String s, boolean force) voidvoidsetHeaderVisible(boolean visible) voidsetMainPanelCreator(TableViewSWTPanelCreator mainPanelCreator) voidsetMaxItemShown(int newIndex) voidsetRedrawEnabled(boolean enabled) voidsetRowDefaultHeight(int iHeight) voidsetRowDefaultHeightEM(float lineHeight) voidsetRowDefaultHeightPX(int iHeight) voidsetRowHeight(int newHeight) voidsetRowSelected(TableRowCore row, boolean selected, boolean trigger) voidsetSelectedRows(TableRowCore[] newSelectionArray, boolean trigger) voidshowRow(TableRowCore rowToShow) voidprivate voidsortRowsByVisibilityIndex(TableRowCore[] selectedRows) protected voidprotected voidprivate voidswt_paintCanvasImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawBounds) protected voidswt_paintComposite(org.eclipse.swt.events.PaintEvent e) voidswt_updateCanvasImage(boolean immediateRedraw) protected voidswt_updateCanvasImage(org.eclipse.swt.graphics.Rectangle bounds, boolean immediateRedraw) protected voidprivate voidvoidvoidtableStructureChanged(boolean columnAddedOrRemoved, Class forPluginDataSourceType) protected voidtriggerLifeCycleListener(int eventType) voidprotected voidintvoiduiRemoveRows(TableRowCore[] rows, Integer[] rowIndexes) voiduiSelectionChanged(TableRowCore[] newlySelectedRows, TableRowCore[] deselectedRows) voidMethods inherited from class TableViewImpl
_sortColumn, addCountChangeListener, addDataSource, addDataSources, addExpansionChangeListener, addLifeCycleListener, addRefreshListener, addRefreshListener, addSelectionListener, addSortColumn, addTableDataSourceChangedListener, canMoveBack, canMoveForward, cellInvalidate, cellInvalidate, columnInvalidate, columnInvalidate, columnInvalidate, columnInvalidate, dataSourceExists, debug, fillRowGaps, getAllColumns, getColumnCells, getDataSources, getDataSources, getDataSourceType, getFilterText, getFirstSelectedDataSource, getFirstSelectedDataSource, getHeaderVisible, getParentDataSource, getRow, getRow, getRowAndSubRowCount, getRowCount, getRowQuick, getRows, getRowsAndSubRows, getRowsSync, getSelectedDataSources, getSelectedDataSources, getSelectedDataSourcesList, getSelectedPluginDataSourcesList, getSelectedRows, getSelectedRowsList, getSelectedRowsSize, getSortColumnCount, getSortColumns, getTableColumn, getTableColumn, getTableID, getTextPrefixID, getVisibleColumns, hasPendingDSChanges, hasSortColumn, indexOf, invokeExpansionChangeListeners, invokeRefreshListeners, isColumnVisible, isFiltered, isLastRow, isMenuEnabled, isSelected, isUnfilteredDataSourceAdded, moveBack, moveForward, numberAllVisibleRows, processDataSourceQueue, processDataSourceQueue, processDataSourceQueueSync, reaffirmSelection, refilter, removeCountChangeListener, removeDataSource, removeDataSources, removeExpansionChangeListener, removeRefreshListener, removeTableDataSourceChangedListener, resetLastSortedOn, runForAllRows, runForAllRows, runForSelectedRows, selectAll, setColumnsOrdered, setMenuEnabled, setParentDataSource, setSelectedRows, setSortColumns, size, sortRows, tableInvalidate, triggerDefaultSelectedListeners, triggerDeselectionListeners, triggerFocusChangedListeners, triggerFocusRequested, triggerListenerRowAdded, triggerListenerRowRemoved, triggerMouseEnterExitRow, triggerSelectionChangeListeners, triggerSelectionListeners, triggerTableRefreshListeners, visibleRowChangeDisabledMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TableView
addCountChangeListener, addDataSource, addDataSources, addExpansionChangeListener, addLifeCycleListener, addRefreshListener, addSelectionListener, addSortColumn, addTableDataSourceChangedListener, canMoveBack, canMoveForward, columnInvalidate, columnInvalidate, columnInvalidate, dataSourceExists, getAllColumns, getColumnCells, getDataSources, getDataSources, getDataSourceType, getFirstSelectedDataSource, getHeaderVisible, getParentDataSource, getRow, getRow, getRowAndSubRowCount, getRowCount, getRows, getRowsAndSubRows, getSelectedDataSources, getSelectedDataSources, getSelectedRows, getSelectedRowsSize, getSortColumnCount, getSortColumns, getTableColumn, getTableColumn, getTableID, getTextPrefixID, getVisibleColumns, hasSortColumn, indexOf, isColumnVisible, isSelected, isUnfilteredDataSourceAdded, moveBack, moveForward, processDataSourceQueue, processDataSourceQueue, processDataSourceQueueSync, removeCountChangeListener, removeDataSource, removeDataSources, removeExpansionChangeListener, removeTableDataSourceChangedListener, resetLastSortedOn, runForAllRows, runForAllRows, runForSelectedRows, selectAll, setParentDataSource, setSelectedRows, setSortColumns, size, sortRowsMethods inherited from interface TableViewSWT
addRefreshListener, getFilterText, getRowQuick, invokeExpansionChangeListeners, invokeRefreshListeners, isFiltered, isMenuEnabled, refilter, removeRefreshListener, setMenuEnabled, tableInvalidate, triggerDefaultSelectedListeners
-
Field Details
-
hasGetScrollBarMode
private static final boolean hasGetScrollBarMode -
DEBUG_ROWCHANGE
private static final boolean DEBUG_ROWCHANGE- See Also:
-
DEBUG_WITH_SHELL
private static final boolean DEBUG_WITH_SHELL- See Also:
-
DIRECT_DRAW
public static final boolean DIRECT_DRAW -
REDUCE_GC_CREATION
private static final boolean REDUCE_GC_CREATION -
DEBUG_REDRAW_CLIP
private static final boolean DEBUG_REDRAW_CLIP- See Also:
-
expand_enabled_default
private static final boolean expand_enabled_default -
MENUKEY_IN_BLANK_AREA
- See Also:
-
MENUKEY_IS_HEADER
- See Also:
-
MENUKEY_COLUMN
- See Also:
-
TABLEKEY_LAST_AUTOSCROLL
- See Also:
-
cTable
private org.eclipse.swt.widgets.Composite cTable -
loopFactor
private int loopFactor -
graphicsUpdate
protected int graphicsUpdateHow often graphic cells get updated -
reOrderDelay
protected int reOrderDelay -
extendedErase
protected boolean extendedErase -
defaultRowHeight
private int defaultRowHeight -
lineHeight
private int lineHeight -
iHeightEM
protected float iHeightEM -
visibleRows
LinkedHashSet<TableRowPainted> visibleRowsRows visible to user. We assume this list is always up to date -
visibleRows_sync
-
clientArea
protected org.eclipse.swt.graphics.Rectangle clientAreaUp to date table client area. So far, the best places to refresh this variable are in the PaintItem event and the scrollbar's events. Typically table.getClientArea() is time consuming -
isVisible
private boolean isVisible -
shell
private org.eclipse.swt.widgets.Shell shell -
colorLine
private org.eclipse.swt.graphics.Color colorLine -
canvasImage
private org.eclipse.swt.graphics.Image canvasImage -
canvasImageGC
private org.eclipse.swt.graphics.GC canvasImageGC -
sDefaultSortOn
-
tvSWTCommon
-
tvTabsCommon
-
mainPanelCreator
-
isMultiSelect
private boolean isMultiSelect -
columnsWidth
private int columnsWidth -
focusedRow
-
enableTabViews
private boolean enableTabViews -
tabViewsExpandedByDefault
private boolean tabViewsExpandedByDefault -
isDragging
protected boolean isDragging -
mainComposite
private org.eclipse.swt.widgets.Composite mainComposite -
heightChangeSync
-
totalHeight
private int totalHeight -
redrawTableScheduled
private boolean redrawTableScheduled -
redrawTableDisabled
private int redrawTableDisabled -
hBar
private org.eclipse.swt.widgets.ScrollBar hBar -
vBar
private org.eclipse.swt.widgets.ScrollBar vBar -
sCanvasImage
private org.eclipse.swt.widgets.Canvas sCanvasImage -
filterSubRows
private boolean filterSubRows -
expandEnabled
private boolean expandEnabled -
mutationCount
-
lastMC
private volatile int lastMC -
header
-
dragSource
private org.eclipse.swt.dnd.DragSource dragSource -
dropTarget
private org.eclipse.swt.dnd.DropTarget dropTarget -
destroying
private boolean destroying -
rowMinHeight
private int rowMinHeight -
selectionIsFromDrag
private volatile boolean selectionIsFromDrag -
SCLEnabler
-
refreshTableRunnable
-
refresh_dispatcher
-
redraw_dispatcher
-
isFocused
protected boolean isFocused -
vbarDispatcher
FrequencyLimitedDispatcher vbarDispatcher -
paintedColumns
-
in_swt_updateCanvasImage
private boolean in_swt_updateCanvasImage -
qdRowHeightChanged
boolean qdRowHeightChanged -
pending_rows
-
-
Constructor Details
-
TableViewPainted
public TableViewPainted(Class<?> pluginDataSourceType, String _sTableID, String _sTextPrefixID, TableColumnCore[] _basicItems, String _sDefaultSortOn, int _iTableStyle) Main Initializer- Parameters:
_sTableID- Which table to handle (seeTableManager). Config settings are stored with the prefix of "Table.TableID"_sTextPrefixID- Prefix for retrieving text from the properties file (MessageText). Typically TableID + "View"_basicItems- Column Definitions_sDefaultSortOn- Column name to sort on if user hasn't chosen one yet_iTableStyle- SWT style constants used when creating the table
-
-
Method Details
-
sortRowsByVisibilityIndex
-
isRowPartiallyVisible
-
selectRowsTo
-
getPreviousRow
-
getNextRow
-
clipboardSelected
public void clipboardSelected()Description copied from interface:TableViewSend Selected rows to the clipboard in a SpreadSheet friendly format (tab/cr delimited)- Specified by:
clipboardSelectedin interfaceTableView<Object>
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposedin interfaceTableView<Object>- Returns:
-
getVisibleRows
- Specified by:
getVisibleRowsin interfaceTableView<Object>
-
hasChangesPending
public boolean hasChangesPending()- Specified by:
hasChangesPendingin interfaceTableView<Object>
-
refreshTable
public void refreshTable(boolean bForceSort) - Specified by:
refreshTablein interfaceTableView<Object>- Overrides:
refreshTablein classTableViewImpl<Object>- Parameters:
bForceSort-
-
__refreshTable
private void __refreshTable(boolean bForceSort) -
setEnableTabViews
public void setEnableTabViews(boolean enableTabViews, boolean expandByDefault) - Specified by:
setEnableTabViewsin interfaceTableView<Object>
-
isTabViewsEnabled
public boolean isTabViewsEnabled()- Specified by:
isTabViewsEnabledin interfaceTableViewSWT<Object>
-
getTabViewsExpandedByDefault
public boolean getTabViewsExpandedByDefault()- Specified by:
getTabViewsExpandedByDefaultin interfaceTableViewSWT<Object>
-
requestFocus
public void requestFocus(int reason) - Specified by:
requestFocusin interfaceTableViewSWT<Object>- Parameters:
reason- 1=selected content changed, 2=search filter left
-
setRowDefaultHeightEM
public void setRowDefaultHeightEM(float lineHeight) - Specified by:
setRowDefaultHeightEMin interfaceTableView<Object>
-
setRowDefaultHeight
public void setRowDefaultHeight(int iHeight) - Specified by:
setRowDefaultHeightin interfaceTableView<Object>- Parameters:
iHeight- Height will be adjusted for larger DPI
-
setRowDefaultHeightPX
public void setRowDefaultHeightPX(int iHeight) - Specified by:
setRowDefaultHeightPXin interfaceTableView<Object>
-
getLineHeight
public int getLineHeight()- Specified by:
getLineHeightin interfaceTableView<Object>- Specified by:
getLineHeightin interfaceTableViewSWT<Object>
-
getRowMinHeight
public int getRowMinHeight()- Specified by:
getRowMinHeightin interfaceTableViewSWT<Object>
-
getRow
-
isRowVisible
- Specified by:
isRowVisiblein interfaceTableView<Object>- Parameters:
row-- Returns:
-
getTableCellWithCursor
- Specified by:
getTableCellWithCursorin interfaceTableView<Object>- Returns:
-
getTableRowWithCursor
Description copied from interface:TableViewRetrieves the row that has the cursor over it- Specified by:
getTableRowWithCursorin interfaceTableView<Object>- Returns:
- null if mouse isn't over a row
-
getRowDefaultHeight
public int getRowDefaultHeight()- Specified by:
getRowDefaultHeightin interfaceTableView<Object>- Returns:
-
setEnabled
public void setEnabled(boolean enable) - Specified by:
setEnabledin interfaceTableView<Object>
-
canHaveSubItems
public boolean canHaveSubItems()- Specified by:
canHaveSubItemsin interfaceTableView<Object>
-
setExpandEnabled
public void setExpandEnabled(boolean b) - Specified by:
setExpandEnabledin interfaceTableViewSWT<Object>
-
isExpandEnabled
public boolean isExpandEnabled()- Specified by:
isExpandEnabledin interfaceTableViewSWT<Object>
-
setHeaderVisible
public void setHeaderVisible(boolean visible) - Specified by:
setHeaderVisiblein interfaceTableView<Object>- Overrides:
setHeaderVisiblein classTableViewImpl<Object>- Parameters:
visible-
-
getMaxItemShown
public int getMaxItemShown()- Specified by:
getMaxItemShownin interfaceTableView<Object>
-
setMaxItemShown
public void setMaxItemShown(int newIndex) - Specified by:
setMaxItemShownin interfaceTableView<Object>- Parameters:
newIndex-
-
localeChanged
- Specified by:
localeChangedin interfaceMessageText.MessageTextListener
-
columnOrderChanged
public void columnOrderChanged(int[] iPositions) - Specified by:
columnOrderChangedin interfaceTableStructureModificationListener<Object>
-
columnSizeChanged
- Specified by:
columnSizeChangedin interfaceTableStructureModificationListener<Object>
-
sortOrderChanged
public void sortOrderChanged()- Specified by:
sortOrderChangedin interfaceTableStructureModificationListener<Object>
-
addKeyListener
public void addKeyListener(org.eclipse.swt.events.KeyListener listener) - Specified by:
addKeyListenerin interfaceTableViewSWT<Object>
-
removeKeyListener
public void removeKeyListener(org.eclipse.swt.events.KeyListener listener) - Specified by:
removeKeyListenerin interfaceTableViewSWT<Object>- Parameters:
listener-
-
getKeyListeners
public org.eclipse.swt.events.KeyListener[] getKeyListeners()- Specified by:
getKeyListenersin interfaceTableViewSWT<Object>
-
addMenuFillListener
- Specified by:
addMenuFillListenerin interfaceTableViewSWT<Object>
-
createDragSource
public org.eclipse.swt.dnd.DragSource createDragSource(int style) Description copied from interface:TableViewSWTSet a Drag Source and handle its disposal.
Should be called onTableLifeCycleListener.EVENT_TABLELIFECYCLE_INITIALIZEDevent trigger- Specified by:
createDragSourcein interfaceTableViewSWT<Object>
-
createDropTarget
public org.eclipse.swt.dnd.DropTarget createDropTarget(int style) Description copied from interface:TableViewSWTSet a Drop Target and handle its disposal
Should be called onTableLifeCycleListener.EVENT_TABLELIFECYCLE_INITIALIZEDevent trigger- Specified by:
createDropTargetin interfaceTableViewSWT<Object>
-
getComposite
public org.eclipse.swt.widgets.Composite getComposite()- Specified by:
getCompositein interfaceTableViewSWT<Object>
-
getRow
- Specified by:
getRowin interfaceTableViewSWT<Object>
-
getRowSWT
- Specified by:
getRowSWTin interfaceTableViewSWT<Object>- Parameters:
dataSource-- Returns:
-
getTableComposite
public org.eclipse.swt.widgets.Composite getTableComposite()- Specified by:
getTableCompositein interfaceTableViewSWT<Object>
-
createMainPanel
public org.eclipse.swt.widgets.Composite createMainPanel(org.eclipse.swt.widgets.Composite composite) Creates a composite within the specified composite and sets its layout to a default FillLayout().- Specified by:
createMainPanelin interfaceTableViewSWT<Object>- Parameters:
composite- to create your Composite under- Returns:
- The newly created composite
-
initialize
public void initialize(org.eclipse.swt.widgets.Composite parent) - Specified by:
initializein interfaceTableViewSWT<Object>
-
initialize
- Specified by:
initializein interfaceTableViewSWT<Object>
-
swt_vBarChanged
protected void swt_vBarChanged() -
rowCreated
protected void rowCreated() -
tableMutated
public void tableMutated()- Overrides:
tableMutatedin classTableViewImpl<Object>
-
tableStructureChanged
- Specified by:
tableStructureChangedin interfaceTableStructureModificationListener<Object>- Overrides:
tableStructureChangedin classTableViewImpl<Object>
-
swt_paintComposite
protected void swt_paintComposite(org.eclipse.swt.events.PaintEvent e) -
swt_paintCanvasImage
private void swt_paintCanvasImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawBounds) -
obfuscatedImage
public org.eclipse.swt.graphics.Image obfuscatedImage(org.eclipse.swt.graphics.Image image) - Specified by:
obfuscatedImagein interfaceObfuscateImage- Specified by:
obfuscatedImagein interfaceTableViewSWT<Object>- Parameters:
image-- Returns:
-
getMainPanelCreator
-
getTableViewCreator
- Specified by:
getTableViewCreatorin interfaceTableView<Object>
-
setMainPanelCreator
- Specified by:
setMainPanelCreatorin interfaceTableViewSWT<Object>- Parameters:
mainPanelCreator-
-
getTableCell
- Specified by:
getTableCellin interfaceTableViewSWT<Object>- Parameters:
x-y-- Returns:
-
getTableCellMouseOffset
- Specified by:
getTableCellMouseOffsetin interfaceTableViewSWT<Object>- Returns:
- Offset potision of the cursor relative to the cell the cursor is in
-
enableFilterCheck
public void enableFilterCheck(org.eclipse.swt.widgets.Text txtFilter, TableViewFilterCheck<Object> filterCheck) - Specified by:
enableFilterCheckin interfaceTableViewSWT<Object>
-
enableFilterCheck
- Specified by:
enableFilterCheckin interfaceTableViewSWT<Object>
-
enableFilterCheck
public void enableFilterCheck(BubbleTextBox filterBox, TableViewFilterCheck<Object> filterCheck, boolean filterSubRows) - Specified by:
enableFilterCheckin interfaceTableViewSWT<Object>
-
getFilterSubRows
protected boolean getFilterSubRows()- Specified by:
getFilterSubRowsin classTableViewImpl<Object>
-
hasFilterControl
public boolean hasFilterControl()- Specified by:
hasFilterControlin interfaceTableViewSWT<Object>
-
getColumnPainted
-
disableFilterCheck
public void disableFilterCheck()- Specified by:
disableFilterCheckin interfaceTableViewSWT<Object>
-
setFilterText
- Specified by:
setFilterTextin interfaceTableViewSWT<Object>- Parameters:
s-
-
enableSizeSlider
public boolean enableSizeSlider(org.eclipse.swt.widgets.Composite composite, int min, int max) - Specified by:
enableSizeSliderin interfaceTableViewSWT<Object>
-
setRowHeight
public void setRowHeight(int newHeight) - Specified by:
setRowHeightin interfaceTableViewSWT<Object>
-
addRowPaintListener
- Specified by:
addRowPaintListenerin interfaceTableViewSWT<Object>- Parameters:
listener-
-
removeRowPaintListener
- Specified by:
removeRowPaintListenerin interfaceTableViewSWT<Object>- Parameters:
listener-
-
invokePaintListeners
public void invokePaintListeners(org.eclipse.swt.graphics.GC gc, TableRowCore row, TableColumnCore column, org.eclipse.swt.graphics.Rectangle cellArea) - Specified by:
invokePaintListenersin interfaceTableViewSWT<Object>
-
addRowMouseListener
- Specified by:
addRowMouseListenerin interfaceTableViewSWT<Object>- Parameters:
listener-
-
removeRowMouseListener
- Specified by:
removeRowMouseListenerin interfaceTableViewSWT<Object>- Parameters:
listener-
-
invokeRowMouseListener
- Specified by:
invokeRowMouseListenerin interfaceTableViewSWT<Object>
-
packColumns
public void packColumns()- Specified by:
packColumnsin interfaceTableViewSWT<Object>
-
parameterChanged
Description copied from interface:ParameterListenerCalled, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.- Specified by:
parameterChangedin interfaceParameterListener- Parameters:
parameterName- the name of the parameter that has changed
-
createNewRow
- Specified by:
createNewRowin classTableViewImpl<Object>
-
createFakeRow
- Specified by:
createFakeRowin interfaceTableViewSWT<Object>
-
visibleRowsChanged
public void visibleRowsChanged()- Specified by:
visibleRowsChangedin interfaceTableViewSWT<Object>- Specified by:
visibleRowsChangedin classTableViewImpl<Object>
-
swt_visibleRowsChanged
private void swt_visibleRowsChanged() -
recalculateVisibleRows
private void recalculateVisibleRows(TableRowCore[] rows, int yStart, List<TableRowSWT> newVisibleRows, List<TableRowSWT> rowsStayedVisibleButMoved) -
uiGuessMaxVisibleRows
public int uiGuessMaxVisibleRows()- Specified by:
uiGuessMaxVisibleRowsin classTableViewImpl<Object>
-
uiRemoveRows
- Specified by:
uiRemoveRowsin classTableViewImpl<Object>
-
getLastVisibleRow
-
getOffUIThread
- Specified by:
getOffUIThreadin classTableViewImpl<Object>
-
swt_calculateClientArea
protected void swt_calculateClientArea() -
forceDebugShellRefresh
private void forceDebugShellRefresh(org.eclipse.swt.graphics.Rectangle bounds) -
swt_updateCanvasImage
public void swt_updateCanvasImage(boolean immediateRedraw) -
swt_updateCanvasImage
protected void swt_updateCanvasImage(org.eclipse.swt.graphics.Rectangle bounds, boolean immediateRedraw) -
getClientArea
public org.eclipse.swt.graphics.Rectangle getClientArea()- Specified by:
getClientAreain interfaceTableViewSWT<Object>
-
isVisible
public boolean isVisible()- Specified by:
isVisiblein interfaceTableViewSWT<Object>
-
removeAllTableRows
public void removeAllTableRows()Description copied from interface:TableViewRemove all the data sources (table rows) from the table.- Specified by:
removeAllTableRowsin interfaceTableView<Object>- Overrides:
removeAllTableRowsin classTableViewImpl<Object>
-
swt_fixupSize
protected void swt_fixupSize() -
getScrollbarsMode
private int getScrollbarsMode() -
uiChangeColumnIndicator
protected void uiChangeColumnIndicator()- Specified by:
uiChangeColumnIndicatorin classTableViewImpl<Object>
-
getTableColumnByOffset
- Specified by:
getTableColumnByOffsetin interfaceTableViewSWT<Object>
-
getTableRow
- Specified by:
getTableRowin interfaceTableViewSWT<Object>
-
setSelectedRows
- Overrides:
setSelectedRowsin classTableViewImpl<Object>
-
setRowSelected
- Specified by:
setRowSelectedin interfaceTableViewSWT<Object>- Overrides:
setRowSelectedin classTableViewImpl<Object>
-
editCell
- Specified by:
editCellin interfaceTableViewSWT<Object>
-
isDragging
public boolean isDragging()- Specified by:
isDraggingin interfaceTableViewSWT<Object>
-
getSWTFilter
- Specified by:
getSWTFilterin interfaceTableViewSWT<Object>
-
openFilterDialog
public void openFilterDialog()- Specified by:
openFilterDialogin interfaceTableViewSWT<Object>
-
isSingleSelection
public boolean isSingleSelection()- Specified by:
isSingleSelectionin interfaceTableViewSWT<Object>- Specified by:
isSingleSelectionin classTableViewImpl<Object>
-
expandColumns
public void expandColumns()- Specified by:
expandColumnsin interfaceTableViewSWT<Object>
-
triggerTabViewsDataSourceChanged
public void triggerTabViewsDataSourceChanged()- Specified by:
triggerTabViewsDataSourceChangedin classTableViewImpl<Object>
-
getTabsCommon
- Specified by:
getTabsCommonin interfaceTableViewSWT<Object>
-
uiSelectionChanged
- Specified by:
uiSelectionChangedin classTableViewImpl<Object>
-
triggerLifeCycleListener
protected void triggerLifeCycleListener(int eventType) - Overrides:
triggerLifeCycleListenerin classTableViewImpl<Object>- Parameters:
eventType-
-
delete
-
generate
- Specified by:
generatein interfaceAEDiagnosticsEvidenceGenerator- Overrides:
generatein classTableViewImpl<Object>
-
createMenu
private org.eclipse.swt.widgets.Menu createMenu() -
getFocusedRow
- Specified by:
getFocusedRowin interfaceTableView<Object>- Overrides:
getFocusedRowin classTableViewImpl<Object>- Returns:
-
setFocusedRow
-
showRow
-
scrollVertically
public void scrollVertically(int distance) - Specified by:
scrollVerticallyin interfaceTableView<Object>
-
rowHeightChanged
-
setRedrawEnabled
public void setRedrawEnabled(boolean enabled) - Specified by:
setRedrawEnabledin interfaceTableViewSWT<Object>
-
redrawTable
public void redrawTable()- Specified by:
redrawTablein classTableViewImpl<Object>
-
prettyIndex
-
redrawRow
-
getSyncObject
-
isTableSelected
public boolean isTableSelected()- Specified by:
isTableSelectedin interfaceTableView<Object>- Overrides:
isTableSelectedin classTableViewImpl<Object>
-
isTableFocused
protected boolean isTableFocused()- Specified by:
isTableFocusedin classTableViewImpl<Object>
-
isEnabled
public boolean isEnabled() -
bubbleTextBoxChanged
- Specified by:
bubbleTextBoxChangedin interfaceBubbleTextBox.BubbleTextBoxChangeListener
-