T - The type of value held in thi sproperty.public class AbstractProperty<T> extends Object implements Property<T>
An abstract base class for Property that includes most of the essential plumbing
to handle attributes and getting and setting values.
Property.Description, Property.Editable, Property.Getter<T>, Property.GetterAttribute, Property.Label, Property.Name, Property.Setter<T>, Property.SetterAttribute, Property.Test, Property.Widget| Constructor and Description |
|---|
AbstractProperty(ContentType<T> contentType) |
| Modifier and Type | Method and Description |
|---|---|
void |
freeze() |
<V extends Attribute> |
getAttribute(Class<V> type) |
AttributeSet |
getAttributes() |
ContentType<T> |
getContentType() |
Property.Description |
getDescription() |
Property.Label |
getLabel() |
Tags |
getTags() |
AbstractProperty<T> |
getter(Property.Getter<T> getter) |
T |
getValue(Entity entity) |
Property.Widget |
getWidget() |
void |
setAttributes(Attribute... atts) |
AbstractProperty<T> |
setter(Property.Setter<T> setter) |
void |
setValue(Entity entity,
T value) |
public AbstractProperty(ContentType<T> contentType)
public AbstractProperty<T> getter(Property.Getter<T> getter)
public AbstractProperty<T> setter(Property.Setter<T> setter)
public void setAttributes(Attribute... atts)
public Property.Label getLabel()
public Property.Description getDescription()
public Property.Widget getWidget()
public <V extends Attribute> V getAttribute(Class<V> type)
getAttribute in interface Property<T>public AttributeSet getAttributes()
getAttributes in interface Property<T>public ContentType<T> getContentType()
getContentType in interface Property<T>Copyright © 2021. All Rights Reserved.