Example usage for com.vaadin.ui ComponentContainer removeComponent

List of usage examples for com.vaadin.ui ComponentContainer removeComponent

Introduction

In this page you can find the example usage for com.vaadin.ui ComponentContainer removeComponent.

Prototype

public void removeComponent(Component c);

Source Link

Document

Removes the component from this container.

Usage

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.ListPresentation.java

License:Open Source License

/**
 * {@inheritDoc}//ww  w . j a v  a2  s  .  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(list);

        componentBase = null;
        list = null;
    }
}

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.MasterDetailPresentation.java

License:Open Source License

/**
 * {@inheritDoc}/*from  ww  w . j a  v 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);

        componentBase = null;

        if (masterPresentation != null) {
            disposeMasterWidget();
        }

        if (detailPresentation != null) {
            detailPresentation.unrender();
            detailBase.removeAllComponents();
        }
    }
}

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.NumericFieldPresentation.java

License:Open Source License

/**
 * {@inheritDoc}/*from w ww  .  j  av  a  2  s  .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(numberField);

        componentBase = null;
        numberField = null;
    }
}

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.OptionsGroupPresentation.java

License:Open Source License

/**
 * {@inheritDoc}/*from  w ww. j a v 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(optionsGroup);

        componentBase = null;
        optionsGroup = null;
    }
}

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.ProgressBarPresentation.java

License:Open Source License

/**
 * {@inheritDoc}/*from www.  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(progressBar);

        componentBase = null;
        progressBar = null;
    }
}

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.TablePresentation.java

License:Open Source License

/**
 * {@inheritDoc}//from  w  w  w  .jav  a 2s .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(table);

        componentBase = null;
        table = null;
    }
}

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.TabSheetPresentation.java

License:Open Source License

@Override
public void doUnrender() {
    if (componentBase != null) {

        // unbind all active bindings
        unbind();/*from w w w . j ava 2s.com*/

        ComponentContainer parent = ((ComponentContainer) componentBase.getParent());
        if (parent != null) {
            parent.removeComponent(componentBase);
        }

        // remove assocations
        unassociateWidget(componentBase);
        unassociateWidget(tabSheet);

        componentBase = null;
        tabSheet = null;

        // unrender the tabs
        for (ITabPresentation<?> tab : getTabs()) {
            tab.unrender();
        }
    }
}

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.TextAreaPresentation.java

License:Open Source License

/**
 * {@inheritDoc}/* w ww . j a  v  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(textArea);

        componentBase = null;
        textArea = null;
    }
}

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.TextFieldPresentation.java

License:Open Source License

/**
 * {@inheritDoc}/*from w  w w .j a  v  a  2 s.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(text);

        componentBase = null;
        text = null;
    }
}

From source file:org.lunifera.runtime.web.ecview.presentation.vaadin.internal.TreePresentation.java

License:Open Source License

/**
 * {@inheritDoc}/*w  ww .  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(tree);

        componentBase = null;
        tree = null;
    }
}