|
|||||||||
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
public abstract class TableRowSWTBase
Field Summary | |
---|---|
static boolean |
DEBUG_ROW_PAINT
|
protected java.lang.Object |
lock
|
protected java.util.Map<java.lang.String,TableCellCore> |
mTableCells
|
protected boolean |
wasShown
|
Constructor Summary | |
---|---|
TableRowSWTBase(java.lang.Object lock,
TableRowCore parentRow,
TableViewSWT tv,
java.lang.Object dataSource)
|
Method Summary | |
---|---|
void |
addMouseListener(TableRowMouseListener listener)
Adds a listener that triggers when this TableRow has a mouse event. |
boolean |
canExpand()
|
void |
clearCellFlag(int flag,
boolean subRows)
|
void |
delete()
Delete the row |
boolean |
doesAnyCellHaveFlag(int flag)
|
int |
getAlpha()
|
abstract org.eclipse.swt.graphics.Color |
getBackground()
|
abstract org.eclipse.swt.graphics.Rectangle |
getBounds()
|
java.lang.Object |
getData(java.lang.String id)
Get a previously stored value |
java.lang.Object |
getDataSource()
Retrieve the data object associated with the current table row. |
java.lang.Object |
getDataSource(boolean bCoreObject)
Retrieve the Data Source related to this row |
int |
getFontStyle()
|
abstract org.eclipse.swt.graphics.Color |
getForeground()
Retreive the color of the row |
int |
getIndex()
|
TableRowCore |
getParentRowCore()
|
TableCell |
getTableCell(java.lang.String field)
Retrieve a cell based on its column name |
TableCellCore |
getTableCellCore(java.lang.String name)
Retrieve a cell based on the supplied value |
TableCellSWT |
getTableCellSWT(java.lang.String name)
|
java.lang.String |
getTableID()
Returns which table the row is being displayed in. |
TableView |
getView()
|
void |
invalidate()
Invalidates Row |
void |
invalidate(boolean mustRefersh)
|
void |
invokeMouseListeners(TableRowMouseEvent event)
|
boolean |
isExpanded()
|
boolean |
isFocused()
|
boolean |
isInPaintItem()
|
boolean |
isMouseOver()
|
boolean |
isRowDisposed()
|
boolean |
isSelected()
Retrieve whether the row is selected by the user |
boolean |
isShown()
|
boolean |
isValid()
Validility of the row's cells. |
boolean |
isVisible()
Retreive whether the row is visible to the user. |
void |
locationChanged(int iStartColumn)
Location of a column has changed |
void |
redraw()
like refresh, except a different name to confuse us. |
java.util.List |
refresh(boolean bDoGraphics)
Refresh all the cells in the row |
java.util.List<TableCellCore> |
refresh(boolean bDoGraphics,
boolean bVisible)
|
void |
removeMouseListener(TableRowMouseListener listener)
Remove a previously added TableRowMouseListener |
boolean |
setAlpha(int alpha)
|
abstract void |
setBackgroundImage(org.eclipse.swt.graphics.Image image)
|
void |
setCellFlag(int flag)
|
void |
setData(java.lang.String id,
java.lang.Object data)
Store a value against the table row |
void |
setExpanded(boolean b)
|
boolean |
setFontStyle(int style)
|
abstract boolean |
setForeground(org.eclipse.swt.graphics.Color c)
Set the color of the row |
void |
setForeground(int[] rgb)
Change the row's foreground color |
void |
setForeground(int red,
int green,
int blue)
Change the row's foreground color. |
boolean |
setForeground2(int[] rgb)
|
boolean |
setForeground2(int red,
int green,
int blue)
|
void |
setForegroundToErrorColor()
Change the row's foreground color to the user's defined "error" color. |
abstract boolean |
setIconSize(org.eclipse.swt.graphics.Point pt)
|
void |
setSelected(boolean selected)
|
boolean |
setShown(boolean b,
boolean force)
|
boolean |
setTableItem(int newIndex)
Link the row to a SWT TableItem |
boolean |
setTableItem(int newIndex,
boolean isVisible)
|
void |
setUpToDate(boolean upToDate)
|
abstract void |
setWidgetSelected(boolean selected)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.gudy.azureus2.ui.swt.views.table.TableRowSWT |
---|
getFullHeight |
Methods inherited from interface com.aelitis.azureus.ui.common.table.TableRowCore |
---|
getHeight, getSortColumnCell, getSubItemCount, getSubRow, getSubRowsWithNull, linkSubItem, redraw, removeSubRow, setHeight, setSortColumn, setSubItemCount, setSubItems |
Field Detail |
---|
public static boolean DEBUG_ROW_PAINT
protected java.lang.Object lock
protected java.util.Map<java.lang.String,TableCellCore> mTableCells
protected boolean wasShown
Constructor Detail |
---|
public TableRowSWTBase(java.lang.Object lock, TableRowCore parentRow, TableViewSWT tv, java.lang.Object dataSource)
Method Detail |
---|
public void invalidate()
TableRowCore
invalidate
in interface TableRowCore
public void invalidate(boolean mustRefersh)
invalidate
in interface TableRowCore
public boolean doesAnyCellHaveFlag(int flag)
public void setCellFlag(int flag)
public void clearCellFlag(int flag, boolean subRows)
public void delete()
TableRowCore
delete
in interface TableRowCore
public java.util.List refresh(boolean bDoGraphics)
TableRowCore
refresh
in interface TableRowCore
bDoGraphics
- Refresh graphic cells topublic void locationChanged(int iStartColumn)
TableRowCore
locationChanged
in interface TableRowCore
iStartColumn
- Cells starting at this value may need repainting
XXX Rename to cellLocationChanged?public java.lang.Object getDataSource(boolean bCoreObject)
TableRowCore
getDataSource
in interface TableRowCore
bCoreObject
- true - return a core objectpublic int getIndex()
getIndex
in interface TableRowCore
getIndex
in interface TableRow
public TableCellCore getTableCellCore(java.lang.String name)
TableRowCore
getTableCellCore
in interface TableRowCore
name
- Column name of the cell to be returned
public boolean isVisible()
TableRowCore
isVisible
in interface TableRowCore
public boolean setTableItem(int newIndex)
TableRowCore
setTableItem
in interface TableRowCore
newIndex
- new position row should be
public boolean setTableItem(int newIndex, boolean isVisible)
setTableItem
in interface TableRowCore
public void setSelected(boolean selected)
setSelected
in interface TableRowCore
public boolean isRowDisposed()
isRowDisposed
in interface TableRowCore
public void setUpToDate(boolean upToDate)
setUpToDate
in interface TableRowCore
public java.util.List<TableCellCore> refresh(boolean bDoGraphics, boolean bVisible)
refresh
in interface TableRowCore
public TableView getView()
getView
in interface TableRowCore
getView
in interface TableRow
public void addMouseListener(TableRowMouseListener listener)
TableRow
addMouseListener
in interface TableRow
public void removeMouseListener(TableRowMouseListener listener)
TableRow
removeMouseListener
in interface TableRow
listener
- Previously added listenerpublic void invokeMouseListeners(TableRowMouseEvent event)
invokeMouseListeners
in interface TableRowCore
public boolean isMouseOver()
isMouseOver
in interface TableRowCore
public boolean canExpand()
public boolean isExpanded()
isExpanded
in interface TableRowCore
public void setExpanded(boolean b)
setExpanded
in interface TableRowCore
public TableRowCore getParentRowCore()
getParentRowCore
in interface TableRowCore
public boolean isInPaintItem()
isInPaintItem
in interface TableRowCore
public java.lang.Object getDataSource()
TableRow
getDataSource
in interface TableRow
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 java.lang.String getTableID()
TableRow
getTableID
in interface TableRow
TableManager
.TABLE_* constantpublic abstract boolean setForeground(org.eclipse.swt.graphics.Color c)
TableRowSWT
setForeground
in interface TableRowSWT
c
- new colorpublic void setForeground(int red, int green, int blue)
TableRow
setForeground
in interface TableRow
red
- red value (0 - 255)green
- green value (0 - 255)blue
- blue value (0 - 255)public boolean setForeground2(int red, int green, int blue)
public void setForeground(int[] rgb)
TableRow
setForeground
in interface TableRow
rgb
- int array of red, green, and blue values. Null to reset to
default colorpublic boolean setForeground2(int[] rgb)
public void setForegroundToErrorColor()
TableRow
setForegroundToErrorColor
in interface TableRow
public boolean isValid()
TableRow
isValid
in interface TableRow
public TableCell getTableCell(java.lang.String field)
TableRow
getTableCell
in interface TableRow
field
- Name/ID of column
public boolean isSelected()
TableRow
isSelected
in interface TableRow
public boolean isFocused()
public java.lang.Object getData(java.lang.String id)
TableRow
getData
in interface TableRow
public void setData(java.lang.String id, java.lang.Object data)
TableRow
setData
in interface TableRow
public abstract boolean setIconSize(org.eclipse.swt.graphics.Point pt)
setIconSize
in interface TableRowSWT
public abstract org.eclipse.swt.graphics.Color getForeground()
TableRowSWT
getForeground
in interface TableRowSWT
public abstract org.eclipse.swt.graphics.Color getBackground()
getBackground
in interface TableRowSWT
public TableCellSWT getTableCellSWT(java.lang.String name)
getTableCellSWT
in interface TableRowSWT
public abstract org.eclipse.swt.graphics.Rectangle getBounds()
getBounds
in interface TableRowSWT
public abstract void setBackgroundImage(org.eclipse.swt.graphics.Image image)
setBackgroundImage
in interface TableRowSWT
public int getFontStyle()
getFontStyle
in interface TableRowSWT
public boolean setFontStyle(int style)
setFontStyle
in interface TableRowSWT
public int getAlpha()
getAlpha
in interface TableRowSWT
public boolean setAlpha(int alpha)
setAlpha
in interface TableRowSWT
public abstract void setWidgetSelected(boolean selected)
setWidgetSelected
in interface TableRowSWT
public boolean isShown()
isShown
in interface TableRowSWT
public boolean setShown(boolean b, boolean force)
setShown
in interface TableRowSWT
public void redraw()
TableRowCore
redraw
in interface TableRowCore
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |