com.aelitis.azureus.ui.common.table
Interface TableRowCore

All Superinterfaces:
TableRow
All Known Subinterfaces:
TableRowSWT
All Known Implementing Classes:
TableRowPainted, TableRowSWTBase

public interface TableRowCore
extends TableRow

Core Table Row functions are those available to plugins plus some core-only functions. The core-only functions are listed here.

Since:
2.0.8.5 2004/May/14
Author:
TuxPaper

Method Summary
 void delete()
          Delete the row
 Object getDataSource(boolean bCoreObject)
          Retrieve the Data Source related to this row
 int getHeight()
           
 int getIndex()
           
 TableRowCore getParentRowCore()
           
 TableCellCore getSortColumnCell(String hint)
           
 int getSubItemCount()
           
 TableRowCore getSubRow(int i)
           
 TableRowCore[] getSubRowsWithNull()
           
 TableCellCore getTableCellCore(String field)
          Retrieve a cell based on the supplied value
 TableView getView()
           
 void invalidate()
          Invalidates Row
 void invalidate(boolean mustRefresh)
           
 void invokeMouseListeners(TableRowMouseEvent event)
           
 boolean isExpanded()
           
 boolean isInPaintItem()
           
 boolean isMouseOver()
           
 boolean isRowDisposed()
           
 boolean isVisible()
          Retreive whether the row is visible to the user.
 TableRowCore linkSubItem(int indexOf)
           
 void locationChanged(int iStartColumn)
          Location of a column has changed
 void redraw()
          like refresh, except a different name to confuse us.
 void redraw(boolean doChildren)
           
 List refresh(boolean bDoGraphics)
          Refresh all the cells in the row
 List<TableCellCore> refresh(boolean bDoGraphics, boolean bVisible)
           
 void removeSubRow(Object datasource)
           
 void setExpanded(boolean b)
           
 boolean setHeight(int iHeight)
          Adjust cell height.
 void setSelected(boolean bSelected)
           
 void setSortColumn(String columnID)
           
 void setSubItemCount(int length)
           
 void setSubItems(Object[] datasources)
           
 boolean setTableItem(int newIndex)
          Link the row to a SWT TableItem
 boolean setTableItem(int newIndex, boolean isVisible)
           
 void setUpToDate(boolean upToDate)
           
 
Methods inherited from interface org.gudy.azureus2.plugins.ui.tables.TableRow
addMouseListener, getData, getDataSource, getTableCell, getTableID, isSelected, isValid, removeMouseListener, setData, setForeground, setForeground, setForegroundToErrorColor
 

Method Detail

invalidate

void invalidate()
Invalidates Row


invalidate

void invalidate(boolean mustRefresh)

delete

void delete()
Delete the row


refresh

List refresh(boolean bDoGraphics)
Refresh all the cells in the row

Parameters:
bDoGraphics - Refresh graphic cells to

locationChanged

void locationChanged(int iStartColumn)
Location of a column has changed

Parameters:
iStartColumn - Cells starting at this value may need repainting XXX Rename to cellLocationChanged?

getDataSource

Object getDataSource(boolean bCoreObject)
Retrieve the Data Source related to this row

Parameters:
bCoreObject - true - return a core object
false - return a plugin object
Returns:
the Data Source Object related to the row

getIndex

int getIndex()
Specified by:
getIndex in interface TableRow

setHeight

boolean setHeight(int iHeight)
Adjust cell height. Don't use if any other column/cell uses setImage()

Parameters:
iHeight - new Row Height. Will not reduce row's height (SWT)
Returns:
success level

getTableCellCore

TableCellCore getTableCellCore(String field)
Retrieve a cell based on the supplied value

Parameters:
field - Column name of the cell to be returned
Returns:
TableCellCore object related to this row and the specified column

isVisible

boolean isVisible()
Retreive whether the row is visible to the user.

Returns:
visibility state

setTableItem

boolean setTableItem(int newIndex)
Link the row to a SWT TableItem

Parameters:
newIndex - new position row should be
Returns:
false - already linked to that item at that index

setTableItem

boolean setTableItem(int newIndex,
                     boolean isVisible)

setSelected

void setSelected(boolean bSelected)

isRowDisposed

boolean isRowDisposed()

setUpToDate

void setUpToDate(boolean upToDate)

refresh

List<TableCellCore> refresh(boolean bDoGraphics,
                            boolean bVisible)
Parameters:
bDoGraphics -
bVisible -

redraw

void redraw()
like refresh, except a different name to confuse us.


redraw

void redraw(boolean doChildren)

getView

TableView getView()
Specified by:
getView in interface TableRow
Returns:

invokeMouseListeners

void invokeMouseListeners(TableRowMouseEvent event)
Parameters:
event -
Since:
3.0.1.7

isMouseOver

boolean isMouseOver()
Returns:
Since:
3.0.4.3

setSubItemCount

void setSubItemCount(int length)
Parameters:
length -
Since:
4.4.0.5

getSubItemCount

int getSubItemCount()

isExpanded

boolean isExpanded()

setExpanded

void setExpanded(boolean b)

getParentRowCore

TableRowCore getParentRowCore()

isInPaintItem

boolean isInPaintItem()
Returns:
Since:
4.4.0.5

linkSubItem

TableRowCore linkSubItem(int indexOf)
Parameters:
indexOf -
Returns:
Since:
4.4.0.5

setSubItems

void setSubItems(Object[] datasources)
Parameters:
datasources -
Since:
4.4.0.5

getSubRowsWithNull

TableRowCore[] getSubRowsWithNull()

removeSubRow

void removeSubRow(Object datasource)

getHeight

int getHeight()

getSubRow

TableRowCore getSubRow(int i)

setSortColumn

void setSortColumn(String columnID)

getSortColumnCell

TableCellCore getSortColumnCell(String hint)