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 class
private class
Nested classes/interfaces inherited from class com.biglybt.ui.common.table.impl.TableViewImpl
TableViewImpl.filter<DATASOURCETYPE>
Nested classes/interfaces inherited from interface com.biglybt.ui.swt.views.table.TableViewSWT
TableViewSWT.ColorRequester
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.GC
protected org.eclipse.swt.graphics.Rectangle
Up to date table client area.private org.eclipse.swt.graphics.Color
private int
private org.eclipse.swt.widgets.Composite
private static final boolean
private static final boolean
private static final boolean
private int
private boolean
static final boolean
private org.eclipse.swt.dnd.DragSource
private org.eclipse.swt.dnd.DropTarget
private boolean
private static final boolean
private boolean
protected boolean
private boolean
private TableRowPainted
protected int
How often graphic cells get updatedprivate static final boolean
private org.eclipse.swt.widgets.ScrollBar
private TableHeaderPainted
private Object
protected float
private boolean
protected boolean
protected boolean
private boolean
private boolean
private int
private int
private int
private org.eclipse.swt.widgets.Composite
private TableViewSWTPanelCreator
private org.eclipse.swt.widgets.Menu
static final String
static final String
static final String
private AtomicInteger
private Map
<TableColumnCore, TableColumnPainted> private List
<TableRowPainted> (package private) boolean
private FrequencyLimitedDispatcher
private int
private boolean
private FrequencyLimitedDispatcher
protected int
private int
private org.eclipse.swt.widgets.Canvas
private final String
private org.eclipse.swt.widgets.Shell
private boolean
private int
private TableViewSWT_Common
private TableViewSWT_TabsCommon
private org.eclipse.swt.widgets.ScrollBar
(package private) FrequencyLimitedDispatcher
(package private) LinkedHashSet
<TableRowPainted> Rows visible to user.private final Object
Fields inherited from class com.biglybt.ui.common.table.impl.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) void
addKeyListener
(org.eclipse.swt.events.KeyListener listener) void
void
addRowMouseListener
(TableRowMouseListener listener) void
addRowPaintListener
(TableRowSWTPaintListener listener) void
bubbleTextBoxChanged
(BubbleTextBox bubbleTextBox) boolean
void
Send Selected rows to the clipboard in a SpreadSheet friendly format (tab/cr delimited)void
columnOrderChanged
(int[] iPositions) void
columnSizeChanged
(TableColumnCore tableColumn, int diff) org.eclipse.swt.dnd.DragSource
createDragSource
(int style) Set a Drag Source and handle its disposal.org.eclipse.swt.dnd.DropTarget
createDropTarget
(int style) Set a Drop Target and handle its disposal
Should be called onTableLifeCycleListener.EVENT_TABLELIFECYCLE_INITIALIZED
event triggercreateFakeRow
(Object object) 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().private org.eclipse.swt.widgets.Menu
createNewRow
(Object object) void
delete()
void
void
editCell
(TableColumnCore column, int row) void
enableFilterCheck
(BubbleTextBox txtFilter, TableViewFilterCheck<Object> filterCheck) void
enableFilterCheck
(BubbleTextBox filterBox, TableViewFilterCheck<Object> filterCheck, boolean filterSubRows) void
enableFilterCheck
(org.eclipse.swt.widgets.Text txtFilter, TableViewFilterCheck<Object> filterCheck) boolean
enableSizeSlider
(org.eclipse.swt.widgets.Composite composite, int min, int max) void
private void
forceDebugShellRefresh
(org.eclipse.swt.graphics.Rectangle bounds) void
generate
(IndentWriter writer) org.eclipse.swt.graphics.Rectangle
protected TableColumnPainted
org.eclipse.swt.widgets.Composite
protected boolean
org.eclipse.swt.events.KeyListener[]
private TableRowPainted
int
protected TableViewSWTPanelCreator
int
protected TableRowCore
getNextRow
(TableRowCore relativeToRow) void
getOffUIThread
(AERunnable runnable) protected TableRowCore
getPreviousRow
(TableRowCore relativeToRow) getRow
(int x, int y) getRow
(org.eclipse.swt.dnd.DropTargetEvent event) int
int
private int
getTableCell
(int x, int y) org.eclipse.swt.graphics.Point
getTableCellMouseOffset
(TableCellSWT tableCell) getTableColumnByOffset
(int mouseX) org.eclipse.swt.widgets.Composite
getTableRow
(int x, int y, boolean anyX) Retrieves the row that has the cursor over itboolean
boolean
boolean
void
initialize
(UISWTView parentView, org.eclipse.swt.widgets.Composite parent) void
initialize
(org.eclipse.swt.widgets.Composite parent) void
invokePaintListeners
(org.eclipse.swt.graphics.GC gc, TableRowCore row, TableColumnCore column, org.eclipse.swt.graphics.Rectangle cellArea) void
boolean
boolean
boolean
boolean
protected boolean
boolean
isRowVisible
(TableRowCore row) boolean
protected boolean
boolean
boolean
boolean
void
localeChanged
(Locale old_locale, Locale new_locale) org.eclipse.swt.graphics.Image
obfuscatedImage
(org.eclipse.swt.graphics.Image image) void
void
void
parameterChanged
(String parameterName) Called, when a parameter has changed.private String
prettyIndex
(TableRowCore row) private void
recalculateVisibleRows
(TableRowCore[] rows, int yStart, List<TableRowSWT> newVisibleRows, List<TableRowSWT> rowsStayedVisibleButMoved) void
redrawRow
(TableRowPainted row, boolean immediateRedraw) void
void
refreshTable
(boolean bForceSort) void
Remove all the data sources (table rows) from the table.void
removeKeyListener
(org.eclipse.swt.events.KeyListener listener) void
removeRowMouseListener
(TableRowMouseListener listener) void
void
requestFocus
(int reason) protected void
void
rowHeightChanged
(TableRowCore row, int oldHeight, int newHeight) void
scrollVertically
(int distance) protected void
selectRowsTo
(TableRowCore clickedRow) void
setEnabled
(boolean enable) void
setEnableTabViews
(boolean enableTabViews, boolean expandByDefault) void
setExpandEnabled
(boolean b) void
setFilterText
(String s, boolean force) void
void
setHeaderVisible
(boolean visible) void
setMainPanelCreator
(TableViewSWTPanelCreator mainPanelCreator) void
setMaxItemShown
(int newIndex) void
setRedrawEnabled
(boolean enabled) void
setRowDefaultHeight
(int iHeight) void
setRowDefaultHeightEM
(float lineHeight) void
setRowDefaultHeightPX
(int iHeight) void
setRowHeight
(int newHeight) void
setRowSelected
(TableRowCore row, boolean selected, boolean trigger) void
setSelectedRows
(TableRowCore[] newSelectionArray, boolean trigger) void
showRow
(TableRowCore rowToShow) void
private void
sortRowsByVisibilityIndex
(TableRowCore[] selectedRows) protected void
protected void
private void
swt_paintCanvasImage
(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawBounds) protected void
swt_paintComposite
(org.eclipse.swt.events.PaintEvent e) void
swt_updateCanvasImage
(boolean immediateRedraw) protected void
swt_updateCanvasImage
(org.eclipse.swt.graphics.Rectangle bounds, boolean immediateRedraw) protected void
private void
void
void
tableStructureChanged
(boolean columnAddedOrRemoved, Class forPluginDataSourceType) protected void
triggerLifeCycleListener
(int eventType) void
protected void
int
void
uiRemoveRows
(TableRowCore[] rows, Integer[] rowIndexes) void
uiSelectionChanged
(TableRowCore[] newlySelectedRows, TableRowCore[] deselectedRows) void
Methods inherited from class com.biglybt.ui.common.table.impl.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, visibleRowChangeDisabled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.ui.common.table.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, sortRows
Methods inherited from interface com.biglybt.ui.swt.views.table.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 -
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:
-
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 -
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:TableView
Send Selected rows to the clipboard in a SpreadSheet friendly format (tab/cr delimited)- Specified by:
clipboardSelected
in interfaceTableView<Object>
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposed
in interfaceTableView<Object>
- Returns:
-
getVisibleRows
- Specified by:
getVisibleRows
in interfaceTableView<Object>
-
hasChangesPending
public boolean hasChangesPending()- Specified by:
hasChangesPending
in interfaceTableView<Object>
-
refreshTable
public void refreshTable(boolean bForceSort) - Specified by:
refreshTable
in interfaceTableView<Object>
- Overrides:
refreshTable
in classTableViewImpl<Object>
- Parameters:
bForceSort
-
-
__refreshTable
private void __refreshTable(boolean bForceSort) -
setEnableTabViews
public void setEnableTabViews(boolean enableTabViews, boolean expandByDefault) - Specified by:
setEnableTabViews
in interfaceTableView<Object>
-
isTabViewsEnabled
public boolean isTabViewsEnabled()- Specified by:
isTabViewsEnabled
in interfaceTableViewSWT<Object>
-
getTabViewsExpandedByDefault
public boolean getTabViewsExpandedByDefault()- Specified by:
getTabViewsExpandedByDefault
in interfaceTableViewSWT<Object>
-
requestFocus
public void requestFocus(int reason) - Specified by:
requestFocus
in interfaceTableViewSWT<Object>
- Parameters:
reason
- 1=selected content changed, 2=search filter left
-
setRowDefaultHeightEM
public void setRowDefaultHeightEM(float lineHeight) - Specified by:
setRowDefaultHeightEM
in interfaceTableView<Object>
-
setRowDefaultHeight
public void setRowDefaultHeight(int iHeight) - Specified by:
setRowDefaultHeight
in interfaceTableView<Object>
- Parameters:
iHeight
- Height will be adjusted for larger DPI
-
setRowDefaultHeightPX
public void setRowDefaultHeightPX(int iHeight) - Specified by:
setRowDefaultHeightPX
in interfaceTableView<Object>
-
getLineHeight
public int getLineHeight()- Specified by:
getLineHeight
in interfaceTableView<Object>
- Specified by:
getLineHeight
in interfaceTableViewSWT<Object>
-
getRowMinHeight
public int getRowMinHeight()- Specified by:
getRowMinHeight
in interfaceTableViewSWT<Object>
-
getRow
-
isRowVisible
- Specified by:
isRowVisible
in interfaceTableView<Object>
- Parameters:
row
-- Returns:
-
getTableCellWithCursor
- Specified by:
getTableCellWithCursor
in interfaceTableView<Object>
- Returns:
-
getTableRowWithCursor
Description copied from interface:TableView
Retrieves the row that has the cursor over it- Specified by:
getTableRowWithCursor
in interfaceTableView<Object>
- Returns:
- null if mouse isn't over a row
-
getRowDefaultHeight
public int getRowDefaultHeight()- Specified by:
getRowDefaultHeight
in interfaceTableView<Object>
- Returns:
-
setEnabled
public void setEnabled(boolean enable) - Specified by:
setEnabled
in interfaceTableView<Object>
-
canHaveSubItems
public boolean canHaveSubItems()- Specified by:
canHaveSubItems
in interfaceTableView<Object>
-
setExpandEnabled
public void setExpandEnabled(boolean b) - Specified by:
setExpandEnabled
in interfaceTableViewSWT<Object>
-
isExpandEnabled
public boolean isExpandEnabled()- Specified by:
isExpandEnabled
in interfaceTableViewSWT<Object>
-
setHeaderVisible
public void setHeaderVisible(boolean visible) - Specified by:
setHeaderVisible
in interfaceTableView<Object>
- Overrides:
setHeaderVisible
in classTableViewImpl<Object>
- Parameters:
visible
-
-
getMaxItemShown
public int getMaxItemShown()- Specified by:
getMaxItemShown
in interfaceTableView<Object>
-
setMaxItemShown
public void setMaxItemShown(int newIndex) - Specified by:
setMaxItemShown
in interfaceTableView<Object>
- Parameters:
newIndex
-
-
localeChanged
- Specified by:
localeChanged
in interfaceMessageText.MessageTextListener
-
columnOrderChanged
public void columnOrderChanged(int[] iPositions) - Specified by:
columnOrderChanged
in interfaceTableStructureModificationListener<Object>
-
columnSizeChanged
- Specified by:
columnSizeChanged
in interfaceTableStructureModificationListener<Object>
-
sortOrderChanged
public void sortOrderChanged()- Specified by:
sortOrderChanged
in interfaceTableStructureModificationListener<Object>
-
addKeyListener
public void addKeyListener(org.eclipse.swt.events.KeyListener listener) - Specified by:
addKeyListener
in interfaceTableViewSWT<Object>
-
removeKeyListener
public void removeKeyListener(org.eclipse.swt.events.KeyListener listener) - Specified by:
removeKeyListener
in interfaceTableViewSWT<Object>
- Parameters:
listener
-
-
getKeyListeners
public org.eclipse.swt.events.KeyListener[] getKeyListeners()- Specified by:
getKeyListeners
in interfaceTableViewSWT<Object>
-
addMenuFillListener
- Specified by:
addMenuFillListener
in interfaceTableViewSWT<Object>
-
createDragSource
public org.eclipse.swt.dnd.DragSource createDragSource(int style) Description copied from interface:TableViewSWT
Set a Drag Source and handle its disposal.
Should be called onTableLifeCycleListener.EVENT_TABLELIFECYCLE_INITIALIZED
event trigger- Specified by:
createDragSource
in interfaceTableViewSWT<Object>
-
createDropTarget
public org.eclipse.swt.dnd.DropTarget createDropTarget(int style) Description copied from interface:TableViewSWT
Set a Drop Target and handle its disposal
Should be called onTableLifeCycleListener.EVENT_TABLELIFECYCLE_INITIALIZED
event trigger- Specified by:
createDropTarget
in interfaceTableViewSWT<Object>
-
getComposite
public org.eclipse.swt.widgets.Composite getComposite()- Specified by:
getComposite
in interfaceTableViewSWT<Object>
-
getRow
- Specified by:
getRow
in interfaceTableViewSWT<Object>
-
getRowSWT
- Specified by:
getRowSWT
in interfaceTableViewSWT<Object>
- Parameters:
dataSource
-- Returns:
-
getTableComposite
public org.eclipse.swt.widgets.Composite getTableComposite()- Specified by:
getTableComposite
in 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:
createMainPanel
in 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:
initialize
in interfaceTableViewSWT<Object>
-
initialize
- Specified by:
initialize
in interfaceTableViewSWT<Object>
-
swt_vBarChanged
protected void swt_vBarChanged() -
rowCreated
protected void rowCreated() -
tableMutated
public void tableMutated()- Overrides:
tableMutated
in classTableViewImpl<Object>
-
tableStructureChanged
- Specified by:
tableStructureChanged
in interfaceTableStructureModificationListener<Object>
- Overrides:
tableStructureChanged
in 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:
obfuscatedImage
in interfaceObfuscateImage
- Specified by:
obfuscatedImage
in interfaceTableViewSWT<Object>
- Parameters:
image
-- Returns:
-
getMainPanelCreator
-
getTableViewCreator
- Specified by:
getTableViewCreator
in interfaceTableView<Object>
-
setMainPanelCreator
- Specified by:
setMainPanelCreator
in interfaceTableViewSWT<Object>
- Parameters:
mainPanelCreator
-
-
getTableCell
- Specified by:
getTableCell
in interfaceTableViewSWT<Object>
- Parameters:
x
-y
-- Returns:
-
getTableCellMouseOffset
- Specified by:
getTableCellMouseOffset
in 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:
enableFilterCheck
in interfaceTableViewSWT<Object>
-
enableFilterCheck
- Specified by:
enableFilterCheck
in interfaceTableViewSWT<Object>
-
enableFilterCheck
public void enableFilterCheck(BubbleTextBox filterBox, TableViewFilterCheck<Object> filterCheck, boolean filterSubRows) - Specified by:
enableFilterCheck
in interfaceTableViewSWT<Object>
-
getFilterSubRows
protected boolean getFilterSubRows()- Specified by:
getFilterSubRows
in classTableViewImpl<Object>
-
hasFilterControl
public boolean hasFilterControl()- Specified by:
hasFilterControl
in interfaceTableViewSWT<Object>
-
getColumnPainted
-
disableFilterCheck
public void disableFilterCheck()- Specified by:
disableFilterCheck
in interfaceTableViewSWT<Object>
-
setFilterText
- Specified by:
setFilterText
in interfaceTableViewSWT<Object>
- Parameters:
s
-
-
enableSizeSlider
public boolean enableSizeSlider(org.eclipse.swt.widgets.Composite composite, int min, int max) - Specified by:
enableSizeSlider
in interfaceTableViewSWT<Object>
-
setRowHeight
public void setRowHeight(int newHeight) - Specified by:
setRowHeight
in interfaceTableViewSWT<Object>
-
addRowPaintListener
- Specified by:
addRowPaintListener
in interfaceTableViewSWT<Object>
- Parameters:
listener
-
-
removeRowPaintListener
- Specified by:
removeRowPaintListener
in 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:
invokePaintListeners
in interfaceTableViewSWT<Object>
-
addRowMouseListener
- Specified by:
addRowMouseListener
in interfaceTableViewSWT<Object>
- Parameters:
listener
-
-
removeRowMouseListener
- Specified by:
removeRowMouseListener
in interfaceTableViewSWT<Object>
- Parameters:
listener
-
-
invokeRowMouseListener
- Specified by:
invokeRowMouseListener
in interfaceTableViewSWT<Object>
-
packColumns
public void packColumns()- Specified by:
packColumns
in interfaceTableViewSWT<Object>
-
parameterChanged
Description copied from interface:ParameterListener
Called, 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:
parameterChanged
in interfaceParameterListener
- Parameters:
parameterName
- the name of the parameter that has changed
-
createNewRow
- Specified by:
createNewRow
in classTableViewImpl<Object>
-
createFakeRow
- Specified by:
createFakeRow
in interfaceTableViewSWT<Object>
-
visibleRowsChanged
public void visibleRowsChanged()- Specified by:
visibleRowsChanged
in interfaceTableViewSWT<Object>
- Specified by:
visibleRowsChanged
in 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:
uiGuessMaxVisibleRows
in classTableViewImpl<Object>
-
uiRemoveRows
- Specified by:
uiRemoveRows
in classTableViewImpl<Object>
-
getLastVisibleRow
-
getOffUIThread
- Specified by:
getOffUIThread
in 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:
getClientArea
in interfaceTableViewSWT<Object>
-
isVisible
public boolean isVisible()- Specified by:
isVisible
in interfaceTableViewSWT<Object>
-
removeAllTableRows
public void removeAllTableRows()Description copied from interface:TableView
Remove all the data sources (table rows) from the table.- Specified by:
removeAllTableRows
in interfaceTableView<Object>
- Overrides:
removeAllTableRows
in classTableViewImpl<Object>
-
swt_fixupSize
protected void swt_fixupSize() -
getScrollbarsMode
private int getScrollbarsMode() -
uiChangeColumnIndicator
protected void uiChangeColumnIndicator()- Specified by:
uiChangeColumnIndicator
in classTableViewImpl<Object>
-
getTableColumnByOffset
- Specified by:
getTableColumnByOffset
in interfaceTableViewSWT<Object>
-
getTableRow
- Specified by:
getTableRow
in interfaceTableViewSWT<Object>
-
setSelectedRows
- Overrides:
setSelectedRows
in classTableViewImpl<Object>
-
setRowSelected
- Specified by:
setRowSelected
in interfaceTableViewSWT<Object>
- Overrides:
setRowSelected
in classTableViewImpl<Object>
-
editCell
- Specified by:
editCell
in interfaceTableViewSWT<Object>
-
isDragging
public boolean isDragging()- Specified by:
isDragging
in interfaceTableViewSWT<Object>
-
getSWTFilter
- Specified by:
getSWTFilter
in interfaceTableViewSWT<Object>
-
openFilterDialog
public void openFilterDialog()- Specified by:
openFilterDialog
in interfaceTableViewSWT<Object>
-
isSingleSelection
public boolean isSingleSelection()- Specified by:
isSingleSelection
in interfaceTableViewSWT<Object>
- Specified by:
isSingleSelection
in classTableViewImpl<Object>
-
expandColumns
public void expandColumns()- Specified by:
expandColumns
in interfaceTableViewSWT<Object>
-
triggerTabViewsDataSourceChanged
public void triggerTabViewsDataSourceChanged()- Specified by:
triggerTabViewsDataSourceChanged
in classTableViewImpl<Object>
-
getTabsCommon
- Specified by:
getTabsCommon
in interfaceTableViewSWT<Object>
-
uiSelectionChanged
- Specified by:
uiSelectionChanged
in classTableViewImpl<Object>
-
triggerLifeCycleListener
protected void triggerLifeCycleListener(int eventType) - Overrides:
triggerLifeCycleListener
in classTableViewImpl<Object>
- Parameters:
eventType
-
-
delete
public void delete() -
generate
- Specified by:
generate
in interfaceAEDiagnosticsEvidenceGenerator
- Overrides:
generate
in classTableViewImpl<Object>
-
createMenu
private org.eclipse.swt.widgets.Menu createMenu() -
getFocusedRow
- Specified by:
getFocusedRow
in interfaceTableView<Object>
- Overrides:
getFocusedRow
in classTableViewImpl<Object>
- Returns:
-
setFocusedRow
-
showRow
-
scrollVertically
public void scrollVertically(int distance) - Specified by:
scrollVertically
in interfaceTableView<Object>
-
rowHeightChanged
-
setRedrawEnabled
public void setRedrawEnabled(boolean enabled) - Specified by:
setRedrawEnabled
in interfaceTableViewSWT<Object>
-
redrawTable
public void redrawTable()- Specified by:
redrawTable
in classTableViewImpl<Object>
-
prettyIndex
-
redrawRow
-
getSyncObject
-
isTableSelected
public boolean isTableSelected()- Specified by:
isTableSelected
in interfaceTableView<Object>
- Overrides:
isTableSelected
in classTableViewImpl<Object>
-
isTableFocused
protected boolean isTableFocused()- Specified by:
isTableFocused
in classTableViewImpl<Object>
-
isEnabled
public boolean isEnabled() -
bubbleTextBoxChanged
- Specified by:
bubbleTextBoxChanged
in interfaceBubbleTextBox.BubbleTextBoxChangeListener
-