com.sap.ui.core.client
Class HTML

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.sap.ui.core.client.Element
          extended by com.sap.ui.core.client.Control
              extended by com.sap.ui.core.client.HTML

public class HTML
extends Control

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: sap.ui.core.HTML)

Constructor Summary
protected HTML()
          constructs the class HTML
hidden due to JavaScriptObject restriction
 
Method Summary
 HTML attachAfterRenderingEvent(EventListener listener)
          attach an EventListener Fired after the HTML control has been rendered.
static HTML create()
          creates a new instance of the class HTML
static HTML create(String idOrConfig)
          creates a new instance of the class HTML
static HTML create(String id, String config)
          creates a new instance of the class HTML
 HTML detachAfterRenderingEvent(EventListener listener)
          detach an EventListener Fired after the HTML control has been rendered.
 String getContent()
          Getter for property content HTML to be displayed.
 boolean isPreferDOM()
          Getter for property preferDOM Whether to prefer existing DOM content in comparison to a given content string.
 HTML setContent(String value)
          Setter for property content
 HTML setPreferDOM(boolean value)
          Setter for property preferDOM
Default value is: false
 
Methods inherited from class com.sap.ui.core.client.Control
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender
 
Methods inherited from class com.sap.ui.core.client.Element
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTML

protected HTML()
constructs the class HTML
hidden due to JavaScriptObject restriction

Method Detail

create

public static HTML create()
creates a new instance of the class HTML


create

public static HTML create(String idOrConfig)
creates a new instance of the class HTML

Parameters:
id - id of the HTML or configuration JSON string

create

public static HTML create(String id,
                          String config)
creates a new instance of the class HTML

Parameters:
id - id of the HTML
config - configuration JSON string

getContent

public final 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 final HTML setContent(String value)
Setter for property content

Parameters:
value - String
Returns:
this to allow method chaining

isPreferDOM

public final 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 final HTML setPreferDOM(boolean value)
Setter for property preferDOM
Default value is: false

Parameters:
value - boolean
Returns:
this to allow method chaining

attachAfterRenderingEvent

public final HTML 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
Returns:
this to allow method chaining

detachAfterRenderingEvent

public final HTML 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
Returns:
this to allow method chaining


Copyright © 2011 SAP. All Rights Reserved.