Class GridViewerRow
- java.lang.Object
-
- ViewerRow
-
- org.eclipse.nebula.jface.gridviewer.GridViewerRow
-
public class GridViewerRow extends ViewerRowGridViewerRow is the concrete implementation of the part that represents items in a Grid.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()ColorgetBackground(int columnIndex)RectanglegetBounds()RectanglegetBounds(int columnIndex)intgetColumnCount()ControlgetControl()intgetCreationIndex(int visualIndex)java.lang.ObjectgetElement()FontgetFont(int columnIndex)ColorgetForeground(int columnIndex)ImagegetImage(int columnIndex)WidgetgetItem()ViewerRowgetNeighbor(int direction, boolean sameLevel)java.lang.StringgetText(int columnIndex)TreePathgetTreePath()intgetVisualIndex(int creationIndex)protected booleanisColumnVisible(int columnIndex)Check if the column of the cell is part of is visiblevoidsetBackground(int columnIndex, Color color)voidsetFont(int columnIndex, Font font)voidsetForeground(int columnIndex, Color color)voidsetImage(int columnIndex, Image image)voidsetText(int columnIndex, java.lang.String text)
-
-
-
Method Detail
-
getBounds
public Rectangle getBounds(int columnIndex)
-
getBounds
public Rectangle getBounds()
-
getColumnCount
public int getColumnCount()
-
getBackground
public Color getBackground(int columnIndex)
-
getFont
public Font getFont(int columnIndex)
-
getForeground
public Color getForeground(int columnIndex)
-
getImage
public Image getImage(int columnIndex)
-
getText
public java.lang.String getText(int columnIndex)
-
setBackground
public void setBackground(int columnIndex, Color color)
-
setFont
public void setFont(int columnIndex, Font font)
-
setForeground
public void setForeground(int columnIndex, Color color)
-
setImage
public void setImage(int columnIndex, Image image)
-
setText
public void setText(int columnIndex, java.lang.String text)
-
getControl
public Control getControl()
-
getNeighbor
public ViewerRow getNeighbor(int direction, boolean sameLevel)
-
getTreePath
public TreePath getTreePath()
-
clone
public java.lang.Object clone()
-
getElement
public java.lang.Object getElement()
-
getItem
public Widget getItem()
-
getVisualIndex
public int getVisualIndex(int creationIndex)
-
getCreationIndex
public int getCreationIndex(int visualIndex)
-
isColumnVisible
protected boolean isColumnVisible(int columnIndex)
Check if the column of the cell is part of is visible- Parameters:
columnIndex- the column index- Returns:
trueif the column is visible
-
-