public class OrdererBase extends java.lang.Object implements Orderer
VParent
,
VCalendar
,
VComponentBase
,
PropertyBase
,
RecurrenceRule2
Constructor and Description |
---|
OrdererBase(VParent aParent)
Create an
OrdererBase for the VParent parameter |
Modifier and Type | Method and Description |
---|---|
java.util.Map<VChild,java.lang.Integer> |
elementSortOrderMap()
|
void |
registerSortOrderProperty(javafx.beans.property.ObjectProperty<? extends VChild> property)
<p>Register an ObjectProperty with the
Orderer .</p>
<p>Enables maintaining automatic sort order.</p> |
void |
registerSortOrderProperty(javafx.collections.ObservableList<? extends VChild> list)
<p>Register an ObservableList with the
Orderer .</p>
<p>Enables maintaining automatic sort order.</p> |
<T extends VChild> |
replaceList(javafx.collections.ObservableList<T> oldList,
javafx.collections.ObservableList<T> newList)
<p>Replace the elements in the oldList with those in newList.
|
java.util.List<java.lang.String> |
sortedContent()
<p>The list of sorted content text for
VChild elements. |
void |
unregisterSortOrderProperty(javafx.beans.property.ObjectProperty<? extends VChild> property)
Unregister an ObjectProperty with the
Orderer |
void |
unregisterSortOrderProperty(javafx.collections.ObservableList<? extends VChild> list)
Unregister an ObservableList with the
Orderer |
public OrdererBase(VParent aParent)
Create an OrdererBase
for the VParent
parameter
public java.util.Map<VChild,java.lang.Integer> elementSortOrderMap()
Orderer
<p>Sort order map for VChild
elements of a VParent
.</p>
<p>The map key is a VChild
. The map value is its sort order.</p>
<p>Under normal conditions, this map shouldn’t be modified. Only modify it when you want to force a specific sort order.</p>
elementSortOrderMap
in interface Orderer
public void registerSortOrderProperty(javafx.collections.ObservableList<? extends VChild> list)
Orderer
<p>Register an ObservableList with the Orderer
.</p>
<p>Enables maintaining automatic sort order.</p>
registerSortOrderProperty
in interface Orderer
list
- ObservableList from a property containing an ObservableListpublic void unregisterSortOrderProperty(javafx.collections.ObservableList<? extends VChild> list)
Orderer
Unregister an ObservableList with the Orderer
unregisterSortOrderProperty
in interface Orderer
public void registerSortOrderProperty(javafx.beans.property.ObjectProperty<? extends VChild> property)
Orderer
<p>Register an ObjectProperty with the Orderer
.</p>
<p>Enables maintaining automatic sort order.</p>
registerSortOrderProperty
in interface Orderer
public void unregisterSortOrderProperty(javafx.beans.property.ObjectProperty<? extends VChild> property)
Orderer
Unregister an ObjectProperty with the Orderer
unregisterSortOrderProperty
in interface Orderer
public java.util.List<java.lang.String> sortedContent()
Orderer
<p>The list of sorted content text for VChild
elements.
sortedContent
in interface Orderer
VElement.toContent()
public <T extends VChild> void replaceList(javafx.collections.ObservableList<T> oldList, javafx.collections.ObservableList<T> newList)
Orderer
<p>Replace the elements in the oldList with those in newList. Copies sort order values from the elements of oldList when newList items are added to the elementSortOrderMap.</p>
<p>If the number of elements in oldList is less than or equal to the number of elements in the newList then all the elements in the newList get the sort order of the elements in the oldList, in the same order they are found in the map.</p>
<p>If the number of elements in the oldList is greater than the number of elements in the newList then only the number of elements in the oldList have their sort order copied to the newList elements. Remaining newList elements will get new sort order values when they are added.</p>
replaceList
in interface Orderer