- GWT Tutorial
- GWT - Home
- GWT - Overview
- GWT - Environment Setup
- GWT - Applications
- GWT - Create Application
- GWT - Deploy Application
- GWT - Style with CSS
- GWT - Basic Widgets
- GWT - Form Widgets
- GWT - Complex widgets
- GWT - Layout Panels
- GWT - Event Handling
- GWT - Custom Widgets
- GWT - UIBinder
- GWT - RPC Communication
- GWT - JUnit Integration
- GWT - Debugging Application
- GWT - Internationalization
- GWT - History Class
- GWT - Bookmark Support
- GWT - Logging Framework
- GWT Useful Resources
- GWT - Questions and Answers
- GWT - Quick Guide
- GWT - Useful Resources
- GWT - Discussion
GWT - Panel Class
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
Sr.No. | Constructor & Description |
---|---|
1 |
Panel() This creates a Panel for the child classes. |
Class Methods
Sr.No. | Method & Description |
---|---|
1 |
void add(IsWidget child) |
2 |
void add(Widget child) Adds a child widget. |
3 |
protected void adopt(Widget child) Finalize the attachment of a Widget to this Panel. |
4 |
protected void adopt(Widget w, Element container) Deprecated. Use adopt(Widget). |
5 |
void clear() |
6 |
protected void disown(Widget w) Removes all child widgets. |
7 |
protected void doAttachChildren() Deprecated. Use orphan(Widget). |
8 |
protected 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. |
9 |
protected 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. |
10 |
boolean remove(IsWidget child) This method must be called as part of the remove method of any Panel. |
11 |
abstract 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