Top Description Fields Constructors Methods
com.calendarfx.view.print

public Class PreviewPane

extends CalendarFXControl
Class Inheritance
Imports
com.calendarfx.view.CalendarFXControl, impl.com.calendarfx.view.print.PreviewPaneSkin, javafx.beans.InvalidationListener, javafx.beans.property.ObjectProperty, .SimpleObjectProperty, javafx.scene.control.Skin, java.time.LocalDate

The preview pane wraps around the zoom pane which again wraps around the printable printablePage. The preview pane features a zoom slider and printablePage flipping controls that come in handy when the user requested to print several pages.

Field Summary

Modifier and TypeField and Description
public static final String
protected PrintablePage
private final ObjectProperty<LocalDate>
private final ObjectProperty<LocalDate>
private ZoomPane

Constructor Summary

AccessConstructor and Description
public
PreviewPane()

Constructs a new preview pane.

Method Summary

Modifier and TypeMethod and Description
protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

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

public final PrintablePage
public final LocalDate
public final LocalDate
public final ZoomPane
public void
initialize(PrintablePage printablePage)

public final ObjectProperty<LocalDate>
public final ObjectProperty<LocalDate>
public final void
public final void
Inherited from com.calendarfx.view.CalendarFXControl:
getPropertySheetItemsgetUserAgentStylesheet

Field Detail

DEFAULT_STYLEback to summary
public static final String DEFAULT_STYLE
printablePageback to summary
protected PrintablePage printablePage
printEndDateback to summary
private final ObjectProperty<LocalDate> printEndDate
printStartDateback to summary
private final ObjectProperty<LocalDate> printStartDate
zoomPaneback to summary
private ZoomPane zoomPane

Constructor Detail

PreviewPaneback to summary
public PreviewPane()

Constructs a new preview pane.

Method Detail

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
getPrintablePageback to summary
public final PrintablePage getPrintablePage()
getPrintEndDateback to summary
public final LocalDate getPrintEndDate()
getPrintStartDateback to summary
public final LocalDate getPrintStartDate()
getZoomPaneback to summary
public final ZoomPane getZoomPane()
initializeback to summary
public void initialize(PrintablePage printablePage)
printEndDatePropertyback to summary
public final ObjectProperty<LocalDate> printEndDateProperty()
printStartDatePropertyback to summary
public final ObjectProperty<LocalDate> printStartDateProperty()
setPrintEndDateback to summary
public final void setPrintEndDate(LocalDate date)
setPrintStartDateback to summary
public final void setPrintStartDate(LocalDate date)