|
|||||||||
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.TableRowSWTBase org.gudy.azureus2.ui.swt.views.table.painted.TableRowPainted
public class TableRowPainted
Field Summary | |
---|---|
static org.eclipse.swt.graphics.Color[] |
alternatingColors
|
Fields inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableRowSWTBase |
---|
DEBUG_ROW_PAINT, lock, mTableCells, wasShown |
Constructor Summary | |
---|---|
TableRowPainted(TableRowCore parentRow,
TableViewPainted tv,
Object dataSource,
boolean triggerHeightChange)
|
Method Summary | |
---|---|
protected void |
debug(String s)
|
void |
delete()
Delete the row |
org.eclipse.swt.graphics.Color |
getBackground()
|
org.eclipse.swt.graphics.Rectangle |
getBounds()
|
org.eclipse.swt.graphics.Rectangle |
getDrawBounds()
|
org.eclipse.swt.graphics.Point |
getDrawOffset()
|
org.eclipse.swt.graphics.Color |
getForeground()
Retreive the color of the row |
int |
getFullHeight()
|
int |
getHeight()
|
TableCellCore |
getSortColumnCell(String hint)
|
int |
getSubItemCount()
|
TableRowCore |
getSubRow(int pos)
|
TableRowCore[] |
getSubRowsWithNull()
|
TableCell |
getTableCell(String field)
Retrieve a cell based on its column name |
TableCellCore |
getTableCellCore(String name)
Retrieve a cell based on the supplied value |
TableCellSWT |
getTableCellSWT(String name)
|
TableViewPainted |
getViewPainted()
|
void |
heightChanged(int oldHeight,
int newHeight)
|
TableRowCore |
linkSubItem(int indexOf)
|
void |
redraw(boolean doChildren)
|
void |
redraw(boolean doChildren,
boolean immediateRedraw)
|
List<TableCellCore> |
refresh(boolean bDoGraphics,
boolean bVisible)
|
void |
removeSubRow(Object datasource)
|
void |
setBackgroundImage(org.eclipse.swt.graphics.Image image)
|
boolean |
setDrawOffset(org.eclipse.swt.graphics.Point drawOffset)
|
void |
setExpanded(boolean b)
|
boolean |
setForeground(org.eclipse.swt.graphics.Color color)
Set the color of the row |
boolean |
setHeight(int newHeight)
Adjust cell height. |
boolean |
setHeight(int newHeight,
boolean trigger)
|
boolean |
setIconSize(org.eclipse.swt.graphics.Point pt)
|
boolean |
setShown(boolean b,
boolean force)
|
void |
setSortColumn(String columnID)
|
void |
setSubItemCount(int length)
|
void |
setSubItems(Object[] datasources)
|
void |
setWidgetSelected(boolean selected)
|
void |
subRowHeightChanged(TableRowCore row,
int oldHeight,
int newHeight)
|
void |
swt_paintGC(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle drawBounds,
int rowStartX,
int rowStartY,
int pos,
boolean isTableSelected,
boolean isTableEnabled)
|
Methods inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableRowSWTBase |
---|
addMouseListener, canExpand, clearCellFlag, doesAnyCellHaveFlag, getAlpha, getData, getDataSource, getDataSource, getFontStyle, getIndex, getParentRowCore, getTableID, getView, invalidate, invalidate, invokeMouseListeners, isExpanded, isFocused, isInPaintItem, isMouseOver, isRowDisposed, isSelected, isShown, isValid, isVisible, locationChanged, redraw, refresh, removeMouseListener, setAlpha, setCellFlag, setData, setFontStyle, setForeground, setForeground, setForeground2, setForeground2, setForegroundToErrorColor, setSelected, setTableItem, setTableItem, setUpToDate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.eclipse.swt.graphics.Color[] alternatingColors
Constructor Detail |
---|
public TableRowPainted(TableRowCore parentRow, TableViewPainted tv, Object dataSource, boolean triggerHeightChange)
Method Detail |
---|
public TableViewPainted getViewPainted()
public void swt_paintGC(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawBounds, int rowStartX, int rowStartY, int pos, boolean isTableSelected, boolean isTableEnabled)
gc
- GC to draw todrawBounds
- Area that needs redrawingrowStartX
- where in the GC this row's x-axis startsrowStartY
- where in the GC this row's y-axis startspos
- public List<TableCellCore> refresh(boolean bDoGraphics, boolean bVisible)
refresh
in interface TableRowCore
refresh
in class TableRowSWTBase
public void redraw(boolean doChildren)
public void redraw(boolean doChildren, boolean immediateRedraw)
protected void debug(String s)
public org.eclipse.swt.graphics.Rectangle getBounds()
getBounds
in interface TableRowSWT
getBounds
in class TableRowSWTBase
public org.eclipse.swt.graphics.Rectangle getDrawBounds()
public int getFullHeight()
public org.eclipse.swt.graphics.Point getDrawOffset()
public void heightChanged(int oldHeight, int newHeight)
public void subRowHeightChanged(TableRowCore row, int oldHeight, int newHeight)
public boolean setDrawOffset(org.eclipse.swt.graphics.Point drawOffset)
public void setWidgetSelected(boolean selected)
setWidgetSelected
in interface TableRowSWT
setWidgetSelected
in class TableRowSWTBase
public boolean setShown(boolean b, boolean force)
setShown
in interface TableRowSWT
setShown
in class TableRowSWTBase
public void delete()
TableRowCore
delete
in interface TableRowCore
delete
in class TableRowSWTBase
public void setSubItemCount(int length)
public int getSubItemCount()
public TableRowCore linkSubItem(int indexOf)
public void setSubItems(Object[] datasources)
public TableRowCore[] getSubRowsWithNull()
public void removeSubRow(Object datasource)
public void setExpanded(boolean b)
setExpanded
in interface TableRowCore
setExpanded
in class TableRowSWTBase
public TableRowCore getSubRow(int pos)
public boolean setForeground(org.eclipse.swt.graphics.Color color)
TableRowSWT
setForeground
in interface TableRowSWT
setForeground
in class TableRowSWTBase
color
- new colorpublic boolean setIconSize(org.eclipse.swt.graphics.Point pt)
setIconSize
in interface TableRowSWT
setIconSize
in class TableRowSWTBase
public org.eclipse.swt.graphics.Color getForeground()
TableRowSWT
getForeground
in interface TableRowSWT
getForeground
in class TableRowSWTBase
public org.eclipse.swt.graphics.Color getBackground()
getBackground
in interface TableRowSWT
getBackground
in class TableRowSWTBase
public void setBackgroundImage(org.eclipse.swt.graphics.Image image)
setBackgroundImage
in interface TableRowSWT
setBackgroundImage
in class TableRowSWTBase
public int getHeight()
public boolean setHeight(int newHeight)
TableRowCore
newHeight
- new Row Height. Will not reduce row's height (SWT)
public boolean setHeight(int newHeight, boolean trigger)
public TableCellCore getTableCellCore(String name)
TableRowCore
getTableCellCore
in interface TableRowCore
getTableCellCore
in class TableRowSWTBase
name
- Column name of the cell to be returned
public TableCellSWT getTableCellSWT(String name)
getTableCellSWT
in interface TableRowSWT
getTableCellSWT
in class TableRowSWTBase
public TableCell getTableCell(String field)
TableRow
getTableCell
in interface TableRow
getTableCell
in class TableRowSWTBase
field
- Name/ID of column
public TableCellCore getSortColumnCell(String hint)
public void setSortColumn(String columnID)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |