Example usage for javafx.scene AccessibleAttribute SELECTED

List of usage examples for javafx.scene AccessibleAttribute SELECTED

Introduction

In this page you can find the example usage for javafx.scene AccessibleAttribute SELECTED.

Prototype

AccessibleAttribute SELECTED

To view the source code for javafx.scene AccessibleAttribute SELECTED.

Click Source Link

Document

Returns true if the node is selected, otherwise false.

Usage

From source file:com.github.vatbub.tictactoe.view.Main.java

@FXML
void player1AIToggleOnClick(MouseEvent event) {
    updateAccessibleTexts();
    player1AIToggle.requestFocus();
    player1AIToggle.notifyAccessibleAttributeChanged(AccessibleAttribute.SELECTED);
}

From source file:com.github.vatbub.tictactoe.view.Main.java

@FXML
void player2AIToggleOnClick(MouseEvent event) {
    updateAccessibleTexts();
    player2AIToggle.requestFocus();
    player2AIToggle.notifyAccessibleAttributeChanged(AccessibleAttribute.SELECTED);
}