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, setStyleRanges
public Rectangle getBounds(int columnIndex)
ViewerRow
public Rectangle getBounds()
ViewerRow
public int getColumnCount()
ViewerRow
getColumnCount
in class ViewerRow
public Widget getItem()
ViewerRow
public Color getBackground(int columnIndex)
ViewerRow
getBackground
in class ViewerRow
Color
or null
public Font getFont(int columnIndex)
ViewerRow
public Color getForeground(int columnIndex)
ViewerRow
getForeground
in class ViewerRow
Color
or null
public Image getImage(int columnIndex)
ViewerRow
public String getText(int columnIndex)
ViewerRow
public void setBackground(int columnIndex, Color color)
ViewerRow
setBackground
in class ViewerRow
public void setFont(int columnIndex, Font font)
ViewerRow
Font
at the columnIndex.public void setForeground(int columnIndex, Color color)
ViewerRow
setForeground
in class ViewerRow
public void setImage(int columnIndex, Image image)
ViewerRow
public void setText(int columnIndex, String text)
ViewerRow
public Control getControl()
ViewerRow
getControl
in class ViewerRow
Control
public ViewerRow getNeighbor(int direction, boolean sameLevel)
ViewerRow
null
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 ViewerRow
direction
- the direction ViewerRow.BELOW
or ViewerRow.ABOVE
sameLevel
- if true
, search only within sibling rowsnull
if not foundpublic TreePath getTreePath()
ViewerRow
getTreePath
in class ViewerRow
public Object getElement()
getElement
in class ViewerRow
public 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 ViewerRow
creationIndex
- 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 ViewerRow
visualIndex
- the current index (as shown in the UI)public Rectangle getTextBounds(int index)
ViewerRow
getTextBounds
in class ViewerRow
index
- the column indexnull
if the underlying widget implementation doesn't provide this
informationpublic Rectangle getImageBounds(int index)
ViewerRow
getImageBounds
in class ViewerRow
index
- 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 ViewerRow
columnIndex
- the column indextrue
when the cell is scrolled into view
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.