public class ViewProperty<T> extends Object
A property of a EntityView
. A View Property allows an EntityView to declare parameters
that it will accept to customize its rendering or behaviour. The property can be "filled" by adding a ViewPropertyParameter
to the node tree in the view’s view node or any parent. This allows a view to, for example, accept direction on what UIID
to use in the component, or which Tags to bind parts of its UI to.
UI.param(com.codename1.rad.ui.ViewProperty, java.lang.Object)
,
UI#param(com.codename1.rad.ui.ViewProperty, com.codename1.rad.models.Tag…)
Constructor and Description |
---|
ViewProperty(ContentType<T> contentType,
Attribute... attributes) |
Modifier and Type | Method and Description |
---|---|
static ViewProperty<Boolean> |
booleanProperty(Attribute... atts) |
static ViewProperty<Double> |
doubleProperty(Attribute... atts) |
static ViewProperty<Float> |
floatProperty(Attribute... atts) |
ContentType<T> |
getContentType() |
static ViewProperty<Integer> |
intProperty(Attribute... atts) |
static ViewProperty<String> |
stringProperty(Attribute... atts) |
public ViewProperty(ContentType<T> contentType, Attribute... attributes)
public ContentType<T> getContentType()
public static ViewProperty<String> stringProperty(Attribute... atts)
public static ViewProperty<Integer> intProperty(Attribute... atts)
public static ViewProperty<Boolean> booleanProperty(Attribute... atts)
public static ViewProperty<Double> doubleProperty(Attribute... atts)
public static ViewProperty<Float> floatProperty(Attribute... atts)
Copyright © 2022. All Rights Reserved.