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

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

Introduction

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

The text is from its open source code.

Field

ButtonTypeAPPLY
A pre-defined ButtonType that displays "Apply" and has a ButtonData of ButtonData#APPLY .
ButtonTypeOK
A pre-defined ButtonType that displays "OK" and has a ButtonData of ButtonData#OK_DONE .
ButtonTypeCANCEL
A pre-defined ButtonType that displays "Cancel" and has a ButtonData of ButtonData#CANCEL_CLOSE .
ButtonTypeCLOSE
A pre-defined ButtonType that displays "Close" and has a ButtonData of ButtonData#CANCEL_CLOSE .
ButtonTypeYES
A pre-defined ButtonType that displays "Yes" and has a ButtonData of ButtonData#YES .
ButtonTypeNO
A pre-defined ButtonType that displays "No" and has a ButtonData of ButtonData#NO .
ButtonTypePREVIOUS
A pre-defined ButtonType that displays "Previous" and has a ButtonData of ButtonData#BACK_PREVIOUS .

Constructor

ButtonType(@NamedArg("text") String text)
Creates a ButtonType instance with the given text, and the ButtonData set as ButtonData#OTHER .
ButtonType(@NamedArg("text") String text, @NamedArg("buttonData") ButtonData buttonData)
Creates a ButtonType instance with the given text, and the ButtonData set as specified.

Method

ButtonDatagetButtonData()
Returns the ButtonData specified for this ButtonType in the constructor.