List of usage examples for com.google.gwt.user.client.ui Panel remove
public boolean remove(IsWidget child)
From source file:com.objetdirect.tatami.client.dnd.DnD.java
License:Open Source License
/** * Helper method designed to move a draggable element from a source panel to a target panel (or another source panel) * // w w w. j a va2s . co m * @param widget : widget to move from a panel to another * @param panelsrc : the origin panel * @param paneldst : the destination panel */ public static void move(Widget widget, Panel panelsrc, Panel paneldst) { unRegisterElement(panelsrc, widget); panelsrc.remove(widget); paneldst.add(widget); registerElement(paneldst, widget); }
From source file:edu.caltech.ipac.firefly.ui.PopoutControlsUI.java
void removeHeaderBar() { Panel headerBar = _popoutWidget.getPopoutContainer().getHeaderBar(); if (headerBar != null) headerBar.remove(_headerBarControls); // LayoutManager lm= Application.getInstance().getLayoutManager(); // if (!AllPlots.getInstance().isMenuBarPopup()) { // Region helpReg= lm.getRegion(LayoutManager.VIS_MENU_HELP_REGION); // helpReg.setDisplay(AllPlots.getInstance().getMenuBarInlineStatusLine()); // }//from w w w.j a v a2 s. c o m }
From source file:gov.nih.nci.ncicb.tcgaportal.level4.gwt.anomalysearch.client.util.WidgetHelper.java
public static void checkAndRemoveWidgetFromPanel(Panel panel, Widget widget) { if (!panel.remove(widget)) { panel.remove(widget);// w w w . j a v a 2s . c om } }
From source file:org.talend.mdm.webapp.browserecords.client.widget.SearchPanel.SimpleCriterionPanel.java
License:Open Source License
public SimpleCriterionPanel(final MultipleCriteriaPanel ancestor, final Panel parent, Button searchBut) { super();// w ww. j a v a 2 s . c o m this.searchBut = searchBut; setSpacing(3); keyComboBox = new ComboBoxField<BaseModel>(); keyComboBox.setDisplayField("name"); //$NON-NLS-1$ keyComboBox.setValueField("value"); //$NON-NLS-1$ keyComboBox.setStore(list); keyComboBox.setTriggerAction(TriggerAction.ALL); keyComboBox.setId("BrowseRecords_SimpleKeyComboBox"); //$NON-NLS-1$ addKeyComboBoxListener(null); add(keyComboBox); operatorComboBox = new ComboBoxField<BaseModel>(); operatorComboBox.setDisplayField("name"); //$NON-NLS-1$ operatorComboBox.setValueField("value"); //$NON-NLS-1$ operatorComboBox.setStore(operatorlist); operatorComboBox.setTriggerAction(TriggerAction.ALL); operatorComboBox.setId("BrowseRecords_SimpleOperatorComboBox"); //$NON-NLS-1$ add(operatorComboBox); content.setId("BrowseRecords_ContentField"); //$NON-NLS-1$ add(content); if (ancestor != null) { add(new Image(Icons.INSTANCE.Delete()) { { addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent ce) { parent.remove(SimpleCriterionPanel.this); if (ancestor != null) { ancestor.redraw(); } } }); } }); } else { } }