|
Eclipse Platform Release 3.3 |
|||||||||||
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
TreeViewerRow is the Tree implementation of ViewerRow.
Field Summary |
---|
Fields inherited from class org.eclipse.jface.viewers.ViewerRow |
---|
ABOVE, BELOW |
Method Summary | |
---|---|
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. |
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. |
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. |
TreePath |
getTreePath()
The tree path used to identify an element by the unique path |
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 |
Methods inherited from class org.eclipse.jface.viewers.ViewerRow |
---|
equals, getCell, getCell, getColumnIndex, hashCode |
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 ViewerRow
columnIndex
-
Rectangle
public Rectangle getBounds()
ViewerRow
getBounds
in class ViewerRow
Rectangle
public int getColumnCount()
ViewerRow
getColumnCount
in class ViewerRow
public Widget getItem()
ViewerRow
getItem
in class ViewerRow
Widget
public Color getBackground(int columnIndex)
ViewerRow
getBackground
in class ViewerRow
columnIndex
-
Color
or null
public Font getFont(int columnIndex)
ViewerRow
getFont
in class ViewerRow
columnIndex
-
Font
or null
public Color getForeground(int columnIndex)
ViewerRow
getForeground
in class ViewerRow
columnIndex
-
Color
or null
public Image getImage(int columnIndex)
ViewerRow
getImage
in class ViewerRow
columnIndex
-
Image
or null
public String getText(int columnIndex)
ViewerRow
getText
in class ViewerRow
columnIndex
-
String
public void setBackground(int columnIndex, Color color)
ViewerRow
setBackground
in class ViewerRow
columnIndex
- color
- public void setFont(int columnIndex, Font font)
ViewerRow
Font
at the columnIndex.
setFont
in class ViewerRow
columnIndex
- font
- public void setForeground(int columnIndex, Color color)
ViewerRow
setForeground
in class ViewerRow
columnIndex
- color
- public void setImage(int columnIndex, Image image)
ViewerRow
setImage
in class ViewerRow
columnIndex
- image
- public void setText(int columnIndex, String text)
ViewerRow
setText
in class ViewerRow
columnIndex
- text
- 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 rows
null
if not foundpublic TreePath getTreePath()
ViewerRow
getTreePath
in class ViewerRow
public Object clone()
clone
in class ViewerRow
public Object getElement()
getElement
in class ViewerRow
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.