Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.WidgetCollection$WidgetIterator


   */
  public WjrTabPanel() {
    initWidget(uiBinder.createAndBindUi(this));

    tabs = new ArrayList<Tab>();
    children = new WidgetCollection(panel);
  }
View Full Code Here


  private int nextZIndex() {
    return zIndex++;
  }

  private void removeAllNotes() {
    final WidgetCollection kids = getChildren();
    while (kids.size() > 0) {
      remove(kids.size() - 1);
    }
  }
View Full Code Here

            };
        }
        try {
            AttachDetachException.tryCommand(this, orphanCommand);
        } finally {
            children = new WidgetCollection(this);
        }
    }
View Full Code Here

        m_caption.setStyleName(I_LayoutBundle.INSTANCE.dialogCss().caption());
        // Add the caption to the top of the popup-panel. We need to
        // logically adopt the caption so we can catch mouse events.
        DOM.appendChild(m_containerElement, m_caption.getElement());
        adopt(m_caption);
        m_children = new WidgetCollection(this);
        m_main = DOM.createDiv();
        m_main.addClassName(I_LayoutBundle.INSTANCE.dialogCss().popupMainContent());
        m_main.addClassName(I_LayoutBundle.INSTANCE.dialogCss().contentPadding());
        DOM.appendChild(m_containerElement, m_main);
        m_buttonPanel = new ButtonPanel();
View Full Code Here

                // Physical detach.
                Element elem = w.getElement();
                DOM.removeChild(DOM.getParent(elem), elem);
            }
        }
        m_children = new WidgetCollection(this);
    }
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public void clear() {
        super.clear();
        children = new WidgetCollection(this);
        dividerList.clear();
    }
View Full Code Here

@PatchClass(StackPanel.class)
class StackPanelPatcher {

   @PatchMethod
   static int findDividerIndex(StackPanel panel, Element child) {
      WidgetCollection children = GwtReflectionUtils.getPrivateFieldValue(panel, "children");

      for (int i = 0; i < children.size(); i++) {
         if (children.get(i).getElement().equals(child)) {
            return i;
         }
      }

      return -1;
View Full Code Here

   */
  public boolean remove(final Widget widget) {
    Checker.notNull("parameter:widget", widget);

    boolean removed = false;
    final WidgetCollection widgets = this.getWidgetCollection();
    final int index = widgets.indexOf(widget);
    if (-1 != index) {
      this.remove(index);
      removed = true;
    }

View Full Code Here

   * Removes the widget at the given slot.
   *
   * @param index
   */
  public boolean remove(final int index) {
    final WidgetCollection widgets = this.getWidgetCollection();

    final Widget widget = widgets.get(index);
    this.remove0(widget.getElement(), index);// cleanup opportunity
    this.orphan(widget);
    widgets.remove(index);

    return true;
  }
View Full Code Here

    Checker.notNull("parameter:widgetCollection", widgetCollection);
    this.widgetCollection = widgetCollection;
  }

  protected WidgetCollection createWidgetCollection() {
    return new WidgetCollection(this);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.WidgetCollection$WidgetIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.