Top Fields Constructors Methods
impl.com.calendarfx.view

public Class MonthEntryViewSkin

extends SkinBase<MonthEntryView>
Class Inheritance
Annotations
@SuppressWarnings:javadoc
Imports
com.calendarfx.model.Calendar, .Entry, com.calendarfx.view.Messages, .MonthEntryView, .MonthView, javafx.beans.InvalidationListener, .WeakInvalidationListener, javafx.collections.ObservableList, javafx.scene.control.Label, .SkinBase, javafx.scene.shape.Circle, java.text.MessageFormat, java.time.ZoneId, java.time.format.DateTimeFormatter, .FormatStyle, .TextStyle, java.util.Locale, .Objects

Field Summary

Modifier and TypeField and Description
protected Circle
private final DateTimeFormatter
protected Label
protected Label
private final InvalidationListener
private final WeakInvalidationListener

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected double
computePrefHeight(double
the width that should be used if preferred height depends on it
width
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase.

protected DateTimeFormatter

Returns:

the date time formatter.
getDateTimeFormatter
()

Sets the Date Time Format on the Label that shows the time.

protected void
layoutChildren(double
the x position
contentX
,
double
the y position
contentY
,
double
the width
contentWidth
,
double
the height
contentHeight
)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

protected void
Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefWidthconsumeMouseEventsdisposeexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

colorDotback to summary
protected Circle colorDot
formatterback to summary
private final DateTimeFormatter formatter
timeLabelback to summary
protected Label timeLabel
titleLabelback to summary
protected Label titleLabel
updateViewListenerback to summary
private final InvalidationListener updateViewListener
weakUpdateViewListenerback to summary
private final WeakInvalidationListener weakUpdateViewListener

Constructor Detail

MonthEntryViewSkinback to summary
public MonthEntryViewSkin(MonthEntryView view)

Method Detail

computePrefHeightback to summary
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Doc from javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase. The default implementation calculates this height as the height of the area occupied by its managed children when they are positioned at their current positions at their preferred heights.

Parameters
width:double

the width that should be used if preferred height depends on it

topInset:double

the pixel snapped top inset

rightInset:double

the pixel snapped right inset

bottomInset:double

the pixel snapped bottom inset

leftInset:double

the pixel snapped left inset

Returns:double

the calculated preferred height

Annotations
@Override
getDateTimeFormatterback to summary
protected DateTimeFormatter getDateTimeFormatter()

Sets the Date Time Format on the Label that shows the time.

Returns:DateTimeFormatter

the date time formatter.

layoutChildrenback to summary
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Doc from javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

Parameters
contentX:double

the x position

contentY:double

the y position

contentWidth:double

the width

contentHeight:double

the height

Annotations
@Override
updateViewback to summary
protected void updateView()