Class RadioButton

All Implemented Interfaces:
LayoutMeasurable, LayoutMeasurableMixin, HasAlignmentProperty, HasBackgroundProperty, HasBlendModeProperty, HasBorderProperty, HasClipProperty, HasEffectProperty, HasFontProperty, HasGraphicProperty, HasHeightProperty, HasImageUrlProperty, HasLayoutXProperty, HasLayoutYProperty, HasManagedProperty, HasMaxHeightProperty, HasMaxWidthProperty, HasMinHeightProperty, HasMinWidthProperty, HasMouseTransparentProperty, HasOnMouseClickedProperty, HasOpacityProperty, HasPaddingProperty, HasParentProperty, HasPrefHeightProperty, HasPrefWidthProperty, HasSnapToPixelProperty, HasTextAlignmentProperty, HasTextFillProperty, HasTextProperty, HasVisibleProperty, HasWidthProperty, Styleable, EventTarget, Skinnable, Toggle, INode, PreferenceResizableNode

public class RadioButton extends ToggleButton
Author:
Bruno Salmon
  • Constructor Details

    • RadioButton

      public RadioButton()
    • RadioButton

      public RadioButton(String text)
    • RadioButton

      public RadioButton(String text, Node graphic)
  • Method Details

    • initialize

      protected void initialize()
      Overrides:
      initialize in class ToggleButton
    • fire

      public void fire()
      Toggles the state of the radio button if and only if the RadioButton has not already selected or is not part of a ToggleGroup.
      Overrides:
      fire in class ToggleButton
    • createDefaultSkin

      protected Skin<?> createDefaultSkin()
      Description copied from class: Control
      Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).
      Overrides:
      createDefaultSkin in class ToggleButton
      Returns:
      new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.
    • shouldUseLayoutMeasurable

      public boolean shouldUseLayoutMeasurable()
      Overrides:
      shouldUseLayoutMeasurable in class Control