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.ComboBoxPresentation.java
License:Open Source License
/** * {@inheritDoc}/*w w w. j av a 2s. c om*/ */ @Override public void doUnrender() { if (componentBase != null) { // unbind all active bindings unbind(); ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } // remove assocations unassociateWidget(componentBase); unassociateWidget(combo); componentBase = null; combo = null; } }
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.DateTimePresentation.java
License:Open Source License
/** * {@inheritDoc}/*from w w w.j av a 2 s . c o m*/ */ @Override public void doUnrender() { if (componentBase != null) { // unbind all active bindings unbind(); ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } // remove assocations unassociateWidget(componentBase); unassociateWidget(dateField); componentBase = null; dateField = null; } }
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.DecimalFieldPresentation.java
License:Open Source License
/** * {@inheritDoc}// w w w. j av a 2s. com */ @Override public void doUnrender() { if (componentBase != null) { // unbind all active bindings unbind(); ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } // remove assocations unassociateWidget(componentBase); unassociateWidget(decimalField); componentBase = null; decimalField = null; sendUnrenderedLifecycleEvent(); } }
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.DialogPresentation.java
License:Open Source License
/** * {@inheritDoc}/*from w w w.ja va2 s .c o m*/ */ @Override public void unrender() { if (window != null) { // unregister as an locale change listener IViewContext context = ModelUtil.getViewContext(modelAccess.yDialog.getView()); ILocaleChangedService service = context.getService(ILocaleChangedService.ID); if (service != null) { service.removeLocaleListener(this); } if (binding != null) { binding.dispose(); binding = null; } ComponentContainer parent = ((ComponentContainer) window.getParent()); if (parent != null) { parent.removeComponent(window); } window = null; } }
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.EnumComboBoxPresentation.java
License:Open Source License
/** * {@inheritDoc}// w w w .j a v a 2 s . com */ @Override public void doUnrender() { if (combo != null) { // unbind all active bindings unbind(); ComponentContainer parent = ((ComponentContainer) combo.getParent()); if (parent != null) { parent.removeComponent(combo); } // remove assocations unassociateWidget(combo); combo = null; } }
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.EnumListPresentation.java
License:Open Source License
/** * {@inheritDoc}/*from w w w . ja v a2 s . c o m*/ */ @Override public void doUnrender() { if (list != null) { // unbind all active bindings unbind(); ComponentContainer parent = ((ComponentContainer) list.getParent()); if (parent != null) { parent.removeComponent(list); } // remove assocations unassociateWidget(list); list = null; } }
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.EnumOptionsGroupPresentation.java
License:Open Source License
/** * {@inheritDoc}/*from www . j av a 2 s . c om*/ */ @Override public void doUnrender() { if (optionsGroup != null) { // unbind all active bindings unbind(); ComponentContainer parent = ((ComponentContainer) optionsGroup.getParent()); if (parent != null) { parent.removeComponent(optionsGroup); } // remove assocations unassociateWidget(optionsGroup); optionsGroup = null; } }
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.GridLayoutPresentation.java
License:Open Source License
@Override public void doUnrender() { if (componentBase != null) { // unbind all active bindings unbind();/*from w w w . j ava 2 s.c o m*/ ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } // remove assocations unassociateWidget(componentBase); unassociateWidget(gridlayout); componentBase = null; gridlayout = null; // unrender the childs for (IEmbeddableEditpart child : getChildren()) { child.unrender(); } } }
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.ImagePresentation.java
License:Open Source License
/** * {@inheritDoc}/*from www.ja v a 2 s .c o m*/ */ @Override public void doUnrender() { if (image != null) { // unbind all active bindings unbind(); // remove assocations unassociateWidget(image); ComponentContainer parent = ((ComponentContainer) image.getParent()); if (parent != null) { parent.removeComponent(image); } image = null; } }
From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.LabelPresentation.java
License:Open Source License
/** * {@inheritDoc}// ww w . j av a2 s. c o m */ @Override public void doUnrender() { if (componentBase != null) { // unbind all active bindings unbind(); ComponentContainer parent = ((ComponentContainer) componentBase.getParent()); if (parent != null) { parent.removeComponent(componentBase); } // remove assocations unassociateWidget(componentBase); unassociateWidget(label); componentBase = null; label = null; } }