| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static interface | Util.
the first (left) type L, the second (right) type R>An interface used for converting an object of one type to an object of another type. |
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static ZonedDateTime | |
| private static LocalDateTime | |
| private static LocalTime | |
| public static LocalDate | Returns: the date of the first day of the weekthe date to adjust date, DayOfWeek the day of week that is considered the start of the week ("Monday" in Germany, "Sunday" in the US) firstDayOfWeek)Adjusts the given date to a new date that marks the beginning of the week where the given date is located. |
| public static LocalDate | Returns: the date of the first day of the weekthe date to adjust date, DayOfWeek the day of week that is considered the start of the week ("Monday" in Germany, "Sunday" in the US) firstDayOfWeek)Adjusts the given date to a new date that marks the end of the week where the given date is located. |
| public static < the type of the left property L, the type of the right property R> void | |
| public static String | Returns: a nice text describing the rulethe rule rrule, LocalDate the start date for the rule startDate)Converts the given recurrence rule (according to RFC 2445) into a human-readable text, e.g. "RRULE:FREQ=DAILY;" becomes "Every day". |
| public static <T> MultipleSelectionModel | |
| public static ScrollBar | Returns: a scrollbar or null if none can be foundthe parent node parent, Orientation the orientation (horizontal, vertical) orientation)Searches for a |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| private static String | |
| private static String | |
| public static boolean | |
| public static boolean | |
| public static void | |
| public static LocalDateTime | |
| public static ZonedDateTime | |
| public static LocalTime |
| Util | back to summary |
|---|---|
| public Util() | |
| adjustField | back to summary |
|---|---|
| private static ZonedDateTime adjustField(ZonedDateTime time, ChronoField field, int stepRate) | |
| adjustField | back to summary |
|---|---|
| private static LocalDateTime adjustField(LocalDateTime time, ChronoField field, int stepRate) | |
| adjustField | back to summary |
|---|---|
| private static LocalTime adjustField(LocalTime time, ChronoField field, int stepRate) | |
| adjustToFirstDayOfWeek | back to summary |
|---|---|
| public static LocalDate adjustToFirstDayOfWeek(LocalDate date, DayOfWeek firstDayOfWeek) Adjusts the given date to a new date that marks the beginning of the week where the given date is located. If "Monday" is the first day of the week and the given date is a "Wednesday" then this method will return a date that is two days earlier than the given date.
| |
| adjustToLastDayOfWeek | back to summary |
|---|---|
| public static LocalDate adjustToLastDayOfWeek(LocalDate date, DayOfWeek firstDayOfWeek) Adjusts the given date to a new date that marks the end of the week where the given date is located. If "Monday" is the first day of the week and the given date is a "Wednesday" then this method will return a date that is four days later than the given date. This method calculates the first day of the week and then adds six days to it.
| |
| bindBidirectional | back to summary |
|---|---|
| public static <L, R> void bindBidirectional(Property<L> leftProperty, Property<R> rightProperty, Util. Creates a bidirectional binding between the two given properties of different types via the
help of a | |
| convertRFC2445ToText | back to summary |
|---|---|
| public static String convertRFC2445ToText(String rrule, LocalDate startDate) Converts the given recurrence rule (according to RFC 2445) into a human-readable text, e.g. "RRULE:FREQ=DAILY;" becomes "Every day". | |
| createEmptySelectionModel | back to summary |
|---|---|
| public static <T> MultipleSelectionModel | |
| findScrollBar | back to summary |
|---|---|
| public static ScrollBar findScrollBar(Parent parent, Orientation orientation) Searches for a
| |
| intersect | back to summary |
|---|---|
| public static boolean intersect(LocalDate aStart, LocalDate aEnd, LocalDate bStart, LocalDate bEnd) | |
| intersect | back to summary |
|---|---|
| public static boolean intersect(LocalTime aStart, LocalTime aEnd, LocalTime bStart, LocalTime bEnd) | |
| intersect | back to summary |
|---|---|
| public static boolean intersect(ZonedDateTime aStart, ZonedDateTime aEnd, ZonedDateTime bStart, ZonedDateTime bEnd) | |
| makeHuman | back to summary |
|---|---|
| private static String makeHuman(WeekDay. | |
| makeHuman | back to summary |
|---|---|
| private static String makeHuman(int num) | |
| removeChildren | back to summary |
|---|---|
| public static boolean removeChildren(Pane parent, Predicate<Node> predicate) | |
| removeChildren | back to summary |
|---|---|
| public static boolean removeChildren(Group group, Predicate<Node> predicate) | |
| runInFXThread | back to summary |
|---|---|
| public static void runInFXThread(Runnable runnable) | |
| truncate | back to summary |
|---|---|
| public static LocalDateTime truncate(LocalDateTime time, ChronoUnit unit, int stepRate, DayOfWeek firstDayOfWeek) | |
| truncate | back to summary |
|---|---|
| public static ZonedDateTime truncate(ZonedDateTime time, ChronoUnit unit, int stepRate, DayOfWeek firstDayOfWeek) | |
| truncate | back to summary |
|---|---|
| public static LocalTime truncate(LocalTime time, ChronoUnit unit, int stepRate) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Util. | |
| private final WeakReference | |
| private final WeakReference | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private | BidirectionalConversionBinding(Property<L> leftProperty, Property<R> rightProperty, Util.
|
| Modifier and Type | Method and Description |
|---|---|
| public Property | |
| public Property | |
| public void | invalidated(Observable
The observable)Observable that became invalidImplements javafx. This method needs to be provided by an implementation of
|
| public boolean | wasGarbageCollected()
Implements javafx. Returns |
| converter | back to summary |
|---|---|
| private final Util. | |
| leftReference | back to summary |
|---|---|
| private final WeakReference<Property<L>> leftReference | |
| rightReference | back to summary |
|---|---|
| private final WeakReference<Property<R>> rightReference | |
| updating | back to summary |
|---|---|
| private boolean updating | |
| BidirectionalConversionBinding | back to summary |
|---|---|
| private BidirectionalConversionBinding(Property<L> leftProperty, Property<R> rightProperty, Util. | |
| getLeftProperty | back to summary |
|---|---|
| public Property | |
| getRightProperty | back to summary |
|---|---|
| public Property | |
| invalidated | back to summary |
|---|---|
| public void invalidated(Observable observable) Implements javafx. Doc from javafx. This method needs to be provided by an implementation of
In general, it is considered bad practice to modify the observed value in this method.
| |
| wasGarbageCollected | back to summary |
|---|---|
| public boolean wasGarbageCollected() Implements javafx. Doc from javafx. Returns
| |
| Modifier and Type | Method and Description |
|---|---|
| public L | |
| public R |
| toLeft | back to summary |
|---|---|
| public L toLeft(R right) | |
| toRight | back to summary |
|---|---|
| public R toRight(L left) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableList | |
| private final ObservableList |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearAndSelect(int
The index that should be the only selected index in this
selection model. index)Implements abstract javafx. A method that clears any selection prior to setting the selection to the given index. |
| public void | clearSelection(int
The selected item to deselect. index)Implements abstract javafx. This method will clear the selection of the item in the given index. |
| public void | clearSelection()
Implements abstract javafx. Clears the selection model of all selected indices. |
| public ObservableList | getSelectedIndices()
Implements abstract javafx. Returns a read-only ObservableList of all selected indices. |
| public ObservableList | getSelectedItems()
Implements abstract javafx. Returns a read-only ObservableList of all selected items. |
| public boolean | isEmpty()
Implements abstract javafx. This method is available to test whether there are any selected indices/items. |
| public boolean | isSelected(int
The index to check as to whether it is currently selected
or not. index)Implements abstract javafx. This method tests whether the given index is currently selected in this SelectionModel. |
| public void | select(int
The position of the item to select in the selection model. index)Implements abstract javafx. This will select the given index in the selection model, assuming the index is within the valid range (i.e. greater than or equal to zero, and less than the total number of items in the underlying data model). |
| public void | select(T
The object to attempt to select in the underlying data model. obj)Implements abstract javafx. This method will attempt to select the index that contains the given object. |
| public void | selectAll()
Implements abstract javafx. Convenience method to select all available indices. |
| public void | selectFirst()
Implements abstract javafx. This method will attempt to select the first index in the control. |
| public void | selectIndices(int
the first index to select index, int... zero or more additional indices to select indices)Implements abstract javafx. This method allows for one or more selections to be set at the same time. |
| public void | selectLast()
Implements abstract javafx. This method will attempt to select the last index in the control. |
| public void | selectNext()
Implements abstract javafx. This method will attempt to select the index directly after the current focused index. |
| public void | selectPrevious()
Implements abstract javafx. This method will attempt to select the index directly before the current focused index. |
| selectedIndices | back to summary |
|---|---|
| private final ObservableList<Integer> selectedIndices | |
| selectedItems | back to summary |
|---|---|
| private final ObservableList<T> selectedItems | |
| EmptySelectionModel | back to summary |
|---|---|
| private EmptySelectionModel() | |
| clearAndSelect | back to summary |
|---|---|
| public void clearAndSelect(int index) Implements abstract javafx. Doc from javafx. A method that clears any selection prior to setting the selection to the
given index. The purpose of this method is to avoid having to call
| |
| clearSelection | back to summary |
|---|---|
| public void clearSelection(int index) Implements abstract javafx. Doc from javafx. This method will clear the selection of the item in the given index. If the given index is not selected, nothing will happen.
| |
| clearSelection | back to summary |
|---|---|
| public void clearSelection() Implements abstract javafx. Doc from javafx. Clears the selection model of all selected indices.
| |
| getSelectedIndices | back to summary |
|---|---|
| public ObservableList Implements abstract javafx. Doc from javafx. Returns a read-only ObservableList of all selected indices. The
ObservableList will be updated by the selection model to always reflect
changes in selection. This can be observed by adding a
| |
| getSelectedItems | back to summary |
|---|---|
| public ObservableList Implements abstract javafx. Doc from javafx. Returns a read-only ObservableList of all selected items. The
ObservableList will be updated further by the selection model to always reflect
changes in selection. This can be observed by adding a
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract javafx. Doc from javafx. This method is available to test whether there are any selected indices/items. It will return true if there are no selected items, and false if there are.
| |
| isSelected | back to summary |
|---|---|
| public boolean isSelected(int index) Implements abstract javafx. Doc from javafx. This method tests whether the given index is currently selected in this SelectionModel.
| |
| select | back to summary |
|---|---|
| public void select(int index) Implements abstract javafx. Doc from javafx. This will select the given index in the selection model, assuming the index is within the valid range (i.e. greater than or equal to zero, and less than the total number of items in the underlying data model). If there is already one or more indices selected in this model, calling
this method will not clear these selections - to do so it is
necessary to first call If the index is already selected, it will not be selected again, or
unselected. However, if multiple selection is implemented, then calling
select on an already selected index will have the effect of making the index
the new selected index (as returned by
| |
| select | back to summary |
|---|---|
| public void select(T obj) Implements abstract javafx. Doc from javafx. This method will attempt to select the index that contains the given object. It will iterate through the underlying data model until it finds an item whose value is equal to the given object. At this point it will stop iterating - this means that this method will not select multiple indices.
| |
| selectAll | back to summary |
|---|---|
| public void selectAll() Implements abstract javafx. Doc from javafx. Convenience method to select all available indices.
| |
| selectFirst | back to summary |
|---|---|
| public void selectFirst() Implements abstract javafx. Doc from javafx. This method will attempt to select the first index in the control. If clearSelection is not called first, this method will have the result of selecting the first index, whilst retaining the selection of any other currently selected indices. If the first index is already selected, calling this method will have no result, and no selection event will take place.
| |
| selectIndices | back to summary |
|---|---|
| public void selectIndices(int index, int... indices) Implements abstract javafx. Doc from javafx. This method allows for one or more selections to be set at the same time. It will ignore any value that is not within the valid range (i.e. greater than or equal to zero, and less than the total number of items in the underlying data model). Any duplication of indices will be ignored. If there is already one or more indices selected in this model, calling this method will not clear these selections - to do so it is necessary to first call clearSelection. The last valid value given will become the selected index / selected item.
| |
| selectLast | back to summary |
|---|---|
| public void selectLast() Implements abstract javafx. Doc from javafx. This method will attempt to select the last index in the control. If clearSelection is not called first, this method will have the result of selecting the last index, whilst retaining the selection of any other currently selected indices. If the last index is already selected, calling this method will have no result, and no selection event will take place.
| |
| selectNext | back to summary |
|---|---|
| public void selectNext() Implements abstract javafx. Doc from javafx. This method will attempt to select the index directly after the current focused index. If clearSelection is not called first, this method will have the result of selecting the next index, whilst retaining the selection of any other currently selected indices. Calling this method will only succeed if:
If any of these conditions is false, no selection event will take place.
| |
| selectPrevious | back to summary |
|---|---|
| public void selectPrevious() Implements abstract javafx. Doc from javafx. This method will attempt to select the index directly before the current focused index. If clearSelection is not called first, this method will have the result of selecting the previous index, whilst retaining the selection of any other currently selected indices. Calling this method will only succeed if:
If any of these conditions is false, no selection event will take place.
| |