Package com.biglybt.ui.swt.views.table
Interface TableCellSWT
-
- All Superinterfaces:
java.lang.Comparable
,TableCell
,TableCellCore
- All Known Implementing Classes:
FakeTableCell
,TableCellPainted
,TableCellSWTBase
public interface TableCellSWT extends TableCellCore
SWT specific functions for Table Cells
-
-
Field Summary
-
Fields inherited from interface com.biglybt.ui.common.table.TableCellCore
TOOLTIPLISTENER_HOVER, TOOLTIPLISTENER_HOVERCOMPLETE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
doPaint(org.eclipse.swt.graphics.GC gc)
Paint the cell (for graphics)org.eclipse.swt.graphics.Image
getBackgroundImage()
org.eclipse.swt.graphics.Color
getBackgroundSWT()
org.eclipse.swt.graphics.Rectangle
getBounds()
org.eclipse.swt.graphics.Rectangle
getBoundsOnDisplay()
org.eclipse.swt.graphics.Color
getForegroundSWT()
org.eclipse.swt.graphics.Image
getGraphicSWT()
org.eclipse.swt.graphics.Image
getIcon()
org.eclipse.swt.graphics.Point
getSize()
TableRowSWT
getTableRowSWT()
int
getTextAlpha()
boolean
setForeground(org.eclipse.swt.graphics.Color color)
Change the cell's foreground color.boolean
setGraphic(org.eclipse.swt.graphics.Image img)
boolean
setIcon(org.eclipse.swt.graphics.Image img)
Set the cell's iconvoid
setMouseOver(boolean b)
void
setTextAlpha(int textOpacity)
-
Methods inherited from interface com.biglybt.pif.ui.tables.TableCell
addDisposeListener, addListeners, addMouseListener, addRefreshListener, addToolTipListener, getBackground, getBackgroundGraphic, getClipboardText, getDataSource, getForeground, getGraphic, getHeight, getMarginHeight, getMarginWidth, getMaxLines, getMouseOffset, getSortValue, getTableColumn, getTableID, getTableRow, getText, getToolTip, getWidth, invalidate, isDisposed, isSecondarySortEnabled, isShown, isValid, removeDisposeListener, removeMouseListener, removeRefreshListener, removeToolTipListener, setFillCell, setForeground, setForeground, setForegroundToErrorColor, setGraphic, setMarginHeight, setMarginWidth, setSortValue, setSortValue, setSortValue, setText, setToolTip, useSimpleSortValue
-
Methods inherited from interface com.biglybt.ui.common.table.TableCellCore
dispose, getCursorID, getData, getDefaultToolTip, getObfuscatedText, getTableColumnCore, getTableRowCore, getVisuallyChangedSinceRefresh, invalidate, invokeMouseListeners, invokeToolTipListeners, invokeVisibilityListeners, isMouseOver, isUpToDate, locationChanged, needsPainting, redraw, refresh, refresh, refresh, refresh, refreshAsync, setCursorID, setData, setDefaultToolTip, setUpToDate
-
-
-
-
Method Detail
-
setForeground
boolean setForeground(org.eclipse.swt.graphics.Color color)
Change the cell's foreground color. NOTE: favor (R, G, B)- Parameters:
color
- SWT Color object.- Returns:
- True - Color changed.
False - Color was already set.
-
getIcon
org.eclipse.swt.graphics.Image getIcon()
- Returns:
-
setIcon
boolean setIcon(org.eclipse.swt.graphics.Image img)
Set the cell's icon- Parameters:
img
- Cell's new icon- Returns:
- true if the icon will be used
-
doPaint
void doPaint(org.eclipse.swt.graphics.GC gc)
Paint the cell (for graphics)- Parameters:
gc
- GC object to be used for painting
-
getSize
org.eclipse.swt.graphics.Point getSize()
-
getBounds
org.eclipse.swt.graphics.Rectangle getBounds()
-
getBoundsOnDisplay
org.eclipse.swt.graphics.Rectangle getBoundsOnDisplay()
-
setGraphic
boolean setGraphic(org.eclipse.swt.graphics.Image img)
-
getGraphicSWT
org.eclipse.swt.graphics.Image getGraphicSWT()
-
getBackgroundImage
org.eclipse.swt.graphics.Image getBackgroundImage()
- Returns:
-
getForegroundSWT
org.eclipse.swt.graphics.Color getForegroundSWT()
- Returns:
-
getTableRowSWT
TableRowSWT getTableRowSWT()
- Returns:
-
getBackgroundSWT
org.eclipse.swt.graphics.Color getBackgroundSWT()
- Returns:
- Since:
- 3.0.3.4
-
getTextAlpha
int getTextAlpha()
- Returns:
- Since:
- 3.1.1.1
-
setTextAlpha
void setTextAlpha(int textOpacity)
- Parameters:
textOpacity
-- Since:
- 3.1.1.1
-
setMouseOver
void setMouseOver(boolean b)
-
-