public interface IComponent extends ISerializable
| Modifier and Type | Method and Description |
|---|---|
default java.lang.Class<? extends IComponent> |
getClassForComponentMap()
Return the class to put into an entity map.
|
default java.util.List<javafx.beans.property.SimpleObjectProperty<?>> |
getProperties()
Gets any properties this component holds.
|
default <T> javafx.beans.property.SimpleObjectProperty<T> |
getProperty(java.lang.Class<T> propertyClass,
java.lang.String name)
Gets a specific property with specified value class and with specified name.
|
default javafx.beans.property.SimpleObjectProperty<?> |
getProperty(java.lang.String name)
Get property with specified name.
|
default java.util.Map<java.lang.String,java.lang.Class<?>> |
getPropertyNamesAndClasses()
Get a map, where each entry is a component name to it's value class.
|
default void |
removeBindings()
Remove the bindings from all this Component's properties.
|
clone, serialize, serializeToStringdefault java.util.List<javafx.beans.property.SimpleObjectProperty<?>> getProperties()
default javafx.beans.property.SimpleObjectProperty<?> getProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
name - of property to getjava.lang.IllegalArgumentException - if no such propertydefault <T> javafx.beans.property.SimpleObjectProperty<T> getProperty(java.lang.Class<T> propertyClass,
java.lang.String name)
throws java.lang.IllegalArgumentException
Example call for a position: SimpleObjectProperty$Double$ x = position.getProperty(Double, "X");
T - the type of the property's held valuepropertyClass - the class of the property's held valuename - the name of propertyjava.lang.IllegalArgumentException - if incorrect propertyClass or no property with this name is presentdefault java.util.Map<java.lang.String,java.lang.Class<?>> getPropertyNamesAndClasses()
default java.lang.Class<? extends IComponent> getClassForComponentMap()
default void removeBindings()