Tab

scalafx.scene.control.Tab
See theTab companion object
class Tab(val delegate: Tab) extends Styleable, SFXDelegate[Tab]

Attributes

Companion
object
Graph
Supertypes
trait Styleable
trait SFXDelegate[Tab]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

The closable state for this tab.

The closable state for this tab.

Attributes

def content: ObjectProperty[Node]

The content associated with the tab.

The content associated with the tab.

Attributes

def content_=(v: Node): Unit
def contextMenu: ObjectProperty[ContextMenu]

The context menu associated with the tab.

The context menu associated with the tab.

Attributes

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().

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().

Attributes

Since

2.2

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.

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.

Attributes

Since

2.2

def graphic: ObjectProperty[Node]

The graphic in the tab.

The graphic in the tab.

Attributes

def graphic_=(v: Node): Unit

The id of this tab.

The id of this tab.

Attributes

def id_=(v: String): Unit
def onCloseRequest: ObjectProperty[EventHandler[Event]]

Called when there is an external request to close this Tab.

Called when there is an external request to close this Tab.

Attributes

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.

The event handler that is associated with the tab when the tab is closed.

Attributes

def onClosed_=(v: EventHandler[Event]): Unit
def onSelectionChanged: ObjectProperty[EventHandler[Event]]

The event handler that is associated with a selection on the tab.

The event handler that is associated with a selection on the tab.

Attributes

def onSelectionChanged_=(v: EventHandler[Event]): Unit

The currently selected tab.

The currently selected tab.

Attributes

The CSS style string associated to this tab.

The CSS style string associated to this tab.

Attributes

def style_=(v: String): Unit

The TabPane that contains this tab.

The TabPane that contains this tab.

Attributes

The text shown in the tab.

The text shown in the tab.

Attributes

def text_=(v: String): Unit
def tooltip: ObjectProperty[Tooltip]

The tooltip associated with this tab.

The tooltip associated with this tab.

Attributes

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.

Attributes

Since

2.2

def userData_=(v: AnyRef): Unit

Inherited methods

def cssMetaData: Seq[CssMetaData[_ <: Styleable, _]]

The CssMetaData of this Styleable.

The CssMetaData of this Styleable.

Attributes

Inherited from:
Styleable
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def getId: String

The id of this Styleable.

The id of this Styleable.

IMPLEMENTATION NOTE: For this method was adopted the name getId instead id to not conflict with its subclasses already have a method with this name which returns a StringProperty.

Attributes

Inherited from:
Styleable

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 instead style to not conflict with its subclasses already have a method with this name which returns a StringProperty.

Attributes

Inherited from:
Styleable
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def pseudoClassStates: ObservableSet[PseudoClass]

The pseudo-class state of this Styleable.

The pseudo-class state of this Styleable.

Attributes

Inherited from:
Styleable

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.

Attributes

Inherited from:
Styleable

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. 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.

Attributes

Returns

the Node that represents this Styleable object

Since

9

Inherited from:
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.

Attributes

Inherited from:
Styleable
override def toString: String

Attributes

Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

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.

Attributes

Inherited from:
Styleable

Concrete fields

override val delegate: Tab

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes