Module org.tquadrat.foundation.fx
Class ErrorDisplaySkin
java.lang.Object
javafx.scene.control.SkinBase<ErrorDisplay>
org.tquadrat.foundation.fx.control.skin.ErrorDisplaySkin
- All Implemented Interfaces:
Skin<ErrorDisplay>
@ClassVersion(sourceVersion="$Id: ErrorDisplaySkin.java 1114 2024-03-12 23:07:59Z tquadrat $")
@API(status=STABLE,
since="0.4.3")
public final class ErrorDisplaySkin
extends SkinBase<ErrorDisplay>
The skin for the
ErrorDisplay
control.
The icon that is displayed with an error message was taken from
https://www.iconfinder.com/icons/216514/warning_icon.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: ErrorDisplaySkin.java 1114 2024-03-12 23:07:59Z tquadrat $
- Since:
- 0.4.3
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.fx.control.skin.ErrorDisplaySkin"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VBoxThe node that is used to display the messages.private final ImageThe icon for the message.static final doubleThe spacing for the message entries: 7.0.static final doubleThe minimum height for anErrorDisplaycontrol: 55.0. -
Constructor Summary
ConstructorsConstructorDescriptionErrorDisplaySkin(ErrorDisplay control) Creates a newErrorDisplaySkininstance, installing the necessary child nodes into theControl's children list. -
Method Summary
Modifier and TypeMethodDescriptionprivate doubleCalculates the preferred entry width based on the size of the control.protected final doublecomputeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) private final NodecreateEntry(String text) Creates an entry.private final ErrorDisplayReturns a reference to the control.private final voidmessagesInvalidated(Observable source) The invalidation listener for the messages property.Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, 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
-
Field Details
-
MESSAGE_ENTRY_SPACING
The spacing for the message entries: 7.0.- See Also:
-
MIN_HEIGHT
The minimum height for anErrorDisplaycontrol: 55.0.- See Also:
-
m_Content
The node that is used to display the messages. -
m_Icon
The icon for the message.
-
-
Constructor Details
-
ErrorDisplaySkin
Creates a newErrorDisplaySkininstance, installing the necessary child nodes into theControl's children list.- Parameters:
control- The control that this skin should be installed onto.
-
-
Method Details
-
calcNewEntryWidth
Calculates the preferred entry width based on the size of the control.- Returns:
- The preferred width for a new entry.
-
computeMinHeight
protected final double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinHeightin classSkinBase<ErrorDisplay>
-
createEntry
Creates an entry.- Parameters:
text- The message text.- Returns:
- The entry node.
-
getControl
Returns a reference to the control.- Returns:
- The control.
-
messagesInvalidated
The invalidation listener for the messages property.- Parameters:
source- The source.
-
