com.sap.ui.core.client.mvc
Class View

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.mvc.View
Direct Known Subclasses:
JsonView, JsView, XmlView

public class View
extends Control

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

View

Version:
0.18.0-SNAPSHOT
Author:
GENERATOR (JavaScript control: sap.ui.core.mvc.View)

Constructor Summary
protected View()
          constructs the class View
hidden due to JavaScriptObject restriction
 
Method Summary
 View attachAfterInitEvent(EventListener listener)
          attach an EventListener Fired when the View has parsed the UI description and instantiated the contained controls (/control tree).
 View attachAfterRenderingEvent(EventListener listener)
          attach an EventListener Fired when the View has been (re-)rendered and its HTML is present in the DOM.
 View attachBeforeExitEvent(EventListener listener)
          attach an EventListener Fired when the view has received the request to destroy itself, but before it has destroyed anything.
 View attachBeforeRenderingEvent(EventListener listener)
          attach an EventListener Fired before this View is re-rendered.
static View create()
          creates a new instance of the class View
static View create(String idOrConfig)
          creates a new instance of the class View
static View create(String id, String config)
          creates a new instance of the class View
 View detachAfterInitEvent(EventListener listener)
          detach an EventListener Fired when the View has parsed the UI description and instantiated the contained controls (/control tree).
 View detachAfterRenderingEvent(EventListener listener)
          detach an EventListener Fired when the View has been (re-)rendered and its HTML is present in the DOM.
 View detachBeforeExitEvent(EventListener listener)
          detach an EventListener Fired when the view has received the request to destroy itself, but before it has destroyed anything.
 View detachBeforeRenderingEvent(EventListener listener)
          detach an EventListener Fired before this View is re-rendered.
 Object getController()
          Returns the view's Controller instance (if any)
 String getHeight()
          Getter for property height The height
 String getViewName()
          Getter for property viewName Name of the View
 String getWidth()
          Getter for property width The width
 View setHeight(String value)
          Setter for property height
 View setViewName(String value)
          Setter for property viewName
 View setWidth(String value)
          Setter for property width
 
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

View

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

Method Detail

create

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


create

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

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

create

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

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

getWidth

public final String getWidth()
Getter for property width The width

Returns:
the value of property width

setWidth

public final View setWidth(String value)
Setter for property width

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

getHeight

public final String getHeight()
Getter for property height The height

Returns:
the value of property height

setHeight

public final View setHeight(String value)
Setter for property height

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

getViewName

public final String getViewName()
Getter for property viewName Name of the View

Returns:
the value of property viewName

setViewName

public final View setViewName(String value)
Setter for property viewName

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

attachAfterInitEvent

public final View attachAfterInitEvent(EventListener listener)
attach an EventListener Fired when the View has parsed the UI description and instantiated the contained controls (/control tree).

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

detachAfterInitEvent

public final View detachAfterInitEvent(EventListener listener)
detach an EventListener Fired when the View has parsed the UI description and instantiated the contained controls (/control tree).

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

attachBeforeExitEvent

public final View attachBeforeExitEvent(EventListener listener)
attach an EventListener Fired when the view has received the request to destroy itself, but before it has destroyed anything.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

detachBeforeExitEvent

public final View detachBeforeExitEvent(EventListener listener)
detach an EventListener Fired when the view has received the request to destroy itself, but before it has destroyed anything.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

attachAfterRenderingEvent

public final View attachAfterRenderingEvent(EventListener listener)
attach an EventListener Fired when the View has been (re-)rendered and its HTML is present in the DOM.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

detachAfterRenderingEvent

public final View detachAfterRenderingEvent(EventListener listener)
detach an EventListener Fired when the View has been (re-)rendered and its HTML is present in the DOM.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

attachBeforeRenderingEvent

public final View attachBeforeRenderingEvent(EventListener listener)
attach an EventListener Fired before this View is re-rendered. Us to unbind event handlers from HTML elements etc.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

detachBeforeRenderingEvent

public final View detachBeforeRenderingEvent(EventListener listener)
detach an EventListener Fired before this View is re-rendered. Us to unbind event handlers from HTML elements etc.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

getController

public final Object getController()
Returns the view's Controller instance (if any)



Copyright © 2011 SAP. All Rights Reserved.