|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.ui.swt.views.table.impl.TableCellSWTBase org.gudy.azureus2.ui.swt.views.table.painted.TableCellPainted
public class TableCellPainted
Field Summary |
---|
Fields inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableCellSWTBase |
---|
bDebug, cellSWTPaintListeners, FLAG_DISPOSED, FLAG_MUSTREFRESH, FLAG_SORTVALUEISTEXT, FLAG_TOOLTIPISAUTO, FLAG_UPTODATE, FLAG_VALID, FLAG_VISUALLY_CHANGED_SINCE_REFRESH, MAX_REFRESHES, numFastRefreshes, refreshListeners, sortValue, tableColumn, tableRow |
Fields inherited from interface com.aelitis.azureus.ui.common.table.TableCellCore |
---|
TOOLTIPLISTENER_HOVER, TOOLTIPLISTENER_HOVERCOMPLETE |
Constructor Summary | |
---|---|
TableCellPainted(TableRowSWT row,
TableColumnCore column,
int pos)
|
Method Summary | |
---|---|
protected void |
constructionCompleter()
|
Graphic |
getBackgroundGraphic()
Returns a Graphic of what's behind the cell |
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.Rectangle |
getBoundsRaw()
|
Object |
getDataSource()
Retrieve the data object associated with the current table row and cell. |
org.eclipse.swt.graphics.Color |
getForegroundSWT()
|
int |
getHeight()
Retrieve the height of the cell's drawing area (excluding any margin) for TableColumn objects of TYPE_GRAPHIC only. |
int |
getMarginHeight()
|
int |
getMarginWidth()
|
int |
getMaxLines()
Retrieves the number of lines available for setting text |
org.eclipse.swt.graphics.Point |
getSize()
|
Comparable<?> |
getSortValue()
Retrieves the sorting value |
TableColumn |
getTableColumn()
Retreive the TableColumn that this cell belongs to |
String |
getTableID()
Returns which table the cell is being displayed in. |
TableRow |
getTableRow()
Retrieve the TableRow that this cell belongs to |
String |
getText()
Retrieve the Cell's text |
int |
getWidth()
Retrieve the width of the cell's drawing area (excluding any margin) for TableColumn objects of TYPE_GRAPHIC only. |
int |
getWidthRaw()
|
boolean |
isShown()
Determines if the user has chosen to display the cell |
void |
locationChanged()
Location of the cell has changed |
void |
redraw()
|
void |
setBoundsRaw(org.eclipse.swt.graphics.Rectangle bounds)
|
boolean |
setCursorID(int cursorID)
Set the cursor ID that should be used for the cell |
boolean |
setForeground(org.eclipse.swt.graphics.Color color)
Change the cell's foreground color. |
void |
setMarginHeight(int height)
Specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the layout for TableColumn objects of TYPE_GRAPHIC only. |
void |
setMarginWidth(int width)
Specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the layout for TableColumn object of TYPE_GRAPHIC only. |
static boolean |
stringEquals(String s0,
String s1)
|
boolean |
uiSetText(String text)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableCellPainted(TableRowSWT row, TableColumnCore column, int pos)
Method Detail |
---|
protected void constructionCompleter()
constructionCompleter
in class TableCellSWTBase
public Object getDataSource()
TableCell
Download
object for the current rowPeer
object for the current rowDiskManagerFileInfo
object for the current rowTrackerTorrent
object for the current rowShareResource
object for the current rowpublic TableColumn getTableColumn()
TableCell
public TableRow getTableRow()
TableCell
public String getTableID()
TableCell
TableManager
.TABLE_* constantpublic static boolean stringEquals(String s0, String s1)
public String getText()
TableCell
public Comparable<?> getSortValue()
TableCell
getSortValue
in interface TableCell
getSortValue
in class TableCellSWTBase
public boolean isShown()
TableCell
public int getMaxLines()
TableCell
public int getWidth()
TableCell
public int getWidthRaw()
getWidthRaw
in class TableCellSWTBase
public int getHeight()
TableCell
public int getMarginHeight()
public void setMarginHeight(int height)
TableCell
The default is 1.
height
- new margin heightpublic int getMarginWidth()
public void setMarginWidth(int width)
TableCell
The default is 1.
width
- new margin widthpublic Graphic getBackgroundGraphic()
TableCell
public void locationChanged()
TableCellCore
public boolean setCursorID(int cursorID)
TableCellCore
setCursorID
in interface TableCellCore
setCursorID
in class TableCellSWTBase
public void redraw()
public boolean setForeground(org.eclipse.swt.graphics.Color color)
TableCellSWT
color
- SWT Color object.
public org.eclipse.swt.graphics.Point getSize()
public org.eclipse.swt.graphics.Rectangle getBounds()
public org.eclipse.swt.graphics.Rectangle getBoundsRaw()
public org.eclipse.swt.graphics.Rectangle getBoundsOnDisplay()
public org.eclipse.swt.graphics.Image getBackgroundImage()
public org.eclipse.swt.graphics.Color getForegroundSWT()
public org.eclipse.swt.graphics.Color getBackgroundSWT()
public void setBoundsRaw(org.eclipse.swt.graphics.Rectangle bounds)
public boolean uiSetText(String text)
uiSetText
in class TableCellSWTBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |