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

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

expand all

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

Script Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription

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 getHFill() : Boolean
Returns
Boolean
 
protected getHGrow() : javafx.scene.layout.Priority
Returns
Priority
 
protected getHShrink() : javafx.scene.layout.Priority
Returns
Priority
 
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

 
public 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

 
public 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

 
public 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

 
public 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

 
protected getVFill() : Boolean
Returns
Boolean
 
protected getVGrow() : javafx.scene.layout.Priority
Returns
Priority
 
protected getVShrink() : javafx.scene.layout.Priority
Returns
Priority
 
public abstract intersects(localX: Number, localY: Number, localWidth: Number, localHeight: Number) : Boolean
Parameters
localX
localY
localWidth
localHeight
Returns
Boolean
 

Inherited Functions