| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Color |
getBackground(int columnIndex)
Get the background at the columnIndex,
|
Rectangle |
getBounds()
Return the bounds for the whole item.
|
Rectangle |
getBounds(int columnIndex)
Get the bounds of the entry at the columnIndex,
|
int |
getColumnCount()
Return the number of columns for the receiver.
|
Control |
getControl()
Get the Control for the receiver.
|
int |
getCreationIndex(int visualIndex)
Translate the current column index (as shown in the UI) to the original
one.
|
Object |
getElement() |
Font |
getFont(int columnIndex)
Get the font at the columnIndex.
|
Color |
getForeground(int columnIndex)
Get the foreground at the columnIndex.
|
Image |
getImage(int columnIndex)
Return the image at the columnIndex.
|
Rectangle |
getImageBounds(int index)
Returns the location and bounds of the area where the image is drawn.
|
Widget |
getItem()
Return the item for the receiver.
|
ViewerRow |
getNeighbor(int direction,
boolean sameLevel)
Returns a neighboring row, or
null if no neighbor exists in
the given direction. |
String |
getText(int columnIndex)
Get the text at the columnIndex.
|
Rectangle |
getTextBounds(int index)
The location and bounds of the area where the text is drawn depends on
various things (image displayed, control with SWT.CHECK)
|
TreePath |
getTreePath()
The tree path used to identify an element by the unique path
|
int |
getVisualIndex(int creationIndex)
Translate the original column index to the actual one.
|
protected boolean |
scrollCellIntoView(int columnIndex)
Scrolls the cell at this index into view
Because of backwards API compatibility the default implementation is a
no-op.
|
void |
setBackground(int columnIndex,
Color color)
Set the background at the columnIndex.
|
void |
setFont(int columnIndex,
Font font)
Set the
Font at the columnIndex. |
void |
setForeground(int columnIndex,
Color color)
Set the foreground at the columnIndex.
|
void |
setImage(int columnIndex,
Image image)
Set the image at the columnIndex
|
void |
setText(int columnIndex,
String text)
Set the text at the columnIndex
|
equals, getCell, getCell, getColumnIndex, getStyleRanges, hashCode, isColumnVisible, setStyleRangespublic Rectangle getBounds(int columnIndex)
ViewerRowpublic Rectangle getBounds()
ViewerRowpublic int getColumnCount()
ViewerRowgetColumnCount in class ViewerRowpublic Widget getItem()
ViewerRowpublic Color getBackground(int columnIndex)
ViewerRowgetBackground in class ViewerRowColor or nullpublic Font getFont(int columnIndex)
ViewerRowpublic Color getForeground(int columnIndex)
ViewerRowgetForeground in class ViewerRowColor or nullpublic Image getImage(int columnIndex)
ViewerRowpublic String getText(int columnIndex)
ViewerRowpublic void setBackground(int columnIndex,
Color color)
ViewerRowsetBackground in class ViewerRowpublic void setFont(int columnIndex,
Font font)
ViewerRowFont at the columnIndex.public void setForeground(int columnIndex,
Color color)
ViewerRowsetForeground in class ViewerRowpublic void setImage(int columnIndex,
Image image)
ViewerRowpublic void setText(int columnIndex,
String text)
ViewerRowpublic Control getControl()
ViewerRowgetControl in class ViewerRowControlpublic ViewerRow getNeighbor(int direction, boolean sameLevel)
ViewerRownull if no neighbor exists in
the given direction. If sameLevel is true, only
sibling rows (under the same parent) will be considered.getNeighbor in class ViewerRowdirection - the direction ViewerRow.BELOW or ViewerRow.ABOVEsameLevel - if true, search only within sibling rowsnull if not foundpublic TreePath getTreePath()
ViewerRowgetTreePath in class ViewerRowpublic Object getElement()
getElement in class ViewerRowpublic int getVisualIndex(int creationIndex)
ViewerRow
Because of backwards API compatibility the default implementation
returns the original index. Implementators of ColumnViewer should
overwrite this method if their widget supports reordered columns
getVisualIndex in class ViewerRowcreationIndex - the original indexpublic int getCreationIndex(int visualIndex)
ViewerRow
Because of backwards API compatibility the default implementation
returns the original index. Implementators of ColumnViewer should
overwrite this method if their widget supports reordered columns
getCreationIndex in class ViewerRowvisualIndex - the current index (as shown in the UI)public Rectangle getTextBounds(int index)
ViewerRowgetTextBounds in class ViewerRowindex - the column indexnull
if the underlying widget implementation doesn't provide this
informationpublic Rectangle getImageBounds(int index)
ViewerRowgetImageBounds in class ViewerRowindex - the column indexnull
if the underlying widget implementation doesn't provide this
informationprotected boolean scrollCellIntoView(int columnIndex)
ViewerRow
Because of backwards API compatibility the default implementation is a
no-op. Implementators of ColumnViewer should overwrite this
method if their widget supports reordered columns
scrollCellIntoView in class ViewerRowcolumnIndex - the column indextrue when the cell is scrolled into view
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.