|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.viewers.ViewerRow
org.eclipse.jface.viewers.TreeViewerRow
public class TreeViewerRow
TreeViewerRow is the Tree implementation of ViewerRow.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.viewers.ViewerRow |
|---|
ABOVE, BELOW |
| Method Summary | |
|---|---|
java.lang.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. |
java.lang.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. |
java.lang.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,
java.lang.String text)
Set the text at the columnIndex |
| Methods inherited from class org.eclipse.jface.viewers.ViewerRow |
|---|
equals, getCell, getCell, getColumnIndex, getStyleRanges, hashCode, isColumnVisible, setStyleRanges |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Rectangle getBounds(int columnIndex)
ViewerRow
getBounds in class ViewerRowRectanglepublic Rectangle getBounds()
ViewerRow
getBounds in class ViewerRowRectanglepublic int getColumnCount()
ViewerRow
getColumnCount in class ViewerRowpublic Widget getItem()
ViewerRow
getItem in class ViewerRowWidgetpublic Color getBackground(int columnIndex)
ViewerRow
getBackground in class ViewerRowColor or nullpublic Font getFont(int columnIndex)
ViewerRow
getFont in class ViewerRowFont or nullpublic Color getForeground(int columnIndex)
ViewerRow
getForeground in class ViewerRowColor or nullpublic Image getImage(int columnIndex)
ViewerRow
getImage in class ViewerRowImage or nullpublic java.lang.String getText(int columnIndex)
ViewerRow
getText in class ViewerRowString
public void setBackground(int columnIndex,
Color color)
ViewerRow
setBackground in class ViewerRow
public void setFont(int columnIndex,
Font font)
ViewerRowFont at the columnIndex.
setFont in class ViewerRow
public void setForeground(int columnIndex,
Color color)
ViewerRow
setForeground in class ViewerRow
public void setImage(int columnIndex,
Image image)
ViewerRow
setImage in class ViewerRow
public void setText(int columnIndex,
java.lang.String text)
ViewerRow
setText in class ViewerRowpublic Control getControl()
ViewerRow
getControl in class ViewerRowControl
public 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 rows
null if not foundpublic TreePath getTreePath()
ViewerRow
getTreePath in class ViewerRowpublic java.lang.Object clone()
clone in class ViewerRowpublic java.lang.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 index
public 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)
ViewerRow
getTextBounds in class ViewerRowindex - the column index
null
if the underlying widget implementation doesn't provide this
informationpublic Rectangle getImageBounds(int index)
ViewerRow
getImageBounds in class ViewerRowindex - the column index
null
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 index
true when the cell is scrolled into view
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.