- java.lang.Object
-
- com.iamsoft.util.ui.javafx.test.PersonUtils
-
public final class PersonUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPersonUtils.AttribPerson attribute types.
-
Field Summary
Fields Modifier and Type Field Description static Function<javafx.collections.ObservableList<Person>,Person>ACCUMULATORThere are several ways to setup property binding.static UnaryOperator<Person>CLONE_FUNCTIONstatic StringID_FRIENDLY_NAMEstatic StringID_KEYstatic Function<Person,Collection<? extends javafx.beans.Observable>>PROPERTIES_FUNCTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Personcreate(Map<String,Object> pData)static Map<String,Object>extract(Person pPerson)static Map<String,javafx.scene.control.TableColumn<Person,?>>makeColumns()static Iterator<Person>personIterator()Infinite iterator of person objects.static Iterator<Person>personIterator(Random pRandom)Infinite iterator of person objects.static voidupdate(Person pPerson, Map<String,Object> pData)
-
-
-
Field Detail
-
ID_KEY
public static final String ID_KEY
- See Also:
- Constant Field Values
-
ID_FRIENDLY_NAME
public static final String ID_FRIENDLY_NAME
- See Also:
- Constant Field Values
-
CLONE_FUNCTION
public static final UnaryOperator<Person> CLONE_FUNCTION
-
ACCUMULATOR
public static final Function<javafx.collections.ObservableList<Person>,Person> ACCUMULATOR
There are several ways to setup property binding. Generally speaking, code will be more efficient if we listen only to relevant properties and recalculate only when necessary. However, efficiency comes at the cost of more code. Below function demonstrates several ways to monitor properties. In practice, one would just pick a single idiom.
-
PROPERTIES_FUNCTION
public static final Function<Person,Collection<? extends javafx.beans.Observable>> PROPERTIES_FUNCTION
-
-