List of usage examples for com.vaadin.ui AbstractOrderedLayout requestRepaint
@Deprecated @Override public void requestRepaint()
From source file:org.semanticsoft.vaaclipse.presentation.renderers.ToolBarRenderer.java
License:Open Source License
@Override public void addChildGui(MUIElement child, MElementContainer<MUIElement> element) { if (!(child instanceof MToolBarElement && (MElementContainer<?>) element instanceof MToolBar)) return;//from w ww . j a v a 2 s .c om MToolBar toolBar = (MToolBar) (MElementContainer<?>) element; AbstractOrderedLayout toolbarWidget = (AbstractOrderedLayout) element.getWidget(); Component childWidget = (Component) child.getWidget(); if (toolbarWidget == null || childWidget == null) return; int index = indexOf(child, element) + 1; //+1 becouse the first element is toolbar drag handler (separator) if (element instanceof MToolBarSeparator) { toolbarWidget.addComponent(GuiUtils.createSeparator(toolBar), index); } else { toolbarWidget.addComponent(childWidget, index); } toolbarWidget.requestRepaint(); }