GWT - Panel Class

Advertisements


Introduction

The class Panel is the abstract base class for all panels, which are widgets that can contain other widgets.

Class declaration

Following is the declaration for com.google.gwt.user.client.ui.Panel class:

public abstract class Panel
   extends Widget
      implements HasWidgets.ForIsWidget

Field

Following are the fields for com.google.gwt.user.client.ui.Panel class:

  • public static final java.lang.String DEBUG_ID_PREFIX -- The element ID that you specify will be prefixed by the static string DEBUG_ID_PREFIX.

Class constructors

S.N.Constructor & Description
1Panel()
This creates a Panel for the child classes.

Class methods

S.N.Method & Description
1void add(IsWidget child)
2void add(Widget child)
Adds a child widget.
3protected void adopt(Widget child)
Finalize the attachment of a Widget to this Panel.
4protected void adopt(Widget w, Element container)
Deprecated. Use adopt(Widget).
5void clear()
6protected void disown(Widget w)
Removes all child widgets.
7protected void doAttachChildren()
Deprecated. Use orphan(Widget).
8protected void doDetachChildren()
If a widget contains one or more child widgets that are not in the logical widget hierarchy (the child is physically connected only on the DOM level), it must override this method and call Widget.onAttach() for each of its child widgets.
9protected void orphan(Widget child)
If a widget contains one or more child widgets that are not in the logical widget hierarchy (the child is physically connected only on the DOM level), it must override this method and call Widget.onDetach() for each of its child widgets.
10boolean remove(IsWidget child)
This method must be called as part of the remove method of any Panel.
11abstract boolean remove(Widget child)
Removes a child widget.

Methods inherited

This class inherits methods from the following classes:

  • com.google.gwt.user.client.ui.UIObject

  • com.google.gwt.user.client.ui.Widget



Advertisements
Advertisements