Example usage for com.vaadin.ui AbstractComponent setData

List of usage examples for com.vaadin.ui AbstractComponent setData

Introduction

In this page you can find the example usage for com.vaadin.ui AbstractComponent setData.

Prototype

public void setData(Object data) 

Source Link

Document

Sets the data object, that can be used for any application specific data.

Usage

From source file:org.abstractform.vaadin.VaadinFormToolkit.java

License:Apache License

protected final com.vaadin.ui.Component buildField(Field field, Map<String, AbstractComponent> mapComponents,
        List<String> fieldIdList, Map<String, Object> extraObjects) {
    fieldIdList.add(field.getId());/*from  w  w w .j  a va2  s. c o m*/
    AbstractComponent component = internalBuildField(field, extraObjects);
    VaadinFieldValueAccessor accessor = getValueAccessor(field, component);
    component.setData(new VaadinDataObject(field, accessor));
    addComponent(mapComponents, field, component);
    return component;
}

From source file:org.semanticsoft.vaaclipse.presentation.renderers.VaadinRenderer.java

License:Open Source License

public void unbindWidget(MUIElement element) {
    if (element.getWidget() != null && element.getWidget() instanceof AbstractComponent) {
        AbstractComponent component = (AbstractComponent) element.getWidget();
        component.setData(null);
    }//from w ww .  ja  va  2s . co m
}

From source file:org.semanticsoft.vaaclipse.presentation.renderers.VaadinRenderer.java

License:Open Source License

@Override
public void bindWidget(MUIElement element) {
    if (element.getWidget() != null && element.getWidget() instanceof AbstractComponent) {
        AbstractComponent component = (AbstractComponent) element.getWidget();
        component.setData(element);
    }//ww w  .  j av a2s  . c o m
}