List of usage examples for com.vaadin.ui ComponentContainer removeComponent
public void removeComponent(Component c);
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.ViewPresentation.java
License:Open Source License
/** * {@inheritDoc}/* w w w. ja va 2s . co m*/ */ @Override public void unrender() { if (componentBase != null) { // unregister as an locale change listener IViewContext context = ModelUtil.getViewContext(modelAccess.yView); ILocaleChangedService service = context.getService(ILocaleChangedService.ID); if (service != null) { service.removeLocaleListener(this); } ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } componentBase = null; } }
From source file:org.lunifera.web.ecp.uimodel.presentation.vaadin.internal.CheckBoxPresentation.java
License:Open Source License
/** * {@inheritDoc}//from w w w .java 2s. co m */ @Override public void unrender() { if (componentBase != null) { ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } componentBase = null; checkBox = null; } }
From source file:org.lunifera.web.ecp.uimodel.presentation.vaadin.internal.ComboBoxPresentation.java
License:Open Source License
/** * {@inheritDoc}// w w w. ja v a2 s . co m */ @Override public void unrender() { if (componentBase != null) { ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } componentBase = null; combo = null; } }
From source file:org.lunifera.web.ecp.uimodel.presentation.vaadin.internal.GridLayoutPresentation.java
License:Open Source License
@Override public void unrender() { if (componentBase != null) { ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); }/*w w w .j a v a2 s . c o m*/ componentBase = null; gridlayout = null; // unrender the childs for (IWidgetPresentation<?> child : getChildren()) { child.unrender(); } } }
From source file:org.lunifera.web.ecp.uimodel.presentation.vaadin.internal.HorizontalLayoutPresentation.java
License:Open Source License
@Override public void unrender() { if (componentBase != null) { ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); }/*from ww w. j av a 2 s .c o m*/ componentBase = null; horizontalLayout = null; // unrender the childs for (IWidgetPresentation<?> child : getChildren()) { child.unrender(); } } }
From source file:org.lunifera.web.ecp.uimodel.presentation.vaadin.internal.LabelPresentation.java
License:Open Source License
/** * {@inheritDoc}//from w ww. j a va 2s . c o m */ @Override public void unrender() { if (componentBase != null) { ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } componentBase = null; label = null; } }
From source file:org.lunifera.web.ecp.uimodel.presentation.vaadin.internal.ListPresentation.java
License:Open Source License
/** * {@inheritDoc}// www . j ava 2s. c om */ @Override public void unrender() { if (componentBase != null) { ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } componentBase = null; list = null; } }
From source file:org.lunifera.web.ecp.uimodel.presentation.vaadin.internal.TablePresentation.java
License:Open Source License
/** * {@inheritDoc}/* w ww.j a v a2 s. c om*/ */ @Override public void unrender() { if (componentBase != null) { ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } componentBase = null; table = null; } }
From source file:org.lunifera.web.ecp.uimodel.presentation.vaadin.internal.TextAreaPresentation.java
License:Open Source License
/** * {@inheritDoc}//from w w w . java 2 s .co m */ @Override public void unrender() { if (componentBase != null) { ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } componentBase = null; textArea = null; } }
From source file:org.lunifera.web.ecp.uimodel.presentation.vaadin.internal.TextFieldPresentation.java
License:Open Source License
/** * {@inheritDoc}//w w w . java2 s. c om */ @Override public void unrender() { if (componentBase != null) { ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } componentBase = null; text = null; } }