java.lang.Object
javafx.scene.control.SkinBase<C>
io.github.palexdev.materialfx.skins.base.MFXLabeledSkinBase<MFXCheckbox>
io.github.palexdev.materialfx.skins.MFXCheckboxSkin
- All Implemented Interfaces:
Skin<MFXCheckbox>
This is the implementation of the
Skin associated with every MFXCheckbox.-
Field Summary
Fields inherited from class io.github.palexdev.materialfx.skins.base.MFXLabeledSkinBase
text, topContainer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds some common listeners for all skins extending this.protected PaneTo use this skin, controls must be organized in a certain way.protected voidlayoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) Methods inherited from class io.github.palexdev.materialfx.skins.base.MFXLabeledSkinBase
computeMaxHeight, computeMaxWidth, computeMinWidth, initContainer, updateAlignmentMethods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMinHeight, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Constructor Details
-
MFXCheckboxSkin
-
-
Method Details
-
addListeners
protected void addListeners()Description copied from class:MFXLabeledSkinBaseAdds 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:
addListenersin classMFXLabeledSkinBase<MFXCheckbox>
-
layoutChildren
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) - Overrides:
layoutChildrenin classSkinBase<MFXCheckbox>
-
getControlContainer
Description copied from class:MFXLabeledSkinBaseTo 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 aBorderPane. 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:
getControlContainerin classMFXLabeledSkinBase<MFXCheckbox>
-