@OpenApiAll
public class PropertyPool
extends java.lang.Object
Be careful with changing the value of property taken from this pool. Property is mutable object!!!
| Constructor and Description |
|---|
PropertyPool() |
| Modifier and Type | Method and Description |
|---|---|
static BooleanProperty |
getBooleanProperty(BooleanProperty p)
Returns shared instance of boolean property with the same id and value as given property.
|
static BooleanProperty |
getBooleanProperty(java.lang.String id,
boolean value)
Returns shared instance of boolean property with the given id and value.
|
static BooleanProperty |
getBooleanProperty(java.lang.String id,
boolean value,
java.lang.String group)
Returns shared instance of boolean property with the given id and value.
|
static ChoiceProperty |
getChoiceProperty(ChoiceProperty p)
Returns shared instance of choice property with the same id and value as given property.
|
static ChoiceProperty |
getChoiceProperty(java.lang.String id,
java.lang.Object value,
java.util.List possibleValues)
Returns shared instance of choice property with the given id, value and possible values for selection
|
static ChoiceProperty |
getChoiceProperty(java.lang.String id,
java.lang.Object value,
java.util.List possibleValues,
java.lang.String group)
Returns shared instance of choice property with the given id, group, value and possible values for selection
|
static ColorProperty |
getColorProperty(ColorProperty p)
Returns shared instance of color property with the same id and value as given property.
|
static ColorProperty |
getColorProperty(java.lang.String id,
java.awt.Color value)
Returns shared instance of color property with the given id and value.
|
static ColorProperty |
getColorProperty(java.lang.String id,
java.awt.Color value,
java.lang.String group)
Returns shared instance of color property with the given id and value.
|
static FontProperty |
getFontProperty(FontProperty p)
Returns shared instance of font property with the same id and value as given property.
|
static FontProperty |
getFontProperty(java.lang.String id,
java.awt.Font value)
Returns shared instance of font property with the given id and value.
|
static FontProperty |
getFontProperty(java.lang.String id,
java.awt.Font value,
java.lang.String group)
Returns shared instance of font property with the given id and value.
|
static Property |
getProperty(Property property)
Returns shared instance of given property.
|
public static BooleanProperty getBooleanProperty(BooleanProperty p)
p - the given property.public static BooleanProperty getBooleanProperty(java.lang.String id, boolean value)
id - the property id.value - the given value of the property.public static BooleanProperty getBooleanProperty(java.lang.String id, boolean value, @CheckForNull java.lang.String group)
id - the property id.value - the given value of the property.group - property grouppublic static ColorProperty getColorProperty(ColorProperty p)
p - the given property.public static ColorProperty getColorProperty(java.lang.String id, java.awt.Color value)
id - the property id.value - the given value of the property.public static ColorProperty getColorProperty(java.lang.String id, java.awt.Color value, @CheckForNull java.lang.String group)
id - the property id.value - the given value of the property.group - property grouppublic static FontProperty getFontProperty(FontProperty p)
p - the given property.public static FontProperty getFontProperty(java.lang.String id, java.awt.Font value)
id - the property id.value - the given value of the property.public static FontProperty getFontProperty(java.lang.String id, java.awt.Font value, @CheckForNull java.lang.String group)
id - the property id.value - the given value of the property.group - property grouppublic static ChoiceProperty getChoiceProperty(ChoiceProperty p)
p - the given property.public static ChoiceProperty getChoiceProperty(java.lang.String id, java.lang.Object value, java.util.List possibleValues)
id - the property id.value - the given value of the property.public static ChoiceProperty getChoiceProperty(java.lang.String id, @CheckForNull java.lang.Object value, java.util.List possibleValues, @CheckForNull java.lang.String group)
id - the property id.value - the given value of the property.group - property group