org.gudy.azureus2.ui.swt.views.table.painted
Class TableViewPainted

java.lang.Object
  extended by com.aelitis.azureus.ui.common.table.impl.TableViewImpl<Object>
      extended by org.gudy.azureus2.ui.swt.views.table.painted.TableViewPainted
All Implemented Interfaces:
TableStructureModificationListener<Object>, TableView<Object>, ParameterListener, MessageText.MessageTextListener, AEDiagnosticsEvidenceGenerator, ObfusticateImage, TableViewSWT<Object>

public class TableViewPainted
extends TableViewImpl<Object>
implements ParameterListener, TableViewSWT<Object>, ObfusticateImage, MessageText.MessageTextListener

A TableView implemented by painting on a canvas TODO: Keyboard Selection Cursor Column move and resize past bounds


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aelitis.azureus.ui.common.table.impl.TableViewImpl
TableViewImpl.filter<DATASOURCETYPE>
 
Field Summary
protected  org.eclipse.swt.graphics.Rectangle clientArea
          Up to date table client area.
static boolean DIRECT_DRAW
           
protected  boolean extendedErase
           
protected  int graphicsUpdate
          How often graphic cells get updated
protected  float iHeightEM
           
protected  boolean isDragging
           
protected  boolean isFocused
           
protected  boolean isHeaderDragging
           
protected  int reOrderDelay
           
 
Fields inherited from class com.aelitis.azureus.ui.common.table.impl.TableViewImpl
configMan, DEBUG_SELECTION, DEBUGADDREMOVE, filter, propertiesPrefix, tableID
 
Constructor Summary
TableViewPainted(Class<?> pluginDataSourceType, String _sTableID, String _sPropertiesPrefix, TableColumnCore[] _basicItems, String _sDefaultSortOn, int _iTableStyle)
          Main Initializer
 
Method Summary
 void addKeyListener(org.eclipse.swt.events.KeyListener listener)
           
 void addMenuFillListener(TableViewSWTMenuFillListener l)
           
 void addRowMouseListener(TableRowMouseListener listener)
           
 void addRowPaintListener(TableRowSWTPaintListener listener)
           
 boolean canHaveSubItems()
           
 void clipboardSelected()
          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)
           
 org.eclipse.swt.dnd.DropTarget createDropTarget(int style)
           
 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().
 TableRowCore createNewRow(Object object)
           
 void delete()
           
 void disableFilterCheck()
           
 void disableSizeSlider()
           
 void editCell(TableColumnCore column, int row)
           
 void enableFilterCheck(org.eclipse.swt.widgets.Text txtFilter, TableViewFilterCheck<Object> filterCheck)
           
 boolean enableSizeSlider(org.eclipse.swt.widgets.Composite composite, int min, int max)
           
 void expandColumns()
           
 void generate(IndentWriter writer)
           
 org.eclipse.swt.graphics.Rectangle getClientArea()
           
 org.eclipse.swt.widgets.Composite getComposite()
           
 org.eclipse.swt.widgets.Text getFilterControl()
           
 TableRowCore getFocusedRow()
           
 org.eclipse.swt.events.KeyListener[] getKeyListeners()
           
protected  TableViewSWTPanelCreator getMainPanelCreator()
           
 int getMaxItemShown()
           
protected  TableRowCore getNextRow(TableRowCore relativeToRow)
           
 void getOffUIThread(AERunnable runnable)
           
protected  TableRowCore getPreviousRow(TableRowCore relativeToRow)
           
 TableRowCore getRow(org.eclipse.swt.dnd.DropTargetEvent event)
           
 TableRowCore getRow(int x, int y)
           
 int getRowDefaultHeight()
           
 TableRowSWT getRowSWT(Object dataSource)
           
 TableViewSWTFilter<?> getSWTFilter()
           
 Object getSyncObject()
           
 TableCellCore getTableCell(int x, int y)
           
 org.eclipse.swt.graphics.Point getTableCellMouseOffset(TableCellSWT tableCell)
           
 TableCellCore getTableCellWithCursor()
           
 TableColumnCore getTableColumnByOffset(int mouseX)
           
 org.eclipse.swt.widgets.Composite getTableComposite()
           
 TableRowSWT getTableRow(int x, int y, boolean anyX)
           
 TableRowCore getTableRowWithCursor()
          Retrieves the row that has the cursor over it
 TableViewSWT_TabsCommon getTabsCommon()
           
 boolean getTabViewsExpandedByDefault()
           
 String[] getTabViewsRestrictedTo()
           
 void initialize(org.eclipse.swt.widgets.Composite parent)
           
 void initialize(UISWTView parentView, 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 invokeRowMouseListener(TableRowMouseEvent event)
           
 boolean isDisposed()
           
 boolean isDragging()
           
protected  boolean isRowPartiallyVisible(TableRowPainted row)
           
 boolean isRowVisible(TableRowCore row)
           
 boolean isSingleSelection()
           
 boolean isTableSelected()
           
 boolean isTabViewsEnabled()
           
 boolean isVisible()
           
 void localeChanged(Locale old_locale, Locale new_locale)
           
 org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
           
 void openFilterDialog()
           
 void packColumns()
           
 void parameterChanged(String parameterName)
          Called, when a parameter has changed.
 void redrawRow(TableRowPainted row, boolean immediateRedraw)
           
 void redrawTable()
           
 void refreshTable(boolean bForceSort)
           
 void removeAllTableRows()
          Remove all the data sources (table rows) from the table.
 void removeKeyListener(org.eclipse.swt.events.KeyListener listener)
           
 void removeRowMouseListener(TableRowMouseListener listener)
           
 void removeRowPaintListener(TableRowSWTPaintListener listener)
           
 void rowHeightChanged(TableRowCore row, int oldHeight, int newHeight)
           
protected  void selectRowsTo(TableRowCore clickedRow)
           
 void setEnabled(boolean enable)
           
 void setEnableTabViews(boolean enableTabViews, boolean expandByDefault, String[] restrictedToIDs)
           
 void setFilterText(String s)
           
 void setFocus()
           
 void setFocusedRow(TableRowCore row)
           
 void setHeaderVisible(boolean visible)
           
 void setMainPanelCreator(TableViewSWTPanelCreator mainPanelCreator)
           
 void setMaxItemShown(int newIndex)
           
 void setRowDefaultHeight(int iHeight)
           
 void setRowDefaultHeightEM(float lineHeight)
           
 void setRowDefaultHeightPX(int iHeight)
           
 void setRowSelected(TableRowCore row, boolean selected, boolean trigger)
           
 void setSelectedRows(TableRowCore[] newSelectionArray, boolean trigger)
           
 void showColumnEditor()
           
 void showRow(TableRowCore rowToShow)
           
protected  void swt_calculateClientArea()
           
protected  void swt_fixupSize()
           
protected  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 swt_vBarChanged()
           
 void tableStructureChanged(boolean columnAddedOrRemoved, Class forPluginDataSourceType)
           
 void triggerTabViewsDataSourceChanged()
           
protected  void uiChangeColumnIndicator()
           
 int uiGuessMaxVisibleRows()
           
 void uiRemoveRows(TableRowCore[] rows, Integer[] rowIndexes)
           
 void uiSelectionChanged(TableRowCore[] newlySelectedRows, TableRowCore[] deselectedRows)
           
 void visibleRowsChanged()
           
 
Methods inherited from class com.aelitis.azureus.ui.common.table.impl.TableViewImpl
_sortColumn, addCountChangeListener, addDataSource, addDataSources, addDataSources, addExpansionChangeListener, addLifeCycleListener, addRefreshListener, addRefreshListener, addSelectionListener, addTableDataSourceChangedListener, cellInvalidate, cellInvalidate, columnInvalidate, columnInvalidate, columnInvalidate, dataSourceExists, debug, fillRowGaps, getAllColumns, getColumnCells, getDataSources, getDataSources, getDataSourceType, getFilterText, getFirstSelectedDataSource, getFirstSelectedDataSource, getHeaderVisible, getParentDataSource, getPropertiesPrefix, getRow, getRow, getRowCount, getRowQuick, getRows, getRowsSync, getSelectedDataSources, getSelectedDataSources, getSelectedDataSourcesList, getSelectedPluginDataSourcesList, getSelectedRows, getSelectedRowsList, getSelectedRowsSize, getSortColumn, getTableColumn, getTableID, getVisibleColumns, indexOf, invokeExpansionChangeListeners, invokeRefreshListeners, isColumnVisible, isFiltered, isLastRow, isMenuEnabled, isProvideIndexesOnRemove, isSelected, isUnfilteredDataSourceAdded, processDataSourceQueue, processDataSourceQueueSync, reallyAddDataSources, reallyRemoveDataSources, refilter, removeCountChangeListener, removeDataSource, removeDataSources, removeExpansionChangeListener, removeRefreshListener, removeTableDataSourceChangedListener, resetLastSortedOn, runForAllRows, runForAllRows, runForSelectedRows, selectAll, setColumnsOrdered, setMenuEnabled, setParentDataSource, setProvideIndexesOnRemove, setRowsSync, setSelectedRows, setSortColumn, size, sortColumn, tableInvalidate, triggerDefaultSelectedListeners, triggerDeselectionListeners, triggerFocusChangedListeners, triggerLifeCycleListener, triggerListenerRowAdded, triggerListenerRowRemoved, triggerMouseEnterExitRow, triggerSelectionListeners, triggerTableRefreshListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gudy.azureus2.ui.swt.views.table.TableViewSWT
addRefreshListener, getFilterText, getRowQuick, invokeExpansionChangeListeners, invokeRefreshListeners, isFiltered, isMenuEnabled, refilter, removeRefreshListener, setMenuEnabled, sortColumn, tableInvalidate, triggerDefaultSelectedListeners
 
Methods inherited from interface com.aelitis.azureus.ui.common.table.TableView
addCountChangeListener, addDataSource, addDataSources, addExpansionChangeListener, addLifeCycleListener, addRefreshListener, addSelectionListener, addTableDataSourceChangedListener, columnInvalidate, columnInvalidate, dataSourceExists, getAllColumns, getColumnCells, getDataSources, getDataSources, getDataSourceType, getFirstSelectedDataSource, getHeaderVisible, getParentDataSource, getPropertiesPrefix, getRow, getRow, getRowCount, getRows, getSelectedDataSources, getSelectedDataSources, getSelectedRows, getSelectedRowsSize, getSortColumn, getTableColumn, getTableID, getVisibleColumns, indexOf, isColumnVisible, isSelected, isUnfilteredDataSourceAdded, processDataSourceQueue, processDataSourceQueueSync, removeCountChangeListener, removeDataSource, removeDataSources, removeExpansionChangeListener, removeTableDataSourceChangedListener, resetLastSortedOn, runForAllRows, runForAllRows, runForSelectedRows, selectAll, setParentDataSource, setSelectedRows, size
 

Field Detail

DIRECT_DRAW

public static final boolean DIRECT_DRAW

graphicsUpdate

protected int graphicsUpdate
How often graphic cells get updated


reOrderDelay

protected int reOrderDelay

extendedErase

protected boolean extendedErase

clientArea

protected org.eclipse.swt.graphics.Rectangle clientArea
Up 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


isHeaderDragging

protected boolean isHeaderDragging

isDragging

protected boolean isDragging

isFocused

protected boolean isFocused

iHeightEM

protected float iHeightEM
Constructor Detail

TableViewPainted

public TableViewPainted(Class<?> pluginDataSourceType,
                        String _sTableID,
                        String _sPropertiesPrefix,
                        TableColumnCore[] _basicItems,
                        String _sDefaultSortOn,
                        int _iTableStyle)
Main Initializer

Parameters:
_sTableID - Which table to handle (see TableManager). Config settings are stored with the prefix of "Table.TableID"
_sPropertiesPrefix - 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 Detail

isRowPartiallyVisible

protected boolean isRowPartiallyVisible(TableRowPainted row)

selectRowsTo

protected void selectRowsTo(TableRowCore clickedRow)

getPreviousRow

protected TableRowCore getPreviousRow(TableRowCore relativeToRow)

getNextRow

protected TableRowCore getNextRow(TableRowCore relativeToRow)

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 interface TableView<Object>

isDisposed

public boolean isDisposed()
Specified by:
isDisposed in interface TableView<Object>
Returns:

refreshTable

public void refreshTable(boolean bForceSort)
Specified by:
refreshTable in interface TableView<Object>
Overrides:
refreshTable in class TableViewImpl<Object>

setEnableTabViews

public void setEnableTabViews(boolean enableTabViews,
                              boolean expandByDefault,
                              String[] restrictedToIDs)
Specified by:
setEnableTabViews in interface TableView<Object>

isTabViewsEnabled

public boolean isTabViewsEnabled()
Specified by:
isTabViewsEnabled in interface TableViewSWT<Object>

getTabViewsRestrictedTo

public String[] getTabViewsRestrictedTo()
Specified by:
getTabViewsRestrictedTo in interface TableViewSWT<Object>

getTabViewsExpandedByDefault

public boolean getTabViewsExpandedByDefault()
Specified by:
getTabViewsExpandedByDefault in interface TableViewSWT<Object>

setFocus

public void setFocus()
Specified by:
setFocus in interface TableView<Object>

setRowDefaultHeightEM

public void setRowDefaultHeightEM(float lineHeight)
Specified by:
setRowDefaultHeightEM in interface TableView<Object>

setRowDefaultHeight

public void setRowDefaultHeight(int iHeight)
Specified by:
setRowDefaultHeight in interface TableView<Object>
Parameters:
iHeight - Height will be adjusted for larger DPI

setRowDefaultHeightPX

public void setRowDefaultHeightPX(int iHeight)
Specified by:
setRowDefaultHeightPX in interface TableView<Object>

getRow

public TableRowCore getRow(int x,
                           int y)
Specified by:
getRow in interface TableView<Object>
Returns:

isRowVisible

public boolean isRowVisible(TableRowCore row)
Specified by:
isRowVisible in interface TableView<Object>
Returns:

getTableCellWithCursor

public TableCellCore getTableCellWithCursor()
Specified by:
getTableCellWithCursor in interface TableView<Object>
Returns:

getTableRowWithCursor

public TableRowCore getTableRowWithCursor()
Description copied from interface: TableView
Retrieves the row that has the cursor over it

Specified by:
getTableRowWithCursor in interface TableView<Object>
Returns:
null if mouse isn't over a row

getRowDefaultHeight

public int getRowDefaultHeight()
Specified by:
getRowDefaultHeight in interface TableView<Object>
Returns:

setEnabled

public void setEnabled(boolean enable)
Specified by:
setEnabled in interface TableView<Object>

canHaveSubItems

public boolean canHaveSubItems()
Specified by:
canHaveSubItems in interface TableView<Object>

setHeaderVisible

public void setHeaderVisible(boolean visible)
Specified by:
setHeaderVisible in interface TableView<Object>
Overrides:
setHeaderVisible in class TableViewImpl<Object>

getMaxItemShown

public int getMaxItemShown()
Specified by:
getMaxItemShown in interface TableView<Object>

setMaxItemShown

public void setMaxItemShown(int newIndex)
Specified by:
setMaxItemShown in interface TableView<Object>

localeChanged

public void localeChanged(Locale old_locale,
                          Locale new_locale)
Specified by:
localeChanged in interface MessageText.MessageTextListener

columnOrderChanged

public void columnOrderChanged(int[] iPositions)
Specified by:
columnOrderChanged in interface TableStructureModificationListener<Object>

columnSizeChanged

public void columnSizeChanged(TableColumnCore tableColumn,
                              int diff)
Specified by:
columnSizeChanged in interface TableStructureModificationListener<Object>

addKeyListener

public void addKeyListener(org.eclipse.swt.events.KeyListener listener)
Specified by:
addKeyListener in interface TableViewSWT<Object>

removeKeyListener

public void removeKeyListener(org.eclipse.swt.events.KeyListener listener)
Specified by:
removeKeyListener in interface TableViewSWT<Object>

getKeyListeners

public org.eclipse.swt.events.KeyListener[] getKeyListeners()
Specified by:
getKeyListeners in interface TableViewSWT<Object>

addMenuFillListener

public void addMenuFillListener(TableViewSWTMenuFillListener l)
Specified by:
addMenuFillListener in interface TableViewSWT<Object>

createDragSource

public org.eclipse.swt.dnd.DragSource createDragSource(int style)
Specified by:
createDragSource in interface TableViewSWT<Object>

createDropTarget

public org.eclipse.swt.dnd.DropTarget createDropTarget(int style)
Specified by:
createDropTarget in interface TableViewSWT<Object>

getComposite

public org.eclipse.swt.widgets.Composite getComposite()
Specified by:
getComposite in interface TableViewSWT<Object>

getRow

public TableRowCore getRow(org.eclipse.swt.dnd.DropTargetEvent event)
Specified by:
getRow in interface TableViewSWT<Object>

getRowSWT

public TableRowSWT getRowSWT(Object dataSource)
Specified by:
getRowSWT in interface TableViewSWT<Object>
Returns:

getTableComposite

public org.eclipse.swt.widgets.Composite getTableComposite()
Specified by:
getTableComposite in interface TableViewSWT<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 interface TableViewSWT<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 interface TableViewSWT<Object>

initialize

public void initialize(UISWTView parentView,
                       org.eclipse.swt.widgets.Composite parent)
Specified by:
initialize in interface TableViewSWT<Object>

swt_vBarChanged

protected void swt_vBarChanged()

tableStructureChanged

public void tableStructureChanged(boolean columnAddedOrRemoved,
                                  Class forPluginDataSourceType)
Specified by:
tableStructureChanged in interface TableStructureModificationListener<Object>
Overrides:
tableStructureChanged in class TableViewImpl<Object>

swt_paintComposite

protected void swt_paintComposite(org.eclipse.swt.events.PaintEvent e)

swt_paintCanvasImage

protected void swt_paintCanvasImage(org.eclipse.swt.graphics.GC gc,
                                    org.eclipse.swt.graphics.Rectangle drawBounds)

obfusticatedImage

public org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
Specified by:
obfusticatedImage in interface ObfusticateImage
Specified by:
obfusticatedImage in interface TableViewSWT<Object>

getMainPanelCreator

protected TableViewSWTPanelCreator getMainPanelCreator()

setMainPanelCreator

public void setMainPanelCreator(TableViewSWTPanelCreator mainPanelCreator)
Specified by:
setMainPanelCreator in interface TableViewSWT<Object>

getTableCell

public TableCellCore getTableCell(int x,
                                  int y)
Specified by:
getTableCell in interface TableViewSWT<Object>
Returns:

getTableCellMouseOffset

public org.eclipse.swt.graphics.Point getTableCellMouseOffset(TableCellSWT tableCell)
Specified by:
getTableCellMouseOffset in interface TableViewSWT<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 interface TableViewSWT<Object>

getFilterControl

public org.eclipse.swt.widgets.Text getFilterControl()
Specified by:
getFilterControl in interface TableViewSWT<Object>

disableFilterCheck

public void disableFilterCheck()
Specified by:
disableFilterCheck in interface TableViewSWT<Object>

setFilterText

public void setFilterText(String s)
Specified by:
setFilterText in interface TableViewSWT<Object>

enableSizeSlider

public boolean enableSizeSlider(org.eclipse.swt.widgets.Composite composite,
                                int min,
                                int max)
Specified by:
enableSizeSlider in interface TableViewSWT<Object>

disableSizeSlider

public void disableSizeSlider()
Specified by:
disableSizeSlider in interface TableViewSWT<Object>

addRowPaintListener

public void addRowPaintListener(TableRowSWTPaintListener listener)
Specified by:
addRowPaintListener in interface TableViewSWT<Object>

removeRowPaintListener

public void removeRowPaintListener(TableRowSWTPaintListener listener)
Specified by:
removeRowPaintListener in interface TableViewSWT<Object>

invokePaintListeners

public void invokePaintListeners(org.eclipse.swt.graphics.GC gc,
                                 TableRowCore row,
                                 TableColumnCore column,
                                 org.eclipse.swt.graphics.Rectangle cellArea)
Specified by:
invokePaintListeners in interface TableViewSWT<Object>

addRowMouseListener

public void addRowMouseListener(TableRowMouseListener listener)
Specified by:
addRowMouseListener in interface TableViewSWT<Object>

removeRowMouseListener

public void removeRowMouseListener(TableRowMouseListener listener)
Specified by:
removeRowMouseListener in interface TableViewSWT<Object>

invokeRowMouseListener

public void invokeRowMouseListener(TableRowMouseEvent event)
Specified by:
invokeRowMouseListener in interface TableViewSWT<Object>

packColumns

public void packColumns()
Specified by:
packColumns in interface TableViewSWT<Object>

parameterChanged

public void parameterChanged(String parameterName)
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 interface ParameterListener
Parameters:
parameterName - the name of the parameter that has changed

createNewRow

public TableRowCore createNewRow(Object object)
Specified by:
createNewRow in class TableViewImpl<Object>

visibleRowsChanged

public void visibleRowsChanged()
Specified by:
visibleRowsChanged in interface TableViewSWT<Object>
Specified by:
visibleRowsChanged in class TableViewImpl<Object>

uiGuessMaxVisibleRows

public int uiGuessMaxVisibleRows()
Specified by:
uiGuessMaxVisibleRows in class TableViewImpl<Object>

uiRemoveRows

public void uiRemoveRows(TableRowCore[] rows,
                         Integer[] rowIndexes)
Specified by:
uiRemoveRows in class TableViewImpl<Object>

getOffUIThread

public void getOffUIThread(AERunnable runnable)
Specified by:
getOffUIThread in class TableViewImpl<Object>

swt_calculateClientArea

protected void swt_calculateClientArea()

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()

isVisible

public boolean isVisible()
Specified by:
isVisible in interface TableViewSWT<Object>

removeAllTableRows

public void removeAllTableRows()
Description copied from interface: TableView
Remove all the data sources (table rows) from the table.

Specified by:
removeAllTableRows in interface TableView<Object>
Overrides:
removeAllTableRows in class TableViewImpl<Object>

swt_fixupSize

protected void swt_fixupSize()

uiChangeColumnIndicator

protected void uiChangeColumnIndicator()
Specified by:
uiChangeColumnIndicator in class TableViewImpl<Object>

getTableColumnByOffset

public TableColumnCore getTableColumnByOffset(int mouseX)
Specified by:
getTableColumnByOffset in interface TableViewSWT<Object>

getTableRow

public TableRowSWT getTableRow(int x,
                               int y,
                               boolean anyX)
Specified by:
getTableRow in interface TableViewSWT<Object>

setSelectedRows

public void setSelectedRows(TableRowCore[] newSelectionArray,
                            boolean trigger)
Overrides:
setSelectedRows in class TableViewImpl<Object>

setRowSelected

public void setRowSelected(TableRowCore row,
                           boolean selected,
                           boolean trigger)
Specified by:
setRowSelected in interface TableViewSWT<Object>
Overrides:
setRowSelected in class TableViewImpl<Object>

editCell

public void editCell(TableColumnCore column,
                     int row)
Specified by:
editCell in interface TableViewSWT<Object>

isDragging

public boolean isDragging()
Specified by:
isDragging in interface TableViewSWT<Object>

getSWTFilter

public TableViewSWTFilter<?> getSWTFilter()
Specified by:
getSWTFilter in interface TableViewSWT<Object>

openFilterDialog

public void openFilterDialog()
Specified by:
openFilterDialog in interface TableViewSWT<Object>

isSingleSelection

public boolean isSingleSelection()
Specified by:
isSingleSelection in interface TableViewSWT<Object>
Specified by:
isSingleSelection in class TableViewImpl<Object>

expandColumns

public void expandColumns()
Specified by:
expandColumns in interface TableViewSWT<Object>

triggerTabViewsDataSourceChanged

public void triggerTabViewsDataSourceChanged()
Specified by:
triggerTabViewsDataSourceChanged in class TableViewImpl<Object>

getTabsCommon

public TableViewSWT_TabsCommon getTabsCommon()
Specified by:
getTabsCommon in interface TableViewSWT<Object>

uiSelectionChanged

public void uiSelectionChanged(TableRowCore[] newlySelectedRows,
                               TableRowCore[] deselectedRows)
Specified by:
uiSelectionChanged in class TableViewImpl<Object>

delete

public void delete()
Specified by:
delete in interface TableView<Object>
Overrides:
delete in class TableViewImpl<Object>

generate

public void generate(IndentWriter writer)
Specified by:
generate in interface AEDiagnosticsEvidenceGenerator
Overrides:
generate in class TableViewImpl<Object>

showColumnEditor

public void showColumnEditor()
Specified by:
showColumnEditor in interface TableViewSWT<Object>

getFocusedRow

public TableRowCore getFocusedRow()
Specified by:
getFocusedRow in interface TableView<Object>
Overrides:
getFocusedRow in class TableViewImpl<Object>
Returns:

setFocusedRow

public void setFocusedRow(TableRowCore row)

showRow

public void showRow(TableRowCore rowToShow)
Specified by:
showRow in interface TableViewSWT<Object>

rowHeightChanged

public void rowHeightChanged(TableRowCore row,
                             int oldHeight,
                             int newHeight)

redrawTable

public void redrawTable()

redrawRow

public void redrawRow(TableRowPainted row,
                      boolean immediateRedraw)

getSyncObject

public Object getSyncObject()

isTableSelected

public boolean isTableSelected()
Overrides:
isTableSelected in class TableViewImpl<Object>