T
- the tpye of the wrapped componentpublic class CmsComponentField<T extends com.vaadin.ui.Component> extends java.lang.Object
This seemingly useless class is used as a typesafe way to add component-valued fields to component classes which use the Vaadin declarative UI mechanism when you don't want them to be bound automatically to something in the declarative UI HTML file. We could just use arrays of size 1 instead, but using a custom class is probably easier to understand.
Constructor and Description |
---|
CmsComponentField() |
Modifier and Type | Method and Description |
---|---|
T |
get()
Gets the wrapped component.
|
static <U extends com.vaadin.ui.Component> |
newInstance()
Convenience method for creating a new instance.
|
void |
set(T value)
Sets the wrapped component.
|
public CmsComponentField()
public static <U extends com.vaadin.ui.Component> CmsComponentField<U> newInstance()