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 packagecontrolControl

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

 
protectedfocusedBooleansubclasssubclasssubclass

Exposes the focused state of this skin in such a manner that the Control can bind to it.

Exposes the focused state of this skin in such a manner that the Control can bind to it. Whenever the skin's focused is true, the control's focused will be true, and vice versa.

Profile: common

 
protectedhoverBooleansubclasssubclasssubclass

Exposes the hover state of this skin in such a manner that the Control can bind to it.

Exposes the hover state of this skin in such a manner that the Control can bind to it. Whenever the skin's hover is true, the control's hover will be true, and vice versa.

Profile: common

 
protectedpressedBooleansubclasssubclasssubclass

Exposes the prssed state of this skin in such a manner that the Control can bind to it.

Exposes the prssed state of this skin in such a manner that the Control can bind to it. Whenever the skin's pressed is true, the control's pressed will be true, and vice versa.

Profile: common

 
public-init protectedsceneNodesubclasssubclasssubclass

The root of the scene graph used to render this Skin.

The root of the scene graph used to render 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

protected bound computeMaximumHeight() : 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 bound computeMaximumWidth() : 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 bound computeMinimumHeight() : 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 bound computeMinimumWidth() : 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 bound computePreferredHeight() : 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.

Returns
Number

Profile: common

 
protected bound computePreferredWidth() : 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.

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
 
protected requestFocus() : Void

Overridden to forward the request from the Control to the Skin to handle a request for focus.

Overridden to forward the request from the Control to the Skin to handle a request for focus. Conceptually the Control will still have the focus even though it delegates the focus to a node on the Skin under the covers.

Profile: common

 

Inherited Functions




Spec-Zone.ru - all specs in one place