@Override protected
double computeMaxHeight (
double width)
Overriding: javafx.scene.layout.Region
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.
Parameters:
width | | The width of the Control, in case this value might dictate
the maximum height. |
Returns: A double representing the maximum height of this control.
@Override protected
double computeMaxWidth (
double height)
Overriding: javafx.scene.layout.Region
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.
Parameters:
height | | The height of the Control, in case this value might dictate
the maximum width. |
Returns: A double representing the maximum width of this control.
@Override protected
double computeMinHeight (
double width)
Overriding: javafx.scene.layout.Region
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.
Parameters:
width | | The width of the Control, in case this value might dictate
the minimum height. |
Returns: A double representing the minimum height of this control.
@Override protected
double computeMinWidth (
double height)
Overriding: javafx.scene.layout.Region
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.
Parameters:
height | | The height of the Control, in case this value might dictate
the minimum width. |
Returns: A double representing the minimum width of this control.
@Override protected
double computePrefHeight (
double width)
Overriding: javafx.scene.layout.Region
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.
Parameters:
width | | the width that should be used if preferred height depends
on it |
Returns: the computed preferred height for this region
@Override protected
double computePrefWidth (
double height)
Overriding: javafx.scene.layout.Region
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.
Parameters:
height | | the height that should be used if preferred width depends
on it |
Returns: the computed preferred width for this region
@Override public
void executeAccessibleAction (
AccessibleAction action,
Object… parameters)
Overriding: javafx.scene.Node
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.
Parameters:
action | | the action to execute |
parameters | | optional list of parameters |
@Override public
double getBaselineOffset ()
Overriding: javafx.scene.Parent
Calculates the baseline offset based on the first managed child. If there
is no such child, returns Node.getBaselineOffset()
.
Returns: baseline offset
@Override
public final List<CssMetaData<? extends Styleable, ?>> getCssMetaData ()
@Override
protected Boolean getInitialFocusTraversable ()
Overriding: javafx.scene.Node
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 initial focus traversable state of this control
Since: 9
@Override
public final Skin<?> getSkin ()
@Override public
boolean isResizable ()
Overriding: javafx.scene.layout.Region
Returns true
since all Controls are resizable.
Returns: whether this node can be resized by its parent during layout
@Override protected
void layoutChildren ()
Overriding: javafx.scene.Parent
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.
@Override
public Object queryAccessibleAttribute (AccessibleAttribute attribute, Object… parameters)
Overriding: javafx.scene.Parent
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.
Parameters:
attribute | | the requested attribute |
parameters | | optional list of parameters |
Returns: the value for the requested attribute
@Override public final
void setSkin (
Skin<?> value)
@Override
public final ObjectProperty<Skin<?>> skinProperty ()
Implementing: javafx.scene.control.Skinnable
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.
Returns: the skin property for this control