Top Description Fields Constructors Methods
com.calendarfx.view

public Class DayEntryView

extends EntryViewBase<DayView>
Class Inheritance
Imports
com.calendarfx.model.Entry, impl.com.calendarfx.view.DayEntryViewSkin, javafx.beans.property.BooleanProperty, .ReadOnlyMapWrapper, .SimpleBooleanProperty, javafx.collections.FXCollections, .ObservableMap, javafx.geometry.Pos, javafx.scene.Node, javafx.scene.control.Skin, java.util.ArrayList, .List

A view representing an entry inside the DayView control. Instances of this type are created by the DayView itelf via a pluggable factory. The image below shows the default apperance of this view. Day Entry View
See Also
DayView#entryViewFactoryProperty()

Field Summary

Modifier and TypeField and Description
private final BooleanProperty
private final ReadOnlyMapWrapper<Pos, List<Node>>

Constructor Summary

AccessConstructor and Description
public
DayEntryView(Entry<?>
the entry for which the view will be created
entry
)

Constructs a new entry view for the given calendar entry.

Method Summary

Modifier and TypeMethod and Description
public void
addNode(Pos
the position for the node
pos
,
Node
the node itself
node
)

Adds a node to the given position to the entry view.

public void
clearNodes()

Removes all nodes from all positions.

protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control.

public final ObservableMap<Pos, List<Node>>

Returns:

the map of nodes
getNodes
()

A day entry view can be decorated with symbols / nodes.

public final boolean
public final BooleanProperty

Returns:

true if the entry has a minimum height that guarantees the visibility of the title label
minHeightEqualToTitleHeightProperty
()

Controls whether the day entry view will at least always have the height of the title label.

public final ReadOnlyMapWrapper<Pos, List<Node>>

Returns:

the nodes map
nodesProperty
()

Returns the hashmap used to store nodes used for decorating the entry view.

public void
removeNode(Node
the node to remove
node
)

Removes the given node from the entry view.

public final void
setMinHeightEqualToTitleHeight(boolean minHeightEqualToTitleHeight)

Inherited from com.calendarfx.view.EntryViewBase:
alignmentStrategyPropertybouncecompareTodateControlPropertydetailsClickCountPropertydraggedEndPropertydraggedPropertydraggedStartPropertyenableBouncePropertyendDatePropertyendTimePropertygetAlignmentStrategygetDateControlgetDetailsClickCountgetEndDategetEndTimegetEntrygetHeightLayoutStrategygetLayergetPositiongetPropertySheetItemsgetStartDategetStartTimegetWidthPercentageheightLayoutStrategyPropertyhiddenPropertyintersectsisDraggedisDraggedEndisDraggedStartisEnableBounceisHiddenisReadOnlyisSelectedlayerPropertypositionPropertyselectedPropertysetAlignmentStrategysetDetailsClickCountsetEnableBouncesetEntrysetHeightLayoutStrategysetLayersetWidthPercentagestartDatePropertystartTimePropertytoStringwidthPercentageProperty

Field Detail

minHeightEqualToTitleHeightback to summary
private final BooleanProperty minHeightEqualToTitleHeight
nodesback to summary
private final ReadOnlyMapWrapper<Pos, List<Node>> nodes

Constructor Detail

DayEntryViewback to summary
public DayEntryView(Entry<?> entry)

Constructs a new entry view for the given calendar entry.

Parameters
entry:Entry<?>

the entry for which the view will be created

Method Detail

addNodeback to summary
public void addNode(Pos pos, Node node)

Adds a node to the given position to the entry view.

Parameters
pos:Pos

the position for the node

node:Node

the node itself

clearNodesback to summary
public void clearNodes()

Removes all nodes from all positions.

createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Doc from javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).

Returns:Skin<?>

new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.

Annotations
@Override
getNodesback to summary
public final ObservableMap<Pos, List<Node>> getNodes()

A day entry view can be decorated with symbols / nodes. These nodes are stored in a hash map where the position of the nodes is the key.

Returns:ObservableMap<Pos, List<Node>>

the map of nodes

isMinHeightEqualToTitleHeightback to summary
public final boolean isMinHeightEqualToTitleHeight()
minHeightEqualToTitleHeightPropertyback to summary
public final BooleanProperty minHeightEqualToTitleHeightProperty()

Controls whether the day entry view will at least always have the height of the title label.

Returns:BooleanProperty

true if the entry has a minimum height that guarantees the visibility of the title label

nodesPropertyback to summary
public final ReadOnlyMapWrapper<Pos, List<Node>> nodesProperty()

Returns the hashmap used to store nodes used for decorating the entry view.

Returns:ReadOnlyMapWrapper<Pos, List<Node>>

the nodes map

removeNodeback to summary
public void removeNode(Node node)

Removes the given node from the entry view.

Parameters
node:Node

the node to remove

setMinHeightEqualToTitleHeightback to summary
public final void setMinHeightEqualToTitleHeight(boolean minHeightEqualToTitleHeight)