object AccessibleRole extends SFXEnumDelegateCompanion[javafx.scene.AccessibleRole, AccessibleRole]
This enum describes the accessible role for a Node
.
The role is used by assistive technologies such as screen readers to decide the set of actions and attributes for a node. For example, when the screen reader needs the current value of a slider, it will request it using the value attribute. When the screen reader changes the value of the slider, it will use an action to set the current value of the slider. The slider must respond appropriately to both these requests.
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/AccessibleRole.html
- Source
- AccessibleRole.scala
- Alphabetic
- By Inheritance
- AccessibleRole
- SFXEnumDelegateCompanion
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(e: javafx.scene.AccessibleRole): AccessibleRole
Converts a JavaFX
enum
to its respectiveSFXEnumDelegate
.Converts a JavaFX
enum
to its respectiveSFXEnumDelegate
.- e
JavaFX
enum
- returns
scalafx.delegate.SFXEnumDelegate
equivalent to argument.
- Definition Classes
- SFXEnumDelegateCompanion
- def apply(name: String): AccessibleRole
Returns the
enum
constant of this type with the specified name.Returns the
enum
constant of this type with the specified name.- name
the name of the constant to return
- Definition Classes
- SFXEnumDelegateCompanion
- Exceptions thrown
IllegalArgumentException
If the specifiedenum
type has no constant with the specified name, or the specified class object does not represent anenum
type.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jfxEnum2sfx(e: javafx.scene.AccessibleRole): AccessibleRole
Converts a JavaFX
enum
to its respectiveSFXEnumDelegate
.Converts a JavaFX
enum
to its respectiveSFXEnumDelegate
.- e
JavaFX
enum
- returns
scalafx.delegate.SFXEnumDelegate
equivalent to argument.
- Definition Classes
- SFXEnumDelegateCompanion
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit def sfxEnum2jfx(s: AccessibleRole): javafx.scene.AccessibleRole
Converts a
SFXEnumDelegate
to its respective JavaFXEnum
.Converts a
SFXEnumDelegate
to its respective JavaFXEnum
.- s
SFXEnumDelegate
instance- returns
Delegated
enum
- Definition Classes
- SFXEnumDelegateCompanion
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unsortedValues: Array[AccessibleRole]
Contain constants which will be source for
values
ListContain constants which will be source for
values
List- Attributes
- protected
- Definition Classes
- AccessibleRole → SFXEnumDelegateCompanion
- lazy val values: List[AccessibleRole]
Returns a List containing the constants of this
enum
type, in the order they are declared.Returns a List containing the constants of this
enum
type, in the order they are declared.- Definition Classes
- SFXEnumDelegateCompanion
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Button extends AccessibleRole with Product with Serializable
Button role.
Button role.
Attributes:
-
AccessibleAttribute#TEXT
Actions:
-
AccessibleAction#FIRE
-
- object CheckBox extends AccessibleRole with Product with Serializable
Check Box role.
Check Box role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#SELECTED
-
AccessibleAttribute#INDETERMINATE
Actions:
-
AccessibleAction#FIRE
-
- object CheckMenuItem extends AccessibleRole with Product with Serializable
Check Menu Item role.
Check Menu Item role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#ACCELERATOR
-
AccessibleAttribute#MNEMONIC
-
AccessibleAttribute#DISABLED
-
AccessibleAttribute#SELECTED
Actions:
-
AccessibleAction#FIRE
-
- object ComboBox extends AccessibleRole with Product with Serializable
Combo Box role.
Combo Box role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#EXPANDED
-
AccessibleAttribute#EDITABLE
Actions:
-
AccessibleAction#EXPAND
-
AccessibleAction#COLLAPSE
-
- object ContextMenu extends AccessibleRole with Product with Serializable
Context Menu role.
Context Menu role.
Attributes:
-
AccessibleAttribute#PARENT_MENU
-
AccessibleAttribute#VISIBLE
Actions:
-
- object DatePicker extends AccessibleRole with Product with Serializable
Date Picker role.
Date Picker role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#DATE
Actions:
-
- object DecrementButton extends AccessibleRole with Product with Serializable
Decrement Button role.
Decrement Button role.
Attributes:
-
AccessibleAttribute#TEXT
Actions:
-
AccessibleAction#FIRE
-
- object Hyperlink extends AccessibleRole with Product with Serializable
Hyperlink role.
Hyperlink role.
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#VISITED
Actions:
-
AccessibleAction#FIRE
-
- object ImageView extends AccessibleRole with Product with Serializable
Image View role.
- object IncrementButton extends AccessibleRole with Product with Serializable
Increment Button role.
Increment Button role.
Attributes:
-
AccessibleAttribute#TEXT
Actions:
-
AccessibleAction#FIRE
-
- object ListItem extends AccessibleRole with Product with Serializable
List Item role.
List Item role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#INDEX
-
AccessibleAttribute#SELECTED
Actions:
-
AccessibleAction#REQUEST_FOCUS
-
- object ListView extends AccessibleRole with Product with Serializable
List View role.
List View role.
Attributes:
-
AccessibleAttribute#ITEM_AT_INDEX
-
AccessibleAttribute#ITEM_COUNT
-
AccessibleAttribute#SELECTED_ITEMS
-
AccessibleAttribute#MULTIPLE_SELECTION
-
AccessibleAttribute#VERTICAL_SCROLLBAR
-
AccessibleAttribute#HORIZONTAL_SCROLLBAR
-
AccessibleAttribute#FOCUS_ITEM
Actions:
-
AccessibleAction#SHOW_ITEM
-
AccessibleAction#SET_SELECTED_ITEMS
-
- object Menu extends AccessibleRole with Product with Serializable
Menu role.
Menu role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#ACCELERATOR
-
AccessibleAttribute#MNEMONIC
-
AccessibleAttribute#DISABLED
-
AccessibleAttribute#SUBMENU
Actions:
-
AccessibleAction#FIRE
-
- object MenuBar extends AccessibleRole with Product with Serializable
Menu Bar role.
Menu Bar role.
Attributes:
Actions:
- object MenuButton extends AccessibleRole with Product with Serializable
Menu Button role.
Menu Button role.
Attributes:
-
AccessibleAttribute#TEXT
Actions:
-
AccessibleAction#FIRE
-
- object MenuItem extends AccessibleRole with Product with Serializable
Menu Item role.
Menu Item role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#ACCELERATOR
-
AccessibleAttribute#MNEMONIC
-
AccessibleAttribute#DISABLED
Actions:
-
AccessibleAction#FIRE
-
- object Node extends AccessibleRole with Product with Serializable
Node role.
Node role.
Attributes:
-
AccessibleAttribute#ROLE
-
AccessibleAttribute#PARENT
-
AccessibleAttribute#SCENE
-
AccessibleAttribute#BOUNDS
-
AccessibleAttribute#DISABLED
-
AccessibleAttribute#FOCUSED
-
AccessibleAttribute#VISIBLE
Actions:
-
AccessibleAction#REQUEST_FOCUS
Optional Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#LABELED_BY
-
AccessibleAttribute#ROLE_DESCRIPTION
-
AccessibleAttribute#HELP
Optional Actions:
-
AccessibleAction#SHOW_MENU
-
- object PageItem extends AccessibleRole with Product with Serializable
Page role.
Page role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#SELECTED
Actions:
-
AccessibleAction#REQUEST_FOCUS
-
- object Pagination extends AccessibleRole with Product with Serializable
Pagination role.
Pagination role.
Attributes:
-
AccessibleAttribute#ITEM_AT_INDEX
-
AccessibleAttribute#ITEM_COUNT
-
AccessibleAttribute#FOCUS_ITEM
Actions:
-
- object Parent extends AccessibleRole with Product with Serializable
Parent role.
Parent role.
Attributes:
-
AccessibleAttribute#CHILDREN
Actions:
-
- object PasswordField extends AccessibleRole with Product with Serializable
Password Field role.
Password Field role.
Attributes:
-
AccessibleAttribute#TEXT
- must return null or empty string
Actions:
-
- object ProgressIndicator extends AccessibleRole with Product with Serializable
Progress Indicator role.
Progress Indicator role.
Attributes:
-
AccessibleAttribute#VALUE
-
AccessibleAttribute#MIN_VALUE
-
AccessibleAttribute#MAX_VALUE
-
AccessibleAttribute#INDETERMINATE
Actions:
-
- object RadioButton extends AccessibleRole with Product with Serializable
Radio Button role.
Radio Button role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#SELECTED
Actions:
-
AccessibleAction#FIRE
-
- object RadioMenuItem extends AccessibleRole with Product with Serializable
Radio Menu Item role.
Radio Menu Item role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#ACCELERATOR
-
AccessibleAttribute#MNEMONIC
-
AccessibleAttribute#DISABLED
-
AccessibleAttribute#SELECTED
Actions:
-
AccessibleAction#FIRE
-
- object ScrollBar extends AccessibleRole with Product with Serializable
Scroll Bar role.
Scroll Bar role.
Attributes:
-
AccessibleAttribute#VALUE
-
AccessibleAttribute#MAX_VALUE
-
AccessibleAttribute#MIN_VALUE
-
AccessibleAttribute#ORIENTATION
Actions:
-
AccessibleAction#INCREMENT
-
AccessibleAction#DECREMENT
-
AccessibleAction#BLOCK_INCREMENT
-
AccessibleAction#BLOCK_DECREMENT
-
AccessibleAction#SET_VALUE
-
- object ScrollPane extends AccessibleRole with Product with Serializable
Scroll Pane role.
Scroll Pane role.
Attributes:
-
AccessibleAttribute#CONTENTS
-
AccessibleAttribute#HORIZONTAL_SCROLLBAR
-
AccessibleAttribute#VERTICAL_SCROLLBAR
Actions:
-
- object Slider extends AccessibleRole with Product with Serializable
Slider role.
Slider role.
Attributes:
-
AccessibleAttribute#VALUE
-
AccessibleAttribute#MIN_VALUE
-
AccessibleAttribute#MAX_VALUE
-
AccessibleAttribute#ORIENTATION
Actions:
-
AccessibleAction#INCREMENT
-
AccessibleAction#DECREMENT
-
AccessibleAction#SET_VALUE
-
- object Spinner extends AccessibleRole with Product with Serializable
Spinner role.
Spinner role.
Attributes:
-
AccessibleAttribute#TEXT
Actions:
-
AccessibleAction#INCREMENT
-
AccessibleAction#DECREMENT
-
- object SplitMenuButton extends AccessibleRole with Product with Serializable
Split Menu Button role.
Split Menu Button role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#EXPANDED
Actions:
-
AccessibleAction#FIRE
-
AccessibleAction#EXPAND
-
AccessibleAction#COLLAPSE
-
- object TabItem extends AccessibleRole with Product with Serializable
Tab Item role.
Tab Item role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#SELECTED
Actions:
-
AccessibleAction#REQUEST_FOCUS
-
- object TabPane extends AccessibleRole with Product with Serializable
Tab Pane role.
Tab Pane role.
Attributes:
-
AccessibleAttribute#ITEM_AT_INDEX
-
AccessibleAttribute#ITEM_COUNT
-
AccessibleAttribute#FOCUS_ITEM
Actions:
-
- object TableCell extends AccessibleRole with Product with Serializable
Table Cell role.
Table Cell role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#ROW_INDEX
-
AccessibleAttribute#COLUMN_INDEX
-
AccessibleAttribute#SELECTED
Actions:
-
AccessibleAction#REQUEST_FOCUS
-
- object TableColumn extends AccessibleRole with Product with Serializable
Table Column role.
Table Column role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#INDEX
Actions:
-
- object TableRow extends AccessibleRole with Product with Serializable
Table Row role.
Table Row role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#INDEX
Actions:
-
- object TableView extends AccessibleRole with Product with Serializable
Table View role.
Table View role.
Attributes:
-
AccessibleAttribute#ROW_COUNT
-
AccessibleAttribute#ROW_AT_INDEX
-
AccessibleAttribute#COLUMN_COUNT
-
AccessibleAttribute#COLUMN_AT_INDEX
-
AccessibleAttribute#SELECTED_ITEMS
-
AccessibleAttribute#CELL_AT_ROW_COLUMN
-
AccessibleAttribute#HEADER
-
AccessibleAttribute#MULTIPLE_SELECTION
-
AccessibleAttribute#VERTICAL_SCROLLBAR
-
AccessibleAttribute#HORIZONTAL_SCROLLBAR
-
AccessibleAttribute#FOCUS_ITEM
Actions:
-
AccessibleAction#SHOW_ITEM
-
AccessibleAction#SET_SELECTED_ITEMS
-
- object Text extends AccessibleRole with Product with Serializable
Text role.
Text role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#FONT
Actions:
-
AccessibleAction#SET_TEXT
-
- object TextArea extends AccessibleRole with Product with Serializable
Text Area role.
Text Area role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#FONT
-
AccessibleAttribute#EDITABLE
-
AccessibleAttribute#SELECTION_START
-
AccessibleAttribute#SELECTION_END
-
AccessibleAttribute#CARET_OFFSET
-
AccessibleAttribute#OFFSET_AT_POINT
-
AccessibleAttribute#LINE_START
-
AccessibleAttribute#LINE_END
-
AccessibleAttribute#LINE_FOR_OFFSET
-
AccessibleAttribute#BOUNDS_FOR_RANGE
Actions:
-
AccessibleAction#SET_TEXT
-
AccessibleAction#SET_TEXT_SELECTION
-
- object TextField extends AccessibleRole with Product with Serializable
Text Field role.
Text Field role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#FONT
-
AccessibleAttribute#EDITABLE
-
AccessibleAttribute#SELECTION_START
-
AccessibleAttribute#SELECTION_END
-
AccessibleAttribute#CARET_OFFSET
-
AccessibleAttribute#OFFSET_AT_POINT
-
AccessibleAttribute#BOUNDS_FOR_RANGE
Actions:
-
AccessibleAction#SET_TEXT
-
AccessibleAction#SET_TEXT_SELECTION
-
- object Thumb extends AccessibleRole with Product with Serializable
Thumb role.
Thumb role.
Attributes:
-
AccessibleAttribute#VALUE
Actions:
-
- object TitledPane extends AccessibleRole with Product with Serializable
Titled Pane role.
Titled Pane role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#EXPANDED
Actions:
-
AccessibleAction#EXPAND
-
AccessibleAction#COLLAPSE
-
- object ToggleButton extends AccessibleRole with Product with Serializable
Toggle Button role.
Toggle Button role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#SELECTED
Actions:
-
AccessibleAction#FIRE
-
- object ToolBar extends AccessibleRole with Product with Serializable
Tool Bar role.
Tool Bar role.
Attributes:
-
AccessibleAttribute#OVERFLOW_BUTTON
Actions:
-
- object Tooltip extends AccessibleRole with Product with Serializable
Tooltip role.
Tooltip role.
Attributes:
Actions:
- object TreeItem extends AccessibleRole with Product with Serializable
Tree Item role.
Tree Item role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#INDEX
-
AccessibleAttribute#SELECTED
-
AccessibleAttribute#EXPANDED
-
AccessibleAttribute#LEAF
-
AccessibleAttribute#DISCLOSURE_LEVEL
-
AccessibleAttribute#TREE_ITEM_COUNT
-
AccessibleAttribute#TREE_ITEM_AT_INDEX
-
AccessibleAttribute#TREE_ITEM_PARENT
Actions:
-
AccessibleAction#EXPAND
-
AccessibleAction#COLLAPSE
-
AccessibleAction#REQUEST_FOCUS
-
- object TreeTableCell extends AccessibleRole with Product with Serializable
Tree Table Cell role.
Tree Table Cell role.
Attributes:
-
AccessibleAttribute#TEXT
-
AccessibleAttribute#SELECTED
-
AccessibleAttribute#ROW_INDEX
-
AccessibleAttribute#COLUMN_INDEX
Actions:
-
AccessibleAction#REQUEST_FOCUS
-
- object TreeTableRow extends AccessibleRole with Product with Serializable
Tree Table Row role.
Tree Table Row role.
Attributes:
-
AccessibleAttribute#INDEX
-
AccessibleAttribute#EXPANDED
-
AccessibleAttribute#LEAF
-
AccessibleAttribute#DISCLOSURE_LEVEL
-
AccessibleAttribute#TREE_ITEM_COUNT
-
AccessibleAttribute#TREE_ITEM_AT_INDEX
-
AccessibleAttribute#TREE_ITEM_PARENT
Actions:
-
AccessibleAction#EXPAND
-
AccessibleAction#COLLAPSE
-
- object TreeTableView extends AccessibleRole with Product with Serializable
Tree Table View role.
Tree Table View role.
Attributes:
-
AccessibleAttribute#ROW_COUNT
-
AccessibleAttribute#ROW_AT_INDEX
-
AccessibleAttribute#COLUMN_COUNT
-
AccessibleAttribute#COLUMN_AT_INDEX
-
AccessibleAttribute#SELECTED_ITEMS
-
AccessibleAttribute#CELL_AT_ROW_COLUMN
-
AccessibleAttribute#HEADER
-
AccessibleAttribute#MULTIPLE_SELECTION
-
AccessibleAttribute#VERTICAL_SCROLLBAR
-
AccessibleAttribute#HORIZONTAL_SCROLLBAR
-
AccessibleAttribute#FOCUS_ITEM
Actions:
-
AccessibleAction#SHOW_ITEM
-
AccessibleAction#SET_SELECTED_ITEMS
-
- object TreeView extends AccessibleRole with Product with Serializable
Tree View role.
Tree View role.
Attributes:
-
AccessibleAttribute#ROW_COUNT
-
AccessibleAttribute#ROW_AT_INDEX
-
AccessibleAttribute#SELECTED_ITEMS
-
AccessibleAttribute#MULTIPLE_SELECTION
-
AccessibleAttribute#VERTICAL_SCROLLBAR
-
AccessibleAttribute#HORIZONTAL_SCROLLBAR
-
AccessibleAttribute#FOCUS_ITEM
Actions:
-
AccessibleAction#SHOW_ITEM
-
AccessibleAction#SET_SELECTED_ITEMS
-
ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.
Package Structure
ScalaFX package structure corresponds to JavaFX package structure, for instance
scalafx.animation
corresponds tojavafx.animation
.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp
. Following Java FX theatre metaphor, it contains astage
that contains ascene
. Astage
roughly corresponds to a window in a typical UI environment. Thescene
holds UI content presented to the user. In the example below, the content is a pane with a singlelabel
component.