RENDERER
- the renderer type (e.g. SWT or JavaFX renderer)public abstract class AbstractGridCell<RENDERER extends AbstractRenderer<?>> extends Object
AbstractGridCell
has a row, a column and a renderer it is rendered by a renderer.Modifier and Type | Class and Description |
---|---|
static class |
AbstractGridCell.Alignment
Either horizontal or vertical alignment within the cell.
|
Constructor and Description |
---|
AbstractGridCell(int row,
int column,
RENDERER renderer)
Default constructor to create a grid cell.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getColumn()
The id of the column.
|
AbstractGridCell.Alignment |
getHorizontalAlignment()
Returns the horizontal alignment of the control that is used if horizontal fill is set to false.
|
int |
getHorizontalSpan()
Return the horizontalSpan of this control.
|
RENDERER |
getRenderer() |
int |
getRow()
The id of the row.
|
AbstractGridCell.Alignment |
getVerticalAlignment()
Returns the vertical alignment of the control that is used if vertical fill is set to false.
|
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 |
setHorizontalAlignment(AbstractGridCell.Alignment horizontalAlignment)
Set the horizontal alignment.
|
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 |
setVerticalAlignment(AbstractGridCell.Alignment verticalAlignment)
Set the vertical alignment.
|
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.
|
public AbstractGridCell(int row, int column, RENDERER renderer)
row
- the row of the cellcolumn
- the column of the cellrenderer
- the AbstractRenderer
that renderes the cellpublic 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 AbstractGridCell.Alignment getHorizontalAlignment()
AbstractGridCell.Alignment.BEGINNING
.public void setHorizontalAlignment(AbstractGridCell.Alignment horizontalAlignment)
horizontalAlignment
- the horizontalAlignment to setpublic AbstractGridCell.Alignment getVerticalAlignment()
AbstractGridCell.Alignment.CENTER
.public void setVerticalAlignment(AbstractGridCell.Alignment verticalAlignment)
verticalAlignment
- the verticalAlignment to setpublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2019. All rights reserved.