class Tab extends Styleable with SFXDelegate[javafx.scene.control.Tab]
- Alphabetic
- By Inheritance
- Tab
- Styleable
- SFXDelegate
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Tab(delegate: javafx.scene.control.Tab = new jfxsc.Tab)
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def closable: BooleanProperty
The closable state for this tab.
- def closable_=(v: Boolean): Unit
- def content: ObjectProperty[javafx.scene.Node]
The content associated with the tab.
- def content_=(v: Node): Unit
- def contextMenu: ObjectProperty[javafx.scene.control.ContextMenu]
The context menu associated with the tab.
- def contextMenu_=(v: ContextMenu): Unit
- def cssMetaData: Seq[CssMetaData[_ <: Styleable, _]]
The CssMetaData of this Styleable.
The CssMetaData of this Styleable.
- Definition Classes
- Styleable
- val delegate: javafx.scene.control.Tab
JavaFX object to be wrapped.
JavaFX object to be wrapped.
- Definition Classes
- Tab → SFXDelegate
- def disable: BooleanProperty
Sets the disabled state of this tab.
Sets the disabled state of this tab. A disable tab is no longer interactive or traversable, but the contents remain interactive. A disable tab can be selected using TabPane.getSelectionModel().
- Since
2.2
- def disable_=(v: Boolean): Unit
- def disabled: ReadOnlyBooleanProperty
Indicates whether or not this Tab is disabled.
Indicates whether or not this Tab is disabled. A Tab will become disabled if disable is set to true on either itself or if the TabPane is disabled.
- Since
2.2
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(ref: Any): Boolean
Verifies if a object is equals to this delegate.
Verifies if a object is equals to this delegate.
- ref
Object to be compared.
- returns
if the other object is equals to this delegate or not.
- Definition Classes
- SFXDelegate → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getId: String
The id of this Styleable.
The id of this Styleable.
IMPLEMENTATION NOTE: For this method was adopted the name
getId
insteadid
to not conflict with its subclasses already have a method with this name which returns aStringProperty
.- Definition Classes
- Styleable
- def getStyle: String
A string representation of the CSS style associated with this specific Node.
A string representation of the CSS style associated with this specific Node.
IMPLEMENTATION NOTE: For this method was adopted the name
getStyle
insteadstyle
to not conflict with its subclasses already have a method with this name which returns aStringProperty
.- Definition Classes
- Styleable
- def graphic: ObjectProperty[javafx.scene.Node]
The graphic in the tab.
- def graphic_=(v: Node): Unit
- def hashCode(): Int
- returns
The delegate hashcode
- Definition Classes
- SFXDelegate → AnyRef → Any
- def id: StringProperty
The id of this tab.
- def id_=(v: String): Unit
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def onCloseRequest: ObjectProperty[EventHandler[Event]]
Called when there is an external request to close this Tab.
- def onCloseRequest_=(v: EventHandler[Event]): Unit
- def onClosed: ObjectProperty[EventHandler[Event]]
The event handler that is associated with the tab when the tab is closed.
- def onClosed_=(v: EventHandler[Event]): Unit
- def onSelectionChanged: ObjectProperty[EventHandler[Event]]
The event handler that is associated with a selection on the tab.
- def onSelectionChanged_=(v: EventHandler[Event]): Unit
- def pseudoClassStates: ObservableSet[PseudoClass]
The pseudo-class state of this Styleable.
The pseudo-class state of this Styleable.
- Definition Classes
- Styleable
- def selected: ReadOnlyBooleanProperty
The currently selected tab.
- def style: StringProperty
The CSS style string associated to this tab.
- def styleClass: ObservableBuffer[String]
A list of String identifiers which can be used to logically group Nodes, specifically for an external style engine.
A list of String identifiers which can be used to logically group Nodes, specifically for an external style engine.
- Definition Classes
- Styleable
- def style_=(v: String): Unit
- def styleableNode: Node
Returns the Node that represents this Styleable object.
Returns the Node that represents this Styleable object. This method should be overridden in cases where the Styleable is not itself a Node, so that it may optionally return the relevant root node representation of itself. By default this method returns null, which can mean that either the Styleable itself is a Node, or if that is not the case, that the Styleable does not have a node representation available at the time of request.
- returns
the Node that represents this Styleable object
- Definition Classes
- Styleable
- Since
9
- def styleableParent: Styleable
The parent of this Styleable, or null if there is no parent.
The parent of this Styleable, or null if there is no parent.
- Definition Classes
- Styleable
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tabPane: ReadOnlyObjectProperty[javafx.scene.control.TabPane]
The TabPane that contains this tab.
- def text: StringProperty
The text shown in the tab.
- def text_=(v: String): Unit
- def toString(): String
- returns
Returns the original delegate's
toString()
adding a[SFX]
prefix.
- Definition Classes
- SFXDelegate → AnyRef → Any
- def tooltip: ObjectProperty[javafx.scene.control.Tooltip]
The tooltip associated with this tab.
- def tooltip_=(v: Tooltip): Unit
- def typeSelector: String
The type of this
Styleable
that is to be used in selector matching.The type of this
Styleable
that is to be used in selector matching.- Definition Classes
- Styleable
- def userData: AnyRef
Set the value of the userData property for the instance constructed by this builder.
Set the value of the userData property for the instance constructed by this builder.
- Since
2.2
- def userData_=(v: AnyRef): Unit
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
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
JFXApp3
. 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.