Module MaterialFX

Class MFXCheckboxSkin

All Implemented Interfaces:
Skin<MFXCheckbox>

public class MFXCheckboxSkin extends MFXLabeledSkinBase<MFXCheckbox>
This is the implementation of the Skin associated with every MFXCheckbox.
  • Constructor Details

    • MFXCheckboxSkin

      public MFXCheckboxSkin(MFXCheckbox checkbox)
  • Method Details

    • addListeners

      protected void addListeners()
      Description copied from class: MFXLabeledSkinBase
      Adds some common listeners for all skins extending this.

      Note that this method is not called by the constructor of this class, this is to allow overriding and thus expand the behavior of this method. This should be called at the end of the constructor of the implementing skin.

      Overrides:
      addListeners in class MFXLabeledSkinBase<MFXCheckbox>
    • layoutChildren

      protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
      Overrides:
      layoutChildren in class SkinBase<MFXCheckbox>
    • getControlContainer

      protected Pane getControlContainer()
      Description copied from class: MFXLabeledSkinBase
      To use this skin, controls must be organized in a certain way.

      Two main nodes are needed: one is the text of course, the other one is a pane which contains all the other nodes. This is necessary for the MFXLabeled.contentDispositionProperty() to work properly. This base skin defines a top container which is a BorderPane. At the center of the border pane there's always the text (exception being when content disposition is CENTER or GRAPHIC_ONLY), the other pane is the one that rotates depending on the content disposition property.

      Specified by:
      getControlContainer in class MFXLabeledSkinBase<MFXCheckbox>