Computes the maximum allowable height of the Control, based on the provided
width. The maximum height is not calculated within the Control, instead
the calculation is delegated to the Node.maxHeight(double) method
of the Skin. If the Skin is null, the returned value is 0.
width | The width of the Control, in case this value might dictate the maximum height. |
Computes the maximum allowable width of the Control, based on the provided
height. The maximum width is not calculated within the Control, instead
the calculation is delegated to the Node.maxWidth(double) method
of the Skin. If the Skin is null, the returned value is 0.
height | The height of the Control, in case this value might dictate the maximum width. |
Computes the minimum allowable height of the Control, based on the provided
width. The minimum height is not calculated within the Control, instead
the calculation is delegated to the Node.minHeight(double) method
of the Skin. If the Skin is null, the returned value is 0.
width | The width of the Control, in case this value might dictate the minimum height. |
Computes the minimum allowable width of the Control, based on the provided
height. The minimum width is not calculated within the Control, instead
the calculation is delegated to the Node.minWidth(double) method
of the Skin. If the Skin is null, the returned value is 0.
height | The height of the Control, in case this value might dictate the minimum width. |
Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
width | the width that should be used if preferred height depends on it |
Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
height | the height that should be used if preferred width depends on it |
This method is called by the assistive technology to request the action indicated by the argument should be executed.
This method is commonly overridden by subclasses to implement
action that are required for a specific role.
If a particular action is not handled, the superclass implementation
must be called.
action | the action to execute | |
parameters | optional list of parameters |
Calculates the baseline offset based on the first managed child. If there
is no such child, returns Node.getBaselineOffset().
This method returns a List containing all CssMetaData for
both this Control (returned from getControlCssMetaData() and its
Skin, assuming the skin property is a
SkinBase.
Developers who wish to provide custom CssMetaData are therefore
encouraged to override Control.getControlCssMetaData() or
SkinBase.getCssMetaData(), depending on where the CssMetaData
resides.
Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. By default all UI controls are focus traversable, so this method is overridden in Control to set the initial traversable state to true.
Returns the skin that renders this Control
Returns true since all Controls are resizable.
Invoked during the layout pass to layout the children in this
Parent. By default it will only set the size of managed,
resizable content to their preferred sizes and does not do any node
positioning.
Subclasses should override this function to layout content as needed.
This method is called by the assistive technology to request the value for an attribute.
This method is commonly overridden by subclasses to implement
attributes that are required for a specific role.
If a particular attribute is not handled, the superclass implementation
must be called.
attribute | the requested attribute | |
parameters | optional list of parameters |
Sets the skin that will render this Control
value | the skin value for this control |
Skin is responsible for rendering this Control. From the
perspective of the Control, the Skin is a black box.
It listens and responds to changes in state in a Control.
There is a one-to-one relationship between a Control and its
Skin. Every Skin maintains a back reference to the
Control via the Skin.getSkinnable() method.
A skin may be null.
Diagram: Control Hierarchy