com.sap.ui.core.client
Class HTMLWidget

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
              extended by com.sap.ui.core.client.HTMLWidget
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

public class HTMLWidget
extends ControlWidget

The class HTML is the GWT wrapper for the Phoenix control: sap.ui.core.HTML.

Embeds HTML in the tree provided by the SAP UI HTML5 Rendering Library.

Version:
0.18.0-SNAPSHOT
Author:
GENERATOR (JavaScript control: Frank Weigel)

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
  HTMLWidget()
          constructs the class HTMLWidget
protected HTMLWidget(HTML control)
          constructs the class HTMLWidget
  HTMLWidget(String id)
          constructs the class HTMLWidget
 
Method Summary
 void attachAfterRenderingEvent(EventListener listener)
          attach an EventListener Fired after the HTML control has been rendered.
 void detachAfterRenderingEvent(EventListener listener)
          detach an EventListener Fired after the HTML control has been rendered.
 String getContent()
          Getter for property content HTML to be displayed.
 HTML getControl()
          returns the reference to the Phoenix Control
 boolean isPreferDOM()
          Getter for property preferDOM Whether to prefer existing DOM content in comparison to a given content string.
 void setContent(String value)
          Setter for property content
 void setPreferDOM(boolean value)
          Setter for property preferDOM
Default value is: false
 
Methods inherited from class com.sap.ui.core.client.ControlWidget
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap
 
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

HTMLWidget

public HTMLWidget()
constructs the class HTMLWidget


HTMLWidget

public HTMLWidget(String id)
constructs the class HTMLWidget

Parameters:
id - id of the HTMLWidget

HTMLWidget

protected HTMLWidget(HTML control)
constructs the class HTMLWidget

Parameters:
control - reference to an existing HTML
Method Detail

getControl

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

Overrides:
getControl in class ControlWidget
Returns:
reference to the Phoenix Control

getContent

public String getContent()
Getter for property content HTML to be displayed. The HTML content must be enclosed by tags; plaintext is not possible.

Returns:
the value of property content

setContent

public void setContent(String value)
Setter for property content

Parameters:
value - String

isPreferDOM

public boolean isPreferDOM()
Getter for property preferDOM Whether to prefer existing DOM content in comparison to a given content string.

Returns:
the value of property preferDOM

setPreferDOM

public void setPreferDOM(boolean value)
Setter for property preferDOM
Default value is: false

Parameters:
value - boolean

attachAfterRenderingEvent

public void attachAfterRenderingEvent(EventListener listener)
attach an EventListener Fired after the HTML control has been rendered. Allows to manipulate the resulting DOM. When the control doesn't have string content and no preserved DOM existed for this control, then this event will fire, but there won't be a DOM node for this control.
Event Parameters:
{boolean} isPreservedDOM Whether the current DOM of the control has been preserved (true) or not (e.g. rendered from content property or it is an empty HTML control).

Parameters:
listener - reference to the EventListener

detachAfterRenderingEvent

public void detachAfterRenderingEvent(EventListener listener)
detach an EventListener Fired after the HTML control has been rendered. Allows to manipulate the resulting DOM. When the control doesn't have string content and no preserved DOM existed for this control, then this event will fire, but there won't be a DOM node for this control.

Parameters:
listener - reference to the EventListener


Copyright © 2011 SAP. All Rights Reserved.