List of usage examples for com.vaadin.ui AbstractComponent setData
public void setData(Object data)
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 }