Annotation Type UICssLayout
-
@Retention(RUNTIME) @Target(TYPE) @LinkkiBoundProperty(org.linkki.core.binding.descriptor.property.annotation.BoundPropertyCreator.EmptyPropertyCreator.class) public @interface UICssLayout
Marks a group of components in aDiv. It provides a simple DOM structure, which can be freely styled by CSS. There is no predefined layouting information. Notable differences to other layouts are- Simpler DOM structure.
- Full developer control without the restriction of templates.
- Developer is responsible for cross-browser consistency
- Relative size calculations may differ in some situations
- Faster rendering in some situations
UICssLayoutthat includes regular UI element annotations like@UITextFieldon its methods. CallVaadinUiCreator.createComponent(Object, org.linkki.core.binding.BindingContext)with an instance of that class to create theUICssLayoutand its children.Use the
styleNames()attribute to designate one or more css classes for this component. If no names are given, the Vaadin default CSS class name is "csslayout".- Implementation Note:
- Uses
HasStyle.setClassName(String)to set the style class.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String[]styleNamesIt is recommended that you declare a CSS class in order to style this and contained elements.
-
-
-
Element Detail
-
styleNames
String[] styleNames
It is recommended that you declare a CSS class in order to style this and contained elements. These style names are statically applied to the layout. In order to get dynamic style names use the functionality of@BindStyleNames.- Default:
- {}
-
-