java.lang.Object
javafx.scene.control.SkinBase<MFXNotificationCenter>
io.github.palexdev.materialfx.skins.MFXNotificationCenterSkin
- All Implemented Interfaces:
Skin<MFXNotificationCenter>
This is the skin associated with every
MFXNotificationCenter.
It is composed by an icon, which is a bell, that opens a MFXPopup to show the notification center.-
Constructor Summary
ConstructorsConstructorDescriptionMFXNotificationCenterSkin(MFXNotificationCenter notificationCenter, io.github.palexdev.virtualizedfx.flow.simple.SimpleVirtualFlow<INotification, MFXNotificationCell> virtualFlow) -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected voidlayoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) protected voidmanagePopup(boolean showing) Shows/Hides the popup.Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMinHeight, computeMinWidth, 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
-
MFXNotificationCenterSkin
public MFXNotificationCenterSkin(MFXNotificationCenter notificationCenter, io.github.palexdev.virtualizedfx.flow.simple.SimpleVirtualFlow<INotification, MFXNotificationCell> virtualFlow)
-
-
Method Details
-
managePopup
protected void managePopup(boolean showing) Shows/Hides the popup. -
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxWidthin classSkinBase<MFXNotificationCenter>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxHeightin classSkinBase<MFXNotificationCenter>
-
layoutChildren
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) - Overrides:
layoutChildrenin classSkinBase<MFXNotificationCenter>
-