public final class PropertyValues
extends java.lang.Object
Value
instances based on JavaFX models and propertiesModifier and Type | Method and Description |
---|---|
static StringValue<java.math.BigDecimal> |
bigDecimalPropertyValue(javafx.beans.property.StringProperty property,
java.text.DecimalFormat decimalFormat) |
static Value<java.lang.Boolean> |
booleanPropertyValue(javafx.beans.property.BooleanProperty booleanProperty) |
static StringValue<java.time.LocalDate> |
datePropertyValue(javafx.beans.property.StringProperty property,
java.time.format.DateTimeFormatter dateTimeFormatter) |
static StringValue<java.lang.Double> |
doublePropertyValue(javafx.beans.property.StringProperty property,
java.text.NumberFormat numberFormat) |
static StringValue<java.lang.Integer> |
integerPropertyValue(javafx.beans.property.StringProperty property,
java.text.NumberFormat numberFormat) |
static StringValue<java.lang.Long> |
longPropertyValue(javafx.beans.property.StringProperty property,
java.text.NumberFormat numberFormat) |
static Value |
lookupValue(EntityLookupModel lookupModel) |
static java.lang.Object |
parseStrict(java.text.Format format,
java.lang.String value)
Parses the given value using the given format
|
static Value |
selectedItemValue(javafx.scene.control.SingleSelectionModel<Item> selectionModel) |
static <V> Value<V> |
selectedValue(javafx.scene.control.SingleSelectionModel<V> selectionModel) |
static StringValue<java.lang.String> |
stringPropertyValue(javafx.beans.property.StringProperty property) |
static StringValue<java.time.LocalTime> |
timePropertyValue(javafx.beans.property.StringProperty property,
java.time.format.DateTimeFormatter dateTimeFormatter) |
static StringValue<java.time.LocalDateTime> |
timestampPropertyValue(javafx.beans.property.StringProperty property,
java.time.format.DateTimeFormatter dateTimeFormatter) |
public static Value selectedItemValue(javafx.scene.control.SingleSelectionModel<Item> selectionModel)
selectionModel
- the selection modelValue
based on the selected item in the given selection modelpublic static Value<java.lang.Boolean> booleanPropertyValue(javafx.beans.property.BooleanProperty booleanProperty)
booleanProperty
- the boolean propertyValue
based on the given boolean propertypublic static <V> Value<V> selectedValue(javafx.scene.control.SingleSelectionModel<V> selectionModel)
V
- the type of the actual valueselectionModel
- the selection modelValue
based on the selected item in the given selection modelpublic static Value lookupValue(EntityLookupModel lookupModel)
lookupModel
- the lookup modelValue
based on the entities selected in the given lookup modelpublic static StringValue<java.lang.String> stringPropertyValue(javafx.beans.property.StringProperty property)
property
- the string propertyStringValue
based on the given string propertypublic static StringValue<java.lang.Integer> integerPropertyValue(javafx.beans.property.StringProperty property, java.text.NumberFormat numberFormat)
property
- the string propertynumberFormat
- the format to useStringValue
based on the given string propertypublic static StringValue<java.lang.Long> longPropertyValue(javafx.beans.property.StringProperty property, java.text.NumberFormat numberFormat)
property
- the string propertynumberFormat
- the format to useStringValue
based on the given string propertypublic static StringValue<java.lang.Double> doublePropertyValue(javafx.beans.property.StringProperty property, java.text.NumberFormat numberFormat)
property
- the string propertynumberFormat
- the format to useStringValue
based on the given string propertypublic static StringValue<java.math.BigDecimal> bigDecimalPropertyValue(javafx.beans.property.StringProperty property, java.text.DecimalFormat decimalFormat)
property
- the string propertydecimalFormat
- the format to useStringValue
based on the given string propertypublic static StringValue<java.time.LocalDate> datePropertyValue(javafx.beans.property.StringProperty property, java.time.format.DateTimeFormatter dateTimeFormatter)
property
- the string propertydateTimeFormatter
- the formatter to useLocalDate
StringValue
based on the given string propertypublic static StringValue<java.time.LocalDateTime> timestampPropertyValue(javafx.beans.property.StringProperty property, java.time.format.DateTimeFormatter dateTimeFormatter)
property
- the string propertydateTimeFormatter
- the formatter to useLocalDateTime
StringValue
based on the given string propertypublic static StringValue<java.time.LocalTime> timePropertyValue(javafx.beans.property.StringProperty property, java.time.format.DateTimeFormatter dateTimeFormatter)
property
- the string propertydateTimeFormatter
- the formatter to useLocalTime
StringValue
based on the given string propertypublic static java.lang.Object parseStrict(java.text.Format format, java.lang.String value) throws java.text.ParseException
format
- the formatvalue
- the valuejava.text.ParseException
- in case of an exception