public class GridData
extends java.lang.Object
| Type | Property and Description |
|---|---|
javafx.beans.property.BooleanProperty |
exclude |
javafx.beans.property.BooleanProperty |
grabExcessHorizontalSpace |
javafx.beans.property.BooleanProperty |
grabExcessVerticalSpace |
javafx.beans.property.IntegerProperty |
heightHint |
javafx.beans.property.ObjectProperty<GridData.Alignment> |
horizontalAlignment |
javafx.beans.property.IntegerProperty |
horizontalIndent |
javafx.beans.property.IntegerProperty |
horizontalSpan |
javafx.beans.property.IntegerProperty |
minimumHeight |
javafx.beans.property.IntegerProperty |
minimumWidth |
javafx.beans.property.ObjectProperty<GridData.Alignment> |
verticalAlignment |
javafx.beans.property.IntegerProperty |
verticalIndent |
javafx.beans.property.IntegerProperty |
verticalSpan |
javafx.beans.property.IntegerProperty |
widthHint |
| Modifier and Type | Class and Description |
|---|---|
static class |
GridData.Alignment
The alignment of the item in the cell
|
| Modifier and Type | Field and Description |
|---|---|
static int |
FILL_BOTH
Style bit for
new GridData(int) to resize the control to
fill the cell horizontally and vertically and to fit the remaining
horizontal and vertical space. |
static int |
FILL_HORIZONTAL
Style bit for
new GridData(int) to resize the control to
fill the cell horizontally and to fit the remaining horizontal space. |
static int |
FILL_VERTICAL
Style bit for
new GridData(int) to resize the control to
fill the cell vertically and to fit the remaining vertical space. |
static int |
GRAB_HORIZONTAL
Style bit for
new GridData(int) to resize the control to fit
the remaining horizontal space. |
static int |
GRAB_VERTICAL
Style bit for
new GridData(int) to resize the control to fit
the remaining vertical space. |
static int |
HORIZONTAL_ALIGN_BEGINNING
Style bit for
new GridData(int) to position the control at
the left of the cell. |
static int |
HORIZONTAL_ALIGN_CENTER
Style bit for
new GridData(int) to position the control in
the horizontal center of the cell. |
static int |
HORIZONTAL_ALIGN_END
Style bit for
new GridData(int) to position the control at
the right of the cell. |
static int |
HORIZONTAL_ALIGN_FILL
Style bit for
new GridData(int) to resize the control to
fill the cell horizontally. |
static int |
VERTICAL_ALIGN_BEGINNING
Style bit for
new GridData(int). |
static int |
VERTICAL_ALIGN_CENTER
Style bit for
new GridData(int) to position the control in
the vertical center of the cell. |
static int |
VERTICAL_ALIGN_END
Style bit for
new GridData(int) to position the control at
the bottom of the cell. |
static int |
VERTICAL_ALIGN_FILL
Style bit for
new GridData(int) to resize the control to
fill the cell vertically. |
| Constructor and Description |
|---|
GridData()
Constructs a new instance of GridData using default values.
|
GridData(GridData.Alignment horizontalAlignment,
GridData.Alignment verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace)
Constructs a new instance of GridData according to the parameters.
|
GridData(GridData.Alignment horizontalAlignment,
GridData.Alignment verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace,
int horizontalSpan,
int verticalSpan)
Constructs a new instance of GridData according to the parameters.
|
GridData(int style)
Constructs a new instance based on the GridData style.
|
GridData(int width,
int height)
Constructs a new instance of GridData according to the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.BooleanProperty |
excludeProperty() |
int |
getHeightHint() |
GridData.Alignment |
getHorizontalAlignment() |
int |
getHorizontalIndent() |
int |
getHorizontalSpan() |
int |
getMinimumHeight() |
int |
getMinimumWidth() |
GridData.Alignment |
getVerticalAlignment() |
int |
getVerticalIndent() |
int |
getVerticalSpan() |
int |
getWidthHint() |
javafx.beans.property.BooleanProperty |
grabExcessHorizontalSpaceProperty() |
javafx.beans.property.BooleanProperty |
grabExcessVerticalSpaceProperty() |
javafx.beans.property.IntegerProperty |
heightHintProperty() |
javafx.beans.property.ObjectProperty<GridData.Alignment> |
horizontalAlignmentProperty() |
javafx.beans.property.IntegerProperty |
horizontalIndentProperty() |
javafx.beans.property.IntegerProperty |
horizontalSpanProperty() |
boolean |
isExclude() |
boolean |
isGrabExcessHorizontalSpace() |
boolean |
isGrabExcessVerticalSpace() |
javafx.beans.property.IntegerProperty |
minimumHeightProperty() |
javafx.beans.property.IntegerProperty |
minimumWidthProperty() |
void |
setExclude(boolean value)
Exclude the node when layouting
|
void |
setGrabExcessHorizontalSpace(boolean value)
Grab all available horizontal space
|
void |
setGrabExcessVerticalSpace(boolean value)
Grab vertical space if available
|
void |
setHeightHint(int value)
Set a height hint
|
void |
setHorizontalAlignment(GridData.Alignment value)
Set a horizontal alignment
|
void |
setHorizontalIndent(int value)
Set the horizontal indent
|
void |
setHorizontalSpan(int value)
Set a horizontal span
|
void |
setMinimumHeight(int value)
Set a minimum height
|
void |
setMinimumWidth(int value)
Set a minimum width
|
void |
setVerticalAlignment(GridData.Alignment value)
Set a vertical alignment
|
void |
setVerticalIndent(int value)
Set a vertical indent
|
void |
setVerticalSpan(int value)
Set the vertical span
|
void |
setWidthHint(int value)
Set the width hint
|
java.lang.String |
toString()
Returns a string containing a concise, human-readable description of the
receiver.
|
javafx.beans.property.ObjectProperty<GridData.Alignment> |
verticalAlignmentProperty() |
javafx.beans.property.IntegerProperty |
verticalIndentProperty() |
javafx.beans.property.IntegerProperty |
verticalSpanProperty() |
javafx.beans.property.IntegerProperty |
widthHintProperty() |
public javafx.beans.property.BooleanProperty excludeProperty
isExclude(),
setExclude(boolean)public javafx.beans.property.BooleanProperty grabExcessHorizontalSpaceProperty
public javafx.beans.property.BooleanProperty grabExcessVerticalSpaceProperty
public javafx.beans.property.IntegerProperty heightHintProperty
getHeightHint(),
setHeightHint(int)public javafx.beans.property.ObjectProperty<GridData.Alignment> horizontalAlignmentProperty
public javafx.beans.property.IntegerProperty horizontalIndentProperty
getHorizontalIndent(),
setHorizontalIndent(int)public javafx.beans.property.IntegerProperty horizontalSpanProperty
getHorizontalSpan(),
setHorizontalSpan(int)public javafx.beans.property.IntegerProperty minimumHeightProperty
getMinimumHeight(),
setMinimumHeight(int)public javafx.beans.property.IntegerProperty minimumWidthProperty
getMinimumWidth(),
setMinimumWidth(int)public javafx.beans.property.ObjectProperty<GridData.Alignment> verticalAlignmentProperty
public javafx.beans.property.IntegerProperty verticalIndentProperty
getVerticalIndent(),
setVerticalIndent(int)public javafx.beans.property.IntegerProperty verticalSpanProperty
getVerticalSpan(),
setVerticalSpan(int)public javafx.beans.property.IntegerProperty widthHintProperty
getWidthHint(),
setWidthHint(int)public static final int VERTICAL_ALIGN_BEGINNING
new GridData(int). Position the control at the
top of the cell. Not recommended. Use
new GridData(int, SWT.BEGINNING, boolean, boolean) instead.public static final int VERTICAL_ALIGN_CENTER
new GridData(int) to position the control in
the vertical center of the cell. Not recommended. Use
new GridData(int, SWT.CENTER, boolean, boolean) instead.public static final int VERTICAL_ALIGN_END
new GridData(int) to position the control at
the bottom of the cell. Not recommended. Use
new GridData(int, SWT.END, boolean, boolean) instead.public static final int VERTICAL_ALIGN_FILL
new GridData(int) to resize the control to
fill the cell vertically. Not recommended. Use
new GridData(int, SWT.FILL, boolean, boolean) insteadpublic static final int HORIZONTAL_ALIGN_BEGINNING
new GridData(int) to position the control at
the left of the cell. Not recommended. Use
new GridData(SWT.BEGINNING, int, boolean, boolean) instead.public static final int HORIZONTAL_ALIGN_CENTER
new GridData(int) to position the control in
the horizontal center of the cell. Not recommended. Use
new GridData(SWT.CENTER, int, boolean, boolean) instead.public static final int HORIZONTAL_ALIGN_END
new GridData(int) to position the control at
the right of the cell. Not recommended. Use
new GridData(SWT.END, int, boolean, boolean) instead.public static final int HORIZONTAL_ALIGN_FILL
new GridData(int) to resize the control to
fill the cell horizontally. Not recommended. Use
new GridData(SWT.FILL, int, boolean, boolean) instead.public static final int GRAB_HORIZONTAL
new GridData(int) to resize the control to fit
the remaining horizontal space. Not recommended. Use
new GridData(int, int, true, boolean) instead.public static final int GRAB_VERTICAL
new GridData(int) to resize the control to fit
the remaining vertical space. Not recommended. Use
new GridData(int, int, boolean, true) instead.public static final int FILL_VERTICAL
new GridData(int) to resize the control to
fill the cell vertically and to fit the remaining vertical space.
FILL_VERTICAL = VERTICAL_ALIGN_FILL | GRAB_VERTICAL Not recommended. Use
new GridData(int, SWT.FILL, boolean, true) instead.public static final int FILL_HORIZONTAL
new GridData(int) to resize the control to
fill the cell horizontally and to fit the remaining horizontal space.
FILL_HORIZONTAL = HORIZONTAL_ALIGN_FILL | GRAB_HORIZONTAL Not
recommended. Use new GridData(SWT.FILL, int, true, boolean)
instead.public static final int FILL_BOTH
new GridData(int) to resize the control to
fill the cell horizontally and vertically and to fit the remaining
horizontal and vertical space. FILL_BOTH = FILL_VERTICAL |
FILL_HORIZONTAL Not recommended. Use
new GridData(SWT.FILL, SWT.FILL, true, true) instead.public GridData()
public GridData(int style)
style - the GridData stylepublic GridData(GridData.Alignment horizontalAlignment, GridData.Alignment verticalAlignment, boolean grabExcessHorizontalSpace, boolean grabExcessVerticalSpace)
horizontalAlignment - how control will be positioned horizontally within a cell, one
of: SWT.BEGINNING (or SWT.LEFT), SWT.CENTER, SWT.END (or
SWT.RIGHT), or SWT.FILLverticalAlignment - how control will be positioned vertically within a cell, one
of: SWT.BEGINNING (or SWT.TOP), SWT.CENTER, SWT.END (or
SWT.BOTTOM), or SWT.FILLgrabExcessHorizontalSpace - whether cell will be made wide enough to fit the remaining
horizontal spacegrabExcessVerticalSpace - whether cell will be made high enough to fit the remaining
vertical spacepublic GridData(GridData.Alignment horizontalAlignment, GridData.Alignment verticalAlignment, boolean grabExcessHorizontalSpace, boolean grabExcessVerticalSpace, int horizontalSpan, int verticalSpan)
horizontalAlignment - how control will be positioned horizontally within a cell, one
of: SWT.BEGINNING (or SWT.LEFT), SWT.CENTER, SWT.END (or
SWT.RIGHT), or SWT.FILLverticalAlignment - how control will be positioned vertically within a cell, one
of: SWT.BEGINNING (or SWT.TOP), SWT.CENTER, SWT.END (or
SWT.BOTTOM), or SWT.FILLgrabExcessHorizontalSpace - whether cell will be made wide enough to fit the remaining
horizontal spacegrabExcessVerticalSpace - whether cell will be made high enough to fit the remaining
vertical spacehorizontalSpan - the number of column cells that the control will take upverticalSpan - the number of row cells that the control will take uppublic GridData(int width,
int height)
width - a minimum width for the columnheight - a minimum height for the rowpublic void setExclude(boolean value)
value - the new valuepublic boolean isExclude()
public javafx.beans.property.BooleanProperty excludeProperty()
isExclude(),
setExclude(boolean)public void setGrabExcessHorizontalSpace(boolean value)
value - true to grab spacepublic boolean isGrabExcessHorizontalSpace()
true if space is grabbedpublic javafx.beans.property.BooleanProperty grabExcessHorizontalSpaceProperty()
public void setGrabExcessVerticalSpace(boolean value)
value - true to grab spacepublic boolean isGrabExcessVerticalSpace()
true is space is grabbedpublic javafx.beans.property.BooleanProperty grabExcessVerticalSpaceProperty()
public void setHeightHint(int value)
value - the hint of or AbstractLayoutPane.FX_DEFAULT to set
backpublic int getHeightHint()
public javafx.beans.property.IntegerProperty heightHintProperty()
getHeightHint(),
setHeightHint(int)public void setHorizontalAlignment(GridData.Alignment value)
value - the alignmentpublic GridData.Alignment getHorizontalAlignment()
public javafx.beans.property.ObjectProperty<GridData.Alignment> horizontalAlignmentProperty()
public void setHorizontalIndent(int value)
value - the indentpublic int getHorizontalIndent()
public javafx.beans.property.IntegerProperty horizontalIndentProperty()
getHorizontalIndent(),
setHorizontalIndent(int)public void setHorizontalSpan(int value)
value - the horizontal spanpublic int getHorizontalSpan()
public javafx.beans.property.IntegerProperty horizontalSpanProperty()
getHorizontalSpan(),
setHorizontalSpan(int)public void setMinimumHeight(int value)
value - the value or AbstractLayoutPane.FX_DEFAULT for the
defaultpublic int getMinimumHeight()
public javafx.beans.property.IntegerProperty minimumHeightProperty()
getMinimumHeight(),
setMinimumHeight(int)public void setMinimumWidth(int value)
value - the new minimum width or AbstractLayoutPane.FX_DEFAULT
for the defaultpublic int getMinimumWidth()
public javafx.beans.property.IntegerProperty minimumWidthProperty()
getMinimumWidth(),
setMinimumWidth(int)public void setVerticalAlignment(GridData.Alignment value)
value - the new alignmentpublic GridData.Alignment getVerticalAlignment()
public javafx.beans.property.ObjectProperty<GridData.Alignment> verticalAlignmentProperty()
public void setVerticalIndent(int value)
value - the indentpublic int getVerticalIndent()
public javafx.beans.property.IntegerProperty verticalIndentProperty()
getVerticalIndent(),
setVerticalIndent(int)public void setVerticalSpan(int value)
value - the new vertical spanpublic int getVerticalSpan()
public javafx.beans.property.IntegerProperty verticalSpanProperty()
getVerticalSpan(),
setVerticalSpan(int)public void setWidthHint(int value)
value - the width hint or AbstractLayoutPane.FX_DEFAULTpublic int getWidthHint()
public javafx.beans.property.IntegerProperty widthHintProperty()
getWidthHint(),
setWidthHint(int)public java.lang.String toString()
toString in class java.lang.Object