Module MaterialFX

Interface MFXLabeled

All Known Implementing Classes:
MFXCheckbox, MFXRadioButton, MFXToggleButton

public interface MFXLabeled
Interface that specifies all the features MaterialFX controls with a text must have.
  • Property Details

  • 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.
      See Also:
    • setContentDisposition

      void setContentDisposition(ContentDisplay contentDisposition)
      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

      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) use Labeled.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) use Labeled.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) use Labeled.alignmentProperty() to position the text.