FileDocCategorySizeDatePackage
TableCellCore.javaAPI DocAzureus 3.0.3.44789Mon Jun 25 21:21:52 BST 2007com.aelitis.azureus.ui.common.table

TableCellCore

public interface TableCellCore implements Comparable, org.gudy.azureus2.plugins.ui.tables.TableCell
Core Table Cell functions are those available to plugins plus some core-only functions. The core-only functions are listed here.
see
org.gudy.azureus2.ui.swt.views.table.impl.TableCellImpl

Fields Summary
static final int
TOOLTIPLISTENER_HOVER
static final int
TOOLTIPLISTENER_HOVERCOMPLETE
Constructors Summary
Methods Summary
public voiddispose()
dispose of the cell

public intgetCursorID()
Get the cursor ID we are currently using XXX Should NOT be SWT.CURSOR_ constants!

return

public java.lang.StringgetObfusticatedText()
Return the text used when generating diagnostics

return

public TableRowCoregetTableRowCore()
Retrieve the row that this cell belongs to

return
the row that this cell belongs to

public booleangetVisuallyChangedSinceRefresh()
Returns whether the cell has visually changed since the last refresh call. Could be used to prevent a refresh, or refresh early.

return
visually changed since refresh state

public voidinvalidate(boolean bMustRefresh)

public voidinvokeMouseListeners(org.gudy.azureus2.plugins.ui.tables.TableCellMouseEvent event)
Trigger all the mouse listeners that have been addded to this cell

param
event event to trigger

public voidinvokeToolTipListeners(int type)
Trigger all the tooltip listeners that have been added to this cell

param
type {@link #TOOLTIPLISTENER_HOVER}, {@link #TOOLTIPLISTENER_HOVERCOMPLETE}

public voidinvokeVisibilityListeners(int visibility)
Trigger all the visibility listeners that have been added to this cell.

param
visibility See {@link TableCellVisibilityListener}.VISIBILITY_* constants

public booleanisMouseOver()

since
3.0.1.7

public booleanisUpToDate()
Returns whether the cell will need updating when it's visible again

return

public voidlocationChanged()
Location of the cell has changed

public booleanneedsPainting()
Retrieve whether the cell need any paint calls (graphic)

return
whether the cell needs painting

public booleanrefresh(boolean bDoGraphics)
Refresh the cell

param
bDoGraphics Whether to update graphic cells

public booleanrefresh()
Refresh the cell, including graphic types

public booleanrefresh(boolean bDoGraphics, boolean bRowVisible, boolean bCellVisible)
Refresh the cell. This method overide takes a bRowVisible paramater and a bCellVisible parameter in order to reduce the number of calls to TableRow.isVisible() and calculations of cell visibility.

param
bDoGraphics Whether to update graphic cells
param
bRowVisible Assumed visibility state of row
param
bCellVisible Assumed visibility state of the cell

public booleanrefresh(boolean bDoGraphics, boolean bRowVisible)
Refresh the cell. This method overide takes a bRowVisible paramater in order to reduce the number of calls to TableRow.isVisible() in cases where multiple cells on the same row are being refreshed.

param
bDoGraphics Whether to update graphic cells
param
bRowVisible Visibility state of row

public voidsetCursorID(int cursorID)
Set the cursor ID that should be used for the cell

param
cursor_hand

public voidsetUpToDate(boolean upToDate)
Sets whether the cell will need updating when it's visible again

param
upToDate