Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

Base class for user interface control skins. Skins are responsible for defining the visual representation of a Control by defining a scene graph of nodes to represent the skin.

Profile: common

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
public-read protectedbehaviorBehaviorsubclasssubclass

The Behavior that encapsulates the interaction with the Control from this Skin.

The Behavior that encapsulates the interaction with the Control from this Skin. The Skin does not modify the Control directly, but rather redirects events into the Behavior which then handles the events by modifying internal state and public state in the Control. Generally, specific Skin implementations will require specific Behavior implementations. For example, a ButtonSkin might require a ButtonBehavior.

 
public-readcontrolControl

The Control that is referencing this Skin.

The Control that is referencing this Skin. There is a one-to-one relationship between a Skin and a Control. When a Skin is set on a Control, this variable is automatically updated.

Profile: common

 
public-read protectednodeNodesubclasssubclass

The node used to represent this Skin.

The node used to represent this Skin. Most often it will be some kind of javafx.scene.Group node with variables of its subnodes bound to style settings and to variables on the Control.

Profile: common

 

Inherited Variables

Function Summary

public abstract contains(localX: Number, localY: Number) : Boolean
Parameters
localX
localY
Returns
Boolean
 
protected getMaxHeight() : Number

Invoked by the Control assigned to this Skin to compute the maximum height for this Skin.

Invoked by the Control assigned to this Skin to compute the maximum height for this Skin.

Returns
Number

Profile: common

 
protected getMaxWidth() : Number

Invoked by the Control assigned to this Skin to compute the maximum width for this Skin.

Invoked by the Control assigned to this Skin to compute the maximum width for this Skin.

Returns
Number

Profile: common

 
protected getMinHeight() : Number

Invoked by the Control assigned to this Skin to compute the minimum height for this Skin.

Invoked by the Control assigned to this Skin to compute the minimum height for this Skin. This allows code which is laying out the Control to determine correct sizing.

Returns
Number

Profile: common

 
protected getMinWidth() : Number

Invoked by the Control assigned to this Skin to compute the minimum width for this Skin.

Invoked by the Control assigned to this Skin to compute the minimum width for this Skin. This allows code which is laying out the Control to determine correct sizing.

Returns
Number

Profile: common

 
protected getPrefHeight(width: Number) : Number

Invoked by the Control assigned to this Skin to compute the preferred height for this Skin.

Invoked by the Control assigned to this Skin to compute the preferred height for this Skin.

Parameters
width
Returns
Number

Profile: common

 
protected getPrefWidth(height: Number) : Number

Invoked by the Control assigned to this Skin to compute the preferred width for this Skin.

Invoked by the Control assigned to this Skin to compute the preferred width for this Skin.

Parameters
height
Returns
Number

Profile: common

 
public impl_addListener(name: java.lang.String, listener: java.lang.Runnable) : Void

Attaches a change listener to a named property on the skin.

Attaches a change listener to a named property on the skin. The supported set of properties and their types is defined by the skin and may vary from skin to skin.

Parameters
name
listener
 
public impl_getProperty(name: java.lang.String) : java.lang.Object

Returns a named property from the skin.

Returns a named property from the skin. The supported set of properties and their types is defined by the skin and may vary from skin to skin.

Parameters
name
Returns
Object
 
public impl_getPropertyType(name: java.lang.String) : java.lang.String

Returns the type of the named property, or null if it is not supported.

Returns the type of the named property, or null if it is not supported.

Parameters
name
Returns
String
 
public impl_removeListener(name: java.lang.String, listener: java.lang.Runnable) : Void

Removes a change listener to a named property on the skin.

Removes a change listener to a named property on the skin. The supported set of properties and their types is defined by the skin and may vary from skin to skin. Unsupported properties are ignored.

Parameters
name
listener
 
public impl_setProperty(name: java.lang.String, value: java.lang.Object) : Void

Sets a named property on the skin.

Sets a named property on the skin. The supported set of properties and their types is defined by the skin and may vary from skin to skin.

Parameters
name
value
 
public abstract intersects(localX: Number, localY: Number, localWidth: Number, localHeight: Number) : Boolean
Parameters
localX
localY
localWidth
localHeight
Returns
Boolean
 

Inherited Functions