01: /*
02: * MyGWT Widget Library
03: * Copyright(c) 2007, MyGWT.
04: * licensing@mygwt.net
05: *
06: * http://mygwt.net/license
07: */
08: package com.google.gwt.user.client.ui;
09:
10: /**
11: * Provides public access to widget package protected methods.
12: */
13: public class WidgetHelper {
14:
15: public static void doAttach(Widget widget) {
16: widget.onAttach();
17: }
18:
19: public static void doDetach(Widget widget) {
20: widget.onDetach();
21: }
22:
23: public static void setParent(Widget widget, Widget parent) {
24: widget.setParent(parent);
25: }
26: }
|