Class SWTGridCell
- java.lang.Object
-
- org.eclipse.emf.ecp.view.model.common.AbstractGridCell<AbstractSWTRenderer<?>>
-
- org.eclipse.emfforms.spi.swt.core.layout.SWTGridCell
-
public class SWTGridCell extends AbstractGridCell<AbstractSWTRenderer<?>>
ASWTGridCell
has a row, a column and a renderer it is rendered by.- Since:
- 1.3
- Author:
- Eugen Neufeld
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecp.view.model.common.AbstractGridCell
AbstractGridCell.Alignment
-
-
Constructor Summary
Constructors Constructor Description SWTGridCell(int row, int column, AbstractSWTRenderer<? extends VElement> renderer)
Default constructor to create a grid cell.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.Point
getPreferredSize()
Returns the preferred size of this cell.void
setPreferredSize(int width, int height)
Sets the preferred size of this cell.void
setPreferredSize(org.eclipse.swt.graphics.Point preferredSize)
Sets the preferred size of this cell.-
Methods inherited from class org.eclipse.emf.ecp.view.model.common.AbstractGridCell
equals, getColumn, getHorizontalAlignment, getHorizontalSpan, getRenderer, getRow, getVerticalAlignment, hashCode, isHorizontalFill, isHorizontalGrab, isVerticalFill, isVerticalGrab, setHorizontalAlignment, setHorizontalFill, setHorizontalGrab, setHorizontalSpan, setRenderer, setVerticalAlignment, setVerticalFill, setVerticalGrab
-
-
-
-
Constructor Detail
-
SWTGridCell
public SWTGridCell(int row, int column, AbstractSWTRenderer<? extends VElement> renderer)
Default constructor to create a grid cell.- Parameters:
row
- the row of the cellcolumn
- the column of the cellrenderer
- theAbstractSWTRenderer
that renders the cell
-
-
Method Detail
-
getPreferredSize
public org.eclipse.swt.graphics.Point getPreferredSize()
Returns the preferred size of this cell. If the preferredSize isnull
(default), the size is computed automatically.- Returns:
- the preferredSize (width, height) or
null
- Since:
- 1.9
-
setPreferredSize
public void setPreferredSize(org.eclipse.swt.graphics.Point preferredSize)
Sets the preferred size of this cell. If set tonull
(default), the size is computed automatically.- Parameters:
preferredSize
- the preferredSize to set (width, height)- Since:
- 1.9
-
setPreferredSize
public void setPreferredSize(int width, int height)
Sets the preferred size of this cell. If set tonull
(default), the size is computed automatically.- Parameters:
width
- the preferred widthheight
- the preferred height- Since:
- 1.9
-
-