Class BehaviorSkinBase<C extends Control,BB extends BehaviorBase<C>>
java.lang.Object
javafx.scene.control.SkinBase<C>
com.sun.javafx.scene.control.skin.BehaviorSkinBase<C,BB>
- All Implemented Interfaces:
Skin<C>
- Direct Known Subclasses:
ButtonBarSkin
,LabeledSkinBase
,RadioButtonSkin
,TabPaneSkin
,TextInputControlSkin
public abstract class BehaviorSkinBase<C extends Control,BB extends BehaviorBase<C>>
extends SkinBase<C>
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final boolean
A static final reference to whether the platform we are on supports touch. -
Constructor Summary
ModifierConstructorDescriptionprotected
BehaviorSkinBase
(C control, BB behavior) Constructor for all BehaviorSkinBase instances. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Called by a Skinnable when the Skin is replaced on the Skinnable.final BB
protected void
handleControlPropertyChanged
(String propertyReference) Skin subclasses will override this method to handle changes in corresponding control's properties.protected final void
registerChangeListener
(ObservableValue<?> property, String reference) Subclasses can invoke this method to register that we want to listen to property change events for the given property.Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, getChildren, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, registerChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners
-
Field Details
-
IS_TOUCH_SUPPORTED
protected static final boolean IS_TOUCH_SUPPORTEDA static final reference to whether the platform we are on supports touch.- See Also:
-
-
Constructor Details
-
BehaviorSkinBase
Constructor for all BehaviorSkinBase instances.- Parameters:
control
- The control for which this Skin should attach to.behavior
- The behavior for which this Skin should defer to.
-
-
Method Details
-
getBehavior
-
dispose
public void dispose()Called by a Skinnable when the Skin is replaced on the Skinnable. This method allows a Skin to implement any logic necessary to clean up itself after the Skin is no longer needed. It may be used to release native resources. The methodsSkin.getSkinnable()
andSkin.getNode()
should return null following a call to dispose. Calling dispose twice has no effect. -
registerChangeListener
Subclasses can invoke this method to register that we want to listen to property change events for the given property.- Parameters:
property
-reference
-
-
handleControlPropertyChanged
Skin subclasses will override this method to handle changes in corresponding control's properties.
-