| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private final NotificationView | |
| private static final StringConverter | |
| private final ObjectProperty | |
| private final S | |
| private static final PseudoClass | |
| private static final DateTimeFormatter | |
| private final BooleanProperty | |
| private final BooleanProperty | |
| private final StackPane | |
| private final StackPane | |
| private ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMaxHeight(double width)
Overrides javafx. Computes the maximum height of this region. |
| protected double | computeMinHeight(double width)
Overrides javafx. Computes the minimum height of this region. |
| protected double | computePrefHeight(double width)
Overrides javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. |
| public final ObjectProperty | Returns: the optional graphicAn (optional) detailed UI that can be revealed interactively by the user. |
| public final Node | |
| public final Node | |
| public final S | |
| public final StringConverter | |
| public final ObjectProperty | Returns: the graphic / the iconAn (optional) node that will be used as the notification's graphic object / icon on the left-hand side. |
| public final boolean | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final BooleanProperty | |
| public final ObjectProperty | Returns: the time converterA converter that is used to convert the date and time of the notification into a human-readable text. |
| public void | updateDateAndTimeLabel()
Updates the date and time label with a human-readable text that is relative to the current time, e.g. "now", "yesterday". |
| private void | |
| private void |
| content | back to summary |
|---|---|
| private final ObjectProperty<Node> content | |
| contentPane | back to summary |
|---|---|
| private final NotificationView<T, S>. | |
| DEFAULT_TIME_CONVERTER | back to summary |
|---|---|
| private static final StringConverter<ZonedDateTime> DEFAULT_TIME_CONVERTER | |
| graphic | back to summary |
|---|---|
| private final ObjectProperty<Node> graphic | |
| notification | back to summary |
|---|---|
| private final S notification | |
| PSEUDO_CLASS_EXPANDED | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_EXPANDED | |
| SHORT_TIME_FORMATTER | back to summary |
|---|---|
| private static final DateTimeFormatter SHORT_TIME_FORMATTER | |
| showContent | back to summary |
|---|---|
| private final BooleanProperty showContent | |
| stackingEnabled | back to summary |
|---|---|
| private final BooleanProperty stackingEnabled | |
| stackNotification1 | back to summary |
|---|---|
| private final StackPane stackNotification1 | |
| stackNotification2 | back to summary |
|---|---|
| private final StackPane stackNotification2 | |
| timeConverter | back to summary |
|---|---|
| private ObjectProperty<StringConverter<ZonedDateTime>> timeConverter | |
| NotificationView | back to summary |
|---|---|
| public NotificationView(S notification) Constructs a new view for the given notification.
| |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width) Overrides javafx. Doc from javafx. Computes the maximum height of this region. Returns Double.MAX_VALUE by default. Region subclasses may override this method to return a different value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width) Overrides javafx. Doc from javafx. Computes the minimum height of this region. Returns the sum of the top and bottom insets by default. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| contentProperty | back to summary |
|---|---|
| public final ObjectProperty An (optional) detailed UI that can be revealed interactively by the user. Example: a map view that shows the location of a meeting scheduled in a calendar.
| |
| getContent | back to summary |
|---|---|
| public final Node getContent() | |
| getGraphic | back to summary |
|---|---|
| public final Node getGraphic() | |
| getNotification | back to summary |
|---|---|
| public final S getNotification() The notification for which the view was created.
| |
| getTimeConverter | back to summary |
|---|---|
| public final StringConverter | |
| graphicProperty | back to summary |
|---|---|
| public final ObjectProperty An (optional) node that will be used as the notification's graphic object / icon on the left-hand side.
| |
| isShowContent | back to summary |
|---|---|
| public final boolean isShowContent() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| setContent | back to summary |
|---|---|
| public final void setContent(Node content) | |
| setGraphic | back to summary |
|---|---|
| public final void setGraphic(Node graphic) | |
| setShowContent | back to summary |
|---|---|
| public final void setShowContent(boolean showContent) | |
| setTimeConverter | back to summary |
|---|---|
| public final void setTimeConverter(StringConverter<ZonedDateTime> timeConverter) | |
| showContentProperty | back to summary |
|---|---|
| public final BooleanProperty showContentProperty() | |
| timeConverterProperty | back to summary |
|---|---|
| public final ObjectProperty A converter that is used to convert the date and time of the notification into a human-readable text. The default converter creates a text like "now", "yesterday", "2 days ago", etc...
| |
| updateDateAndTimeLabel | back to summary |
|---|---|
| public void updateDateAndTimeLabel() Updates the date and time label with a human-readable text that is relative to the current time, e.g. "now", "yesterday". | |
| updateStyle | back to summary |
|---|---|
| private void updateStyle(S notification) | |
| updateStyleClass | back to summary |
|---|---|
| private void updateStyleClass() | |
| Modifier and Type | Field and Description |
|---|---|
| private final StackPane | |
| private FadeTransition | |
| private final Label | |
| private final InvalidationListener | |
| private final WeakInvalidationListener |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| private void | |
| private void | |
| private void | |
| private void |
| closeIconWrapper | back to summary |
|---|---|
| private final StackPane closeIconWrapper | |
| fadeTransition | back to summary |
|---|---|
| private FadeTransition fadeTransition | |
| timeLabel | back to summary |
|---|---|
| private final Label timeLabel | |
| updateStackClassListener | back to summary |
|---|---|
| private final InvalidationListener updateStackClassListener | |
| weakUpdateStackClassListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakUpdateStackClassListener | |
| ContentPane | back to summary |
|---|---|
| public ContentPane() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| updateActions | back to summary |
|---|---|
private void updateActions(HBox actionsBox)
| |
| updateCenterNode | back to summary |
|---|---|
| private void updateCenterNode(VBox center) | |
| updateDateAndTimeLabel | back to summary |
|---|---|
| private void updateDateAndTimeLabel() | |
| updateStackStyle | back to summary |
|---|---|
| private void updateStackStyle() | |