protected void remove(List<Widget> widgets) {
        if (widgets != null) {
            switch (type) {
                case DETACH:
                    widgets.forEach(widget -> widget.removeFromParent());
                    break;
                case DISPLAY:
                    widgets.forEach(widget -> widget.getElement().getStyle().setDisplay(Style.Display.NONE));
                    break;
            }
        }
    }
protected void remove ( List < Widget > widgets ) { if ( widgets != null ) { switch ( type ) { case DETACH : widgets . forEach ( widget -> widget . removeFromParent ( ) ) ; break ; case DISPLAY : widgets . forEach ( widget -> widget . getElement ( ) . getStyle ( ) . setDisplay ( Style . Display . NONE ) ) ; break ; } } }
Helper method to remove the provided widgets with {@link RecycleType} defined