- All Known Implementing Classes:
MFXCheckbox,MFXRadioButton,MFXToggleButton
-
Property Summary
PropertiesTypePropertyDescriptionSpecifies how the control is positioned relative to its text.Specifies the spacing between the control and its text.When setting a specific size for the control (by using setPrefSize for example, and this is true for SceneBuilder too), this flag will tell the control's label to take all the space available. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies how the control is positioned relative to its text.Specifies the spacing between the control and its text.Gets the value of the property contentDisposition.doublegetGap()Gets the value of the property gap.booleanGets the value of the property textExpand.voidsetContentDisposition(ContentDisplay contentDisposition) Sets the value of the property contentDisposition.voidsetGap(double gap) Sets the value of the property gap.voidsetTextExpand(boolean textExpand) Sets the value of the property textExpand.When setting a specific size for the control (by using setPrefSize for example, and this is true for SceneBuilder too), this flag will tell the control's label to take all the space available.
-
Property Details
-
contentDisposition
StyleableObjectProperty<ContentDisplay> contentDispositionPropertySpecifies how the control is positioned relative to its text. -
gap
StyleableDoubleProperty gapPropertySpecifies the spacing between the control and its text.- See Also:
-
textExpand
StyleableBooleanProperty textExpandPropertyWhen setting a specific size for the control (by using setPrefSize for example, and this is true for SceneBuilder too), this flag will tell the control's label to take all the space available.This allows, in combination with the
contentDispositionProperty(), to layout the control's content in many interesting ways. When the text is expanded (this property is true) useLabeled.alignmentProperty()to position the text.- See Also:
-
-
Method Details
-
getContentDisposition
ContentDisplay getContentDisposition()Gets the value of the property contentDisposition.- Property description:
- Specifies how the control is positioned relative to its text.
-
contentDispositionProperty
StyleableObjectProperty<ContentDisplay> contentDispositionProperty()Specifies how the control is positioned relative to its text. -
setContentDisposition
Sets the value of the property contentDisposition.- Property description:
- Specifies how the control is positioned relative to its text.
-
getGap
double getGap()Gets the value of the property gap.- Property description:
- Specifies the spacing between the control and its text.
-
gapProperty
StyleableDoubleProperty gapProperty()Specifies the spacing between the control and its text.- See Also:
-
setGap
void setGap(double gap) Sets the value of the property gap.- Property description:
- Specifies the spacing between the control and its text.
-
isTextExpand
boolean isTextExpand()Gets the value of the property textExpand.- Property description:
- When setting a specific size for the control (by using setPrefSize for example, and this
is true for SceneBuilder too), this flag will tell the control's label to take all the
space available.
This allows, in combination with the
contentDispositionProperty(), to layout the control's content in many interesting ways. When the text is expanded (this property is true) useLabeled.alignmentProperty()to position the text.
-
textExpandProperty
StyleableBooleanProperty textExpandProperty()When setting a specific size for the control (by using setPrefSize for example, and this is true for SceneBuilder too), this flag will tell the control's label to take all the space available.This allows, in combination with the
contentDispositionProperty(), to layout the control's content in many interesting ways. When the text is expanded (this property is true) useLabeled.alignmentProperty()to position the text.- See Also:
-
setTextExpand
void setTextExpand(boolean textExpand) Sets the value of the property textExpand.- Property description:
- When setting a specific size for the control (by using setPrefSize for example, and this
is true for SceneBuilder too), this flag will tell the control's label to take all the
space available.
This allows, in combination with the
contentDispositionProperty(), to layout the control's content in many interesting ways. When the text is expanded (this property is true) useLabeled.alignmentProperty()to position the text.
-