Module MaterialFX

Class MFXCircleToggleNode

All Implemented Interfaces:
Styleable, EventTarget, Skinnable, Toggle

public class MFXCircleToggleNode extends AbstractMFXToggleNode
This is the implementation of a ToggleButton with a completely different skin, MFXCircleToggleNodeSkin.

Extends ToggleButton and redefines the style class to "mfx-toggle-node" for usage in CSS.

Allows to specify up to three icons: one icon for the toggle, and tho other two for the toggle's label.

  • Property Details

  • Constructor Details

    • MFXCircleToggleNode

      public MFXCircleToggleNode()
    • MFXCircleToggleNode

      public MFXCircleToggleNode(String text)
    • MFXCircleToggleNode

      public MFXCircleToggleNode(String text, Node icon)
    • MFXCircleToggleNode

      public MFXCircleToggleNode(String text, Node icon, Node leadingIcon, Node trailingIcon)
  • Method Details

    • getGap

      public double getGap()
      Gets the value of the property gap.
      Property description:
      Specifies the gap between the toggle and its text.
    • gapProperty

      public StyleableDoubleProperty gapProperty()
      Specifies the gap between the toggle and its text.
      See Also:
    • setGap

      public void setGap(double gap)
      Sets the value of the property gap.
      Property description:
      Specifies the gap between the toggle and its text.
    • getSize

      public double getSize()
      Gets the value of the property size.
      Property description:
      Specifies the toggle's radius.
    • sizeProperty

      public StyleableDoubleProperty sizeProperty()
      Specifies the toggle's radius.
      See Also:
    • setSize

      public void setSize(double size)
      Sets the value of the property size.
      Property description:
      Specifies the toggle's radius.
    • getTextPosition

      public TextPosition getTextPosition()
      Gets the value of the property textPosition.
      Property description:
      Specifies the position of the label, above or underneath the toggle's circle.
    • textPositionProperty

      public StyleableObjectProperty<TextPosition> textPositionProperty()
      Specifies the position of the label, above or underneath the toggle's circle.
      See Also:
    • setTextPosition

      public void setTextPosition(TextPosition textPosition)
      Sets the value of the property textPosition.
      Property description:
      Specifies the position of the label, above or underneath the toggle's circle.
    • getControlCssMetaDataList

      public static List<CssMetaData<? extends Styleable,?>> getControlCssMetaDataList()
    • createDefaultSkin

      protected Skin<?> createDefaultSkin()
      Overrides:
      createDefaultSkin in class ToggleButton
    • getControlCssMetaData

      public List<CssMetaData<? extends Styleable,?>> getControlCssMetaData()
      Overrides:
      getControlCssMetaData in class Labeled
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      Overrides:
      getUserAgentStylesheet in class Region