Package org.dellroad.stuff.vaadin8
Annotation Type FieldBuilder.AbstractComponent
-
@Retention(RUNTIME) @Target(METHOD) @Documented public static @interface FieldBuilder.AbstractComponent
Specifies how a Java property should be edited using anAbstractComponent.- See Also:
FieldBuilder
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcaptionGet the caption associated with this field.booleancaptionAsHtmlGet whether caption is HTML.StringdescriptionGet the description associated with this field.booleanenabledGet whether this field is enabled.StringheightGet height.StringidGet the unique ID for this field used for testing purposes.StringprimaryStyleNameGet primary style name.booleanresponsiveGet whether field is responsive.String[]styleNamesGet style names.Class<? extends AbstractComponent>typeGet theAbstractComponenttype that will edit the property.booleanvisibleGet whether field is visible.StringwidthGet width.
-
-
-
Element Detail
-
type
Class<? extends AbstractComponent> type
Get theAbstractComponenttype that will edit the property.Although this property has a default value, it must be overridden either in this annotation, or by also including a more specific annotation such as
FieldBuilder.TextField.- Returns:
- field type
- Default:
- com.vaadin.ui.AbstractComponent.class
-
-
-
styleNames
String[] styleNames
Get style names.- Returns:
- style names
- See Also:
AbstractComponent.addStyleName(java.lang.String)
- Default:
- {}
-
-
-
primaryStyleName
String primaryStyleName
Get primary style name.- Returns:
- primary style name
- See Also:
AbstractComponent.setPrimaryStyleName(java.lang.String)
- Default:
- ""
-
-
-
width
String width
Get width.- Returns:
- field width
- See Also:
AbstractComponent.setWidth(String)
- Default:
- ""
-
-
-
height
String height
Get height.- Returns:
- field height
- See Also:
AbstractComponent.setHeight(String)
- Default:
- ""
-
-
-
caption
String caption
Get the caption associated with this field.- Returns:
- field caption
- See Also:
AbstractComponent.setCaption(java.lang.String)
- Default:
- ""
-
-
-
captionAsHtml
boolean captionAsHtml
Get whether caption is HTML.- Returns:
- true for HTML caption
- See Also:
AbstractComponent.setCaptionAsHtml(boolean)
- Default:
- false
-
-
-
description
String description
Get the description associated with this field.- Returns:
- field description
- See Also:
AbstractComponent.setDescription(java.lang.String)
- Default:
- ""
-
-
-
id
String id
Get the unique ID for this field used for testing purposes.- Returns:
- field id
- See Also:
AbstractComponent.setId(java.lang.String)
- Default:
- ""
-
-
-
enabled
boolean enabled
Get whether this field is enabled.- Returns:
- true to enable field
- See Also:
AbstractComponent.setEnabled(boolean)
- Default:
- true
-
-
-
responsive
boolean responsive
Get whether field is responsive.- Returns:
- true if value is responsive
- See Also:
AbstractComponent.setResponsive(boolean)
- Default:
- false
-
-
-
visible
boolean visible
Get whether field is visible.- Returns:
- true if value is visible
- See Also:
AbstractComponent.setVisible(boolean)
- Default:
- true
-
-