|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.view.model.common.AbstractGridCell<RENDERER>
RENDERER
- the renderer type (e.g. SWT or JavaFX renderer)public abstract class AbstractGridCell<RENDERER extends AbstractRenderer<?>>
A AbstractGridCell
has a row, a column and a renderer it is rendered by a renderer.
Constructor Summary | |
---|---|
AbstractGridCell(int row,
int column,
RENDERER renderer)
Default constructor to create a grid cell. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getColumn()
The id of the column. |
int |
getHorizontalSpan()
Return the horizontalSpan of this control. |
RENDERER |
getRenderer()
|
int |
getRow()
The id of the row. |
int |
hashCode()
|
boolean |
isHorizontalFill()
Returns whether the control should fill the available horizontal space. |
boolean |
isHorizontalGrab()
Returns whether this cell will take all available horizontal space. |
boolean |
isVerticalFill()
Returns whether the control should fill the available vertical space. |
boolean |
isVerticalGrab()
Returns whether this cell will take all available vertical space. |
void |
setHorizontalFill(boolean horizontalFill)
True if the available horizontal space should be filled. |
void |
setHorizontalGrab(boolean horizontalGrab)
True if all available horizontal space should be taken. |
void |
setHorizontalSpan(int horizontalSpan)
Set the horizontal span of this cell. |
void |
setRenderer(RENDERER renderer)
|
void |
setVerticalFill(boolean verticalFill)
True if the available vertical space should be filled. |
void |
setVerticalGrab(boolean verticalGrab)
True if all available vertical space should be taken. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractGridCell(int row, int column, RENDERER renderer)
row
- the row of the cellcolumn
- the column of the cellrenderer
- the AbstractRenderer
that renderes the cellMethod Detail |
---|
public int getRow()
public int getColumn()
public RENDERER getRenderer()
public void setRenderer(RENDERER renderer)
renderer
- the renderer to setpublic int getHorizontalSpan()
public void setHorizontalSpan(int horizontalSpan)
horizontalSpan
- the horizontalSpan to setpublic boolean isVerticalGrab()
public void setVerticalGrab(boolean verticalGrab)
verticalGrab
- the verticalGrab to setpublic boolean isVerticalFill()
public void setVerticalFill(boolean verticalFill)
verticalFill
- the verticalFill to setpublic boolean isHorizontalGrab()
public void setHorizontalGrab(boolean horizontalGrab)
horizontalGrab
- the horizontalGrab to setpublic boolean isHorizontalFill()
public void setHorizontalFill(boolean horizontalFill)
horizontalFill
- the horizontalFill to setpublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |