Module MaterialFX

Class MFXToggleButton

All Implemented Interfaces:
MFXLabeled, Styleable, EventTarget, Skinnable, Toggle

public class MFXToggleButton extends Labeled implements Toggle, MFXLabeled
This is the implementation of a toggle button following Google's material design guidelines in JavaFX.

Extends Labeled and implements Toggle and MFXLabeled, its CSS selector is "-mfx-toggle-button", includes a RippleGenerator(in the Skin) to generate ripple effect when selected/unselected.

It also introduces some new features like:

- contentDispositionProperty(): to control the toggle position

- gapProperty(): to control the gap between the toggle and the text

- lengthProperty(): to control the toggle's line width

- radiusProperty(): to control the toggle's circle radius

- textExpandProperty(): to control the text size and the checkbox layout (see documentation)