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 Details

    • IS_TOUCH_SUPPORTED

      protected static final boolean IS_TOUCH_SUPPORTED
      A static final reference to whether the platform we are on supports touch.
      See Also:
  • Constructor Details

    • BehaviorSkinBase

      protected BehaviorSkinBase(C control, BB behavior)
      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

      public final BB 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 methods Skin.getSkinnable() and Skin.getNode() should return null following a call to dispose. Calling dispose twice has no effect.
      Specified by:
      dispose in interface Skin<C extends Control>
      Overrides:
      dispose in class SkinBase<C extends Control>
    • registerChangeListener

      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.
      Parameters:
      property -
      reference -
    • handleControlPropertyChanged

      protected void handleControlPropertyChanged(String propertyReference)
      Skin subclasses will override this method to handle changes in corresponding control's properties.