com.sap.ui.core.client
Class ControlWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.sap.ui.core.client.ControlWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
HTMLWidget, ViewWidget

public class ControlWidget
extends com.google.gwt.user.client.ui.Widget

The class ControlWidget builds the bridge between the Phoenix Controls and the GWT Widgets. This base class allows to use a Phoenix Control as GWT Widgets within GWT Panels.

Version:
1.0 - 29.09.2010 15:56:26, Revision Version: ($Revision: #2 $), Revision Date: ($Date: 2011/03/17 $)
Author:
D039071@exchange.sap.corp, Revision Author: ($Author: d039071 $)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ControlWidget(Control control)
          constructs the class ControlWidget
 
Method Summary
 void destroy()
          destroys the current ControlWidget
protected  void doAttachChildren()
           
protected  void doDetachChildren()
           
 Control getControl()
          returns the reference to the Phoenix Control
protected static boolean isDesignTime()
          internally use to determine the design time of the GUI builder
static ControlWidget wrap(Control control)
          creates a new instance of the class ControlWidget and wraps the given Control into
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlWidget

public ControlWidget(Control control)
constructs the class ControlWidget

Parameters:
control - reference to the Control
Method Detail

destroy

public void destroy()
destroys the current ControlWidget


wrap

public static ControlWidget wrap(Control control)
creates a new instance of the class ControlWidget and wraps the given Control into

Parameters:
control - reference to the Control

getControl

public Control getControl()
returns the reference to the Phoenix Control

Returns:
reference to the Phoenix Control

isDesignTime

protected static final boolean isDesignTime()
internally use to determine the design time of the GUI builder

Returns:
true, if the Widget is used in the GUI builder

doAttachChildren

protected void doAttachChildren()
Overrides:
doAttachChildren in class com.google.gwt.user.client.ui.Widget

doDetachChildren

protected void doDetachChildren()
Overrides:
doDetachChildren in class com.google.gwt.user.client.ui.Widget


Copyright © 2011 SAP. All Rights Reserved.