/** * Removes the tab at the specified index. * * @param index the index of the tab to be removed */ public void removeTab(int index) { checkTabIndex(index); // (index + 1) to account for 'first' placeholder widget. Widget toRemove = panel.getWidget(index + 1); if (toRemove == selectedTab) { selectedTab = null; } panel.remove(toRemove); }
@Override public void setWidget( Widget widget ) { if( this.widget != null ) panel.remove( 0 ); if( widget != null ) panel.insert( widget, 0 ); this.widget = widget; } }
/** * This method removes a pager. */ public void removePager() { if (this.pager != null) { getPanel().remove(this.pager); this.pager = null; } } }
@Override public void setWidget( Widget widget ) { if( this.widget != null ) panel.remove( 0 ); if( widget != null ) panel.insert( widget, 0 ); this.widget = widget; } }
private void _onLevelClick( IHierarchyLevel<T> level, ImageTextButton button ) { addLevel.setVisible( true ); currentListPanel.remove( button ); currentLevels.remove( level ); _signalChange(); }
private void _onLevelClick( IHierarchyLevel<T> level, ImageTextButton button ) { addLevel.setVisible( true ); currentListPanel.remove( button ); currentLevels.remove( level ); _signalChange(); }
public void setArrowImage(Image arrow){ layout.remove(defaultArrow); arrow.addStyleName("KS-CustomDropDown-Arrow"); layout.add(arrow); }
/** * Removes the tab at the specified index. * * @param index the index of the tab to be removed */ public void removeTab(int index) { checkTabIndex(index); // (index + 1) to account for 'first' placeholder widget. Widget toRemove = panel.getWidget(index + 1); if (toRemove == selectedTab) { selectedTab = null; } panel.remove(toRemove); }
/** * Removes the tab at the specified index. * * @param index the index of the tab to be removed */ public void removeTab(int index) { checkTabIndex(index); // (index + 1) to account for 'first' placeholder widget. Widget toRemove = panel.getWidget(index + 1); if (toRemove == selectedTab) { selectedTab = null; } panel.remove(toRemove); }
public void onChange(ChangeEvent event) { ListBox box = (ListBox) event.getSource(); panel.remove(box); if (box.getSelectedIndex() > 0) { onChangeSelection(box.getValue(box.getSelectedIndex())); } } };
public void onChange( ChangeEvent event ) { ListBox box = (ListBox) event.getSource(); panel.remove( box ); if ( box.getSelectedIndex() > 0 ) { onChangeSelection( box.getValue( box.getSelectedIndex() ) ); } } };
public void onChange(ChangeEvent event) { ListBox box = (ListBox) event.getSource(); panel.remove(box); if (box.getSelectedIndex() > 0) { onChangeSelection(box.getValue(box.getSelectedIndex())); } } };
HorizontalPanel panel = new HorizontalPanel(); Widget w = new Widget(); //We add the one widget to the panel panel.add(w); //One more widget added w = new Widget(); panel.add(w); //Now we remove all the widgets from the panel for(int i = 0; i < panel.getWidgetCount(); i++){ panel.remove(panel.getWidget(i)); }
public void onClick(ClickEvent event) { horizontalPanel.remove(showList); final Image busy = new Image(ImageResources.INSTANCE.searching()); final Label loading = new SmallLabel(TestScenarioConstants.INSTANCE.loadingList1());
public void onClick(ClickEvent clickEvent) { setExpanded(!isExpanded()); HorizontalPanel panel = getPanel(); panel.remove(getImage()); createImage(); panel.insert(getImage(), 0); panel.setCellWidth(getImage(), "1%"); if (!isLeaf()) ((ExpandCellEventProducer)getGrid()).fireExpandCell(cell); } });
@Override public void exec(KSMenuItemData item) { if(item.getClickHandler() != null){ StylishDropDown.this.hideMenu(); if(showSelectedItem){ titleLabel.setText(item.getLabel()); if(item.getShownIcon() != null && showTitleIcon){ titleLayout.remove(titleImage); Image image = item.getShownIcon(); titleImage = new Image(image.getUrl(), image.getOriginLeft(), image.getOriginTop(), image.getWidth(), image.getHeight()); if(imgLoc == MenuImageLocation.RIGHT){ titleLayout.add(titleImage); } else{ titleLayout.insert(titleImage, 0); } } } } } });