Package com.biglybt.ui.common.table
Interface TableRowCore
-
- All Superinterfaces:
TableRow
- All Known Subinterfaces:
TableRowSWT
- All Known Implementing Classes:
TableRowPainted
,TableRowSWTBase
public interface TableRowCore extends TableRow
Core Table Row functions are those available to plugins plus some core-only functions. The core-only functions are listed here.- Since:
- 2.0.8.5 2004/May/14
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID_EXPANDOHITAREA
static java.lang.String
ID_EXPANDOHITCOLUMN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete()
Delete the rowvoid
fakeRedraw(java.lang.String column_name)
forces the cell to be refreshed/repainted onto an off-screen area so that any side-effects of the process (e.g.java.lang.Object
getDataSource(boolean bCoreObject)
Retrieve the Data Source related to this rowint
getHeight()
int
getIndex()
int
getLineHeight()
TableRowCore
getParentRowCore()
TableCellCore[]
getSortColumnCells(java.lang.String hint)
int
getSubItemCount()
TableRowCore
getSubRow(int i)
TableRowCore[]
getSubRowsRecursive(boolean includeHidden)
TableRowCore[]
getSubRowsWithNull()
TableCellCore
getTableCellCore(java.lang.String field)
Retrieve a cell based on the supplied valueTableView
getView()
int
getVisibleRowIndex()
void
invalidate()
Invalidates Rowvoid
invalidate(boolean mustRefresh)
void
invokeMouseListeners(TableRowMouseEvent event)
boolean
isExpanded()
boolean
isHidden()
boolean
isInPaintItem()
boolean
isMouseOver()
boolean
isRowDisposed()
boolean
isVisible()
Retreive whether the row is visible to the user.TableRowCore
linkSubItem(int indexOf)
void
locationChanged(int iStartColumn)
Location of a column has changedvoid
redraw()
like refresh, except a different name to confuse us.void
redraw(boolean doChildren)
boolean
refilter()
java.util.List
refresh(boolean bDoGraphics)
Refresh all the cells in the rowjava.util.List<TableCellCore>
refresh(boolean bDoGraphics, boolean bVisible)
void
removeSubRow(java.lang.Object datasource)
void
setExpanded(boolean b)
boolean
setHeight(int iHeight)
Adjust cell height.void
setRequestAttention(boolean on)
void
setSelected(boolean bSelected)
void
setSortColumn(java.lang.String... columnIDs)
void
setSubItemCount(int length)
void
setSubItems(java.lang.Object[] datasources)
boolean
setTableItem(int newIndex)
Link the row to a SWT TableItemvoid
setUpToDate(boolean upToDate)
boolean
setVisibleRowIndex(int index)
boolean
sortSubRows(TableColumnCore col)
-
Methods inherited from interface com.biglybt.pif.ui.tables.TableRow
addMouseListener, getData, getDataSource, getTableCell, getTableID, isSelected, isValid, removeMouseListener, setData
-
-
-
-
Field Detail
-
ID_EXPANDOHITCOLUMN
static final java.lang.String ID_EXPANDOHITCOLUMN
- See Also:
- Constant Field Values
-
ID_EXPANDOHITAREA
static final java.lang.String ID_EXPANDOHITAREA
- See Also:
- Constant Field Values
-
-
Method Detail
-
invalidate
void invalidate()
Invalidates Row
-
invalidate
void invalidate(boolean mustRefresh)
-
delete
void delete()
Delete the row
-
refresh
java.util.List refresh(boolean bDoGraphics)
Refresh all the cells in the row- Parameters:
bDoGraphics
- Refresh graphic cells to
-
locationChanged
void locationChanged(int iStartColumn)
Location of a column has changed- Parameters:
iStartColumn
- Cells starting at this value may need repainting XXX Rename to cellLocationChanged?
-
getDataSource
java.lang.Object getDataSource(boolean bCoreObject)
Retrieve the Data Source related to this row- Parameters:
bCoreObject
- true - return a core object
false - return a plugin object- Returns:
- the Data Source Object related to the row
-
setVisibleRowIndex
boolean setVisibleRowIndex(int index)
-
getVisibleRowIndex
int getVisibleRowIndex()
-
setHeight
boolean setHeight(int iHeight)
Adjust cell height. Don't use if any other column/cell uses setImage()- Parameters:
iHeight
- new Row Height. Will not reduce row's height (SWT)- Returns:
- success level
-
getTableCellCore
TableCellCore getTableCellCore(java.lang.String field)
Retrieve a cell based on the supplied value- Parameters:
field
- Column name of the cell to be returned- Returns:
- TableCellCore object related to this row and the specified column
-
isVisible
boolean isVisible()
Retreive whether the row is visible to the user.- Returns:
- visibility state
-
setTableItem
boolean setTableItem(int newIndex)
Link the row to a SWT TableItem- Parameters:
newIndex
- new position row should be- Returns:
- false - already linked to that item at that index
-
setSelected
void setSelected(boolean bSelected)
-
isRowDisposed
boolean isRowDisposed()
-
setUpToDate
void setUpToDate(boolean upToDate)
-
refresh
java.util.List<TableCellCore> refresh(boolean bDoGraphics, boolean bVisible)
- Returns:
- List of invalid cells
-
redraw
void redraw()
like refresh, except a different name to confuse us.
-
redraw
void redraw(boolean doChildren)
-
refilter
boolean refilter()
-
isHidden
boolean isHidden()
-
invokeMouseListeners
void invokeMouseListeners(TableRowMouseEvent event)
- Parameters:
event
-- Since:
- 3.0.1.7
-
isMouseOver
boolean isMouseOver()
- Returns:
- Since:
- 3.0.4.3
-
setSubItemCount
void setSubItemCount(int length)
- Parameters:
length
-- Since:
- 4.4.0.5
-
getSubItemCount
int getSubItemCount()
-
isExpanded
boolean isExpanded()
-
setExpanded
void setExpanded(boolean b)
-
getParentRowCore
TableRowCore getParentRowCore()
-
isInPaintItem
boolean isInPaintItem()
- Returns:
- Since:
- 4.4.0.5
-
linkSubItem
TableRowCore linkSubItem(int indexOf)
- Parameters:
indexOf
-- Returns:
- Since:
- 4.4.0.5
-
setSubItems
void setSubItems(java.lang.Object[] datasources)
- Parameters:
datasources
-- Since:
- 4.4.0.5
-
getSubRowsWithNull
TableRowCore[] getSubRowsWithNull()
-
getSubRowsRecursive
TableRowCore[] getSubRowsRecursive(boolean includeHidden)
-
removeSubRow
void removeSubRow(java.lang.Object datasource)
-
getHeight
int getHeight()
-
getLineHeight
int getLineHeight()
- Returns:
- Height in px of one standard line of text.
# of rows of text can be calculated by usinggetHeight()
/getLineHeight()
-
getSubRow
TableRowCore getSubRow(int i)
-
setSortColumn
void setSortColumn(java.lang.String... columnIDs)
-
getSortColumnCells
TableCellCore[] getSortColumnCells(java.lang.String hint)
-
sortSubRows
boolean sortSubRows(TableColumnCore col)
-
fakeRedraw
void fakeRedraw(java.lang.String column_name)
forces the cell to be refreshed/repainted onto an off-screen area so that any side-effects of the process (e.g. preferred width) can be updated- Parameters:
cell
-
-
setRequestAttention
void setRequestAttention(boolean on)
-
-