Class GridViewerRow
- java.lang.Object
-
- org.eclipse.jface.viewers.ViewerRow
-
- org.eclipse.nebula.jface.gridviewer.GridViewerRow
-
- All Implemented Interfaces:
java.lang.Cloneable
public class GridViewerRow extends org.eclipse.jface.viewers.ViewerRow
GridViewerRow is the concrete implementation of the part that represents items in a Grid.
-
-
Constructor Summary
Constructors Constructor Description GridViewerRow(GridItem item)
Create a new instance of the receiver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
org.eclipse.swt.graphics.Color
getBackground(int columnIndex)
org.eclipse.swt.graphics.Rectangle
getBounds()
org.eclipse.swt.graphics.Rectangle
getBounds(int columnIndex)
int
getColumnCount()
org.eclipse.swt.widgets.Control
getControl()
int
getCreationIndex(int visualIndex)
java.lang.Object
getElement()
org.eclipse.swt.graphics.Font
getFont(int columnIndex)
org.eclipse.swt.graphics.Color
getForeground(int columnIndex)
org.eclipse.swt.graphics.Image
getImage(int columnIndex)
org.eclipse.swt.widgets.Widget
getItem()
org.eclipse.jface.viewers.ViewerRow
getNeighbor(int direction, boolean sameLevel)
private org.eclipse.jface.viewers.ViewerRow
getRowAbove()
private org.eclipse.jface.viewers.ViewerRow
getRowBelow()
java.lang.String
getText(int columnIndex)
org.eclipse.jface.viewers.TreePath
getTreePath()
int
getVisualIndex(int creationIndex)
private boolean
hasColumns()
protected boolean
isColumnVisible(int columnIndex)
Check if the column of the cell is part of is visibleprivate boolean
isValidOrderIndex(int currentIndex)
void
setBackground(int columnIndex, org.eclipse.swt.graphics.Color color)
void
setFont(int columnIndex, org.eclipse.swt.graphics.Font font)
void
setForeground(int columnIndex, org.eclipse.swt.graphics.Color color)
void
setImage(int columnIndex, org.eclipse.swt.graphics.Image image)
(package private) void
setItem(GridItem item)
void
setText(int columnIndex, java.lang.String text)
-
-
-
Field Detail
-
item
private GridItem item
-
-
Constructor Detail
-
GridViewerRow
GridViewerRow(GridItem item)
Create a new instance of the receiver.- Parameters:
item
- GridItem source.
-
-
Method Detail
-
getBounds
public org.eclipse.swt.graphics.Rectangle getBounds(int columnIndex)
- Specified by:
getBounds
in classorg.eclipse.jface.viewers.ViewerRow
-
getBounds
public org.eclipse.swt.graphics.Rectangle getBounds()
- Specified by:
getBounds
in classorg.eclipse.jface.viewers.ViewerRow
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in classorg.eclipse.jface.viewers.ViewerRow
-
getBackground
public org.eclipse.swt.graphics.Color getBackground(int columnIndex)
- Specified by:
getBackground
in classorg.eclipse.jface.viewers.ViewerRow
-
getFont
public org.eclipse.swt.graphics.Font getFont(int columnIndex)
- Specified by:
getFont
in classorg.eclipse.jface.viewers.ViewerRow
-
getForeground
public org.eclipse.swt.graphics.Color getForeground(int columnIndex)
- Specified by:
getForeground
in classorg.eclipse.jface.viewers.ViewerRow
-
getImage
public org.eclipse.swt.graphics.Image getImage(int columnIndex)
- Specified by:
getImage
in classorg.eclipse.jface.viewers.ViewerRow
-
getText
public java.lang.String getText(int columnIndex)
- Specified by:
getText
in classorg.eclipse.jface.viewers.ViewerRow
-
setBackground
public void setBackground(int columnIndex, org.eclipse.swt.graphics.Color color)
- Specified by:
setBackground
in classorg.eclipse.jface.viewers.ViewerRow
-
setFont
public void setFont(int columnIndex, org.eclipse.swt.graphics.Font font)
- Specified by:
setFont
in classorg.eclipse.jface.viewers.ViewerRow
-
setForeground
public void setForeground(int columnIndex, org.eclipse.swt.graphics.Color color)
- Specified by:
setForeground
in classorg.eclipse.jface.viewers.ViewerRow
-
setImage
public void setImage(int columnIndex, org.eclipse.swt.graphics.Image image)
- Specified by:
setImage
in classorg.eclipse.jface.viewers.ViewerRow
-
setText
public void setText(int columnIndex, java.lang.String text)
- Specified by:
setText
in classorg.eclipse.jface.viewers.ViewerRow
-
getControl
public org.eclipse.swt.widgets.Control getControl()
- Specified by:
getControl
in classorg.eclipse.jface.viewers.ViewerRow
-
getNeighbor
public org.eclipse.jface.viewers.ViewerRow getNeighbor(int direction, boolean sameLevel)
- Specified by:
getNeighbor
in classorg.eclipse.jface.viewers.ViewerRow
-
getRowAbove
private org.eclipse.jface.viewers.ViewerRow getRowAbove()
-
getRowBelow
private org.eclipse.jface.viewers.ViewerRow getRowBelow()
-
getTreePath
public org.eclipse.jface.viewers.TreePath getTreePath()
- Specified by:
getTreePath
in classorg.eclipse.jface.viewers.ViewerRow
-
clone
public java.lang.Object clone()
- Specified by:
clone
in classorg.eclipse.jface.viewers.ViewerRow
-
getElement
public java.lang.Object getElement()
- Specified by:
getElement
in classorg.eclipse.jface.viewers.ViewerRow
-
setItem
void setItem(GridItem item)
-
getItem
public org.eclipse.swt.widgets.Widget getItem()
- Specified by:
getItem
in classorg.eclipse.jface.viewers.ViewerRow
-
getVisualIndex
public int getVisualIndex(int creationIndex)
- Overrides:
getVisualIndex
in classorg.eclipse.jface.viewers.ViewerRow
-
getCreationIndex
public int getCreationIndex(int visualIndex)
- Overrides:
getCreationIndex
in classorg.eclipse.jface.viewers.ViewerRow
-
hasColumns
private boolean hasColumns()
-
isValidOrderIndex
private boolean isValidOrderIndex(int currentIndex)
-
isColumnVisible
protected boolean isColumnVisible(int columnIndex)
Check if the column of the cell is part of is visible- Overrides:
isColumnVisible
in classorg.eclipse.jface.viewers.ViewerRow
- Parameters:
columnIndex
- the column index- Returns:
true
if the column is visible
-
-