Java javafx.scene.control ToggleButton fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control ToggleButton fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control ToggleButton.

The text is from its open source code.

Constructor

ToggleButton(String text)
Creates a toggle button with the specified text as its label.
ToggleButton()
Creates a toggle button with an empty string for its label.
ToggleButton(String text, Node graphic)
Creates a toggle button with the specified text and icon for its label.

Method

voidaddEventHandler(final EventType eventType, final EventHandler eventHandler)
Registers an event handler to this node.
voidfire()
NodegetGraphic()
EventHandlergetOnAction()
ObservableListgetStyleClass()
ToggleGroupgetToggleGroup()
ObjectgetUserData()
Returns a previously set Object property, or null if no such property has been set using the Node#setUserData(java.lang.Object) method.
booleanisSelected()
BooleanPropertyselectedProperty()
voidsetBorder(Border value)
voidsetGraphic(Node value)
voidsetOnAction(EventHandler value)
voidsetOnMouseClicked(EventHandler value)
voidsetSelected(boolean value)
voidsetText(String value)
voidsetToggleGroup(ToggleGroup value)
voidsetUserData(Object value)
Convenience method for setting a single Object property that can be retrieved at a later date.
ObjectPropertytoggleGroupProperty()