joe.win
package
This package contains an experimental API for building JavaFX GUIs. It assumes a familiarity with JavaFX.
Types
- Button extends Control
- Control extends Region
- GridPane extends Pane
- HBox extends Pane
- HPos
- Insets
- Label extends Control
- ListView extends Control
- Menu
- MenuBar extends Control
- MenuItem
- Node
- Orientation
- Pane extends Region
- Pos
- Priority
- Region extends Node
- Separator extends Control
- Side
- SplitPane extends Control
- StackPane extends Pane
- Tab
- TabPane extends Control
- VBox extends Pane
- VPos
- Win
Widget Hierarchy
The joe.win
widget type hierarchy is a subset of the JavaFX hierarchy.
MenuItem
: A menu itemMenu
: A menuNode
: Base classRegion
: Nodes with geometry
Tab
: A tab in aTabPane
Styling with CSS
Scripts can style widgets using CSS in several different ways.
- The
Win.css()
method associates a CSS stylesheet, passed as a text string, with the application as a whole. - Each widget has a
styleClasses()
method which returns a list of the names of the CSS style classes that apply to the widget; add any desired style class name to this list. - Each widget has a
#style
property which can be set to a string defining one or more CSS style settings, similar to the HTMLstyle
attribute.
JavaFX styles widgets using its own peculiar form of CSS, called "FXCSS". See the JavaFX CSS Reference Guide for details.