|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
public class Element
The class Element is the wrapper JavaScriptObject
for the Phoenix JS element. The basic functions have been implemented
inside the Element to allow a nearly JS like interaction.
Revision Version: ($Revision: #5 $), Revision Date: ($Date: 2011/06/29 $)Revision Author: ($Author: d039071 $)| Constructor Summary | |
|---|---|
protected |
Element()
constructs the class Elementhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
protected com.google.gwt.core.client.JsArrayBoolean |
_convertArray(boolean[] arr)
converts a boolean Java array into a
boolean JavaScript array |
protected com.google.gwt.core.client.JsArrayNumber |
_convertArray(double[] arr)
converts a double Java array into a
double JavaScript array |
protected com.google.gwt.core.client.JsArrayInteger |
_convertArray(int[] arr)
converts a int Java array into a
int JavaScript array |
protected com.google.gwt.core.client.JsArray<com.google.gwt.core.client.JavaScriptObject> |
_convertArray(com.google.gwt.core.client.JavaScriptObject[] arr)
converts a JavaScriptObject Java array into a
JavaScriptObject JavaScript array |
protected com.google.gwt.core.client.JsArrayString |
_convertArray(String[] arr)
converts a String Java array into a
String JavaScript array |
Element |
attachBrowserEvent(String nativeEventId,
EventListener listener)
attaches an event listener for the given event id |
Element |
attachEvent(String eventId,
EventListener listener)
attaches an event listener for the given event id |
Element |
bindAggregation(String name,
String path,
Element template)
binds an aggregation to the model with the specified path and a specified template Element which should be used for rendering the
aggregation |
Element |
bindContext(String path)
set the binding path for an already bound property or aggregation to a new path. |
Element |
bindProperty(String name,
String path)
binds a property to the model with the specified path and optionally uses a Formatter to convert/format the value. |
Element |
bindProperty(String name,
String path,
Formatter formatter)
binds a property to the model with the specified path and optionally uses a Formatter to convert/format the value. |
void |
destroy()
cleans up the resources associated with this element and all its children. |
Element |
detachBrowserEvent(String eventId,
EventListener listener)
detaches an event listener for the given event id |
Element |
detachEvent(String eventId,
EventListener listener)
detaches an event listener for the given event id |
com.google.gwt.user.client.Element |
getDomRef()
returns the HTML Element of the Control |
String |
getElementName()
returns the element name of the Element |
String |
getId()
returns the ID of the Element |
String |
getLibraryName()
returns the library name of the Element |
Model |
getModel()
returns the reference to the Model |
Element |
getParent()
returns the parent Element of the Element |
com.google.gwt.core.client.JavaScriptObject |
getProperty(String name)
returns a properties value of the Element for the given property name |
String |
getTooltip_AsString()
returns the value of a simple tooltip as String |
String |
getTooltip_Text()
returns the text of TooltipBase Element as String |
TooltipBase |
getTooltip()
returns the reference to the TooltipBase Element |
boolean |
isActive()
returns the whether the Element has a parent or not |
Element |
setModel(Model model)
sets the reference to a Model |
Element |
setProperty(String name,
com.google.gwt.core.client.JavaScriptObject value,
boolean suppressRerendering)
sets a properties value of the Element for the given
property name |
Element |
setTooltip(String value)
sets the value of a simple tooltip as String |
Element |
setTooltip(TooltipBase tooltip)
sets the reference to the TooltipBase Element |
Element |
unbindAggregation(String name)
unbinds an aggregation by its name |
Element |
unbindContext()
set the binding path for an already bound property or aggregation to a new path. |
Element |
unbindProperty(String name)
unbinds a property specified by its name |
| 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 |
|---|
protected Element()
ElementJavaScriptObject restriction
| Method Detail |
|---|
public final void destroy()
public final Element getParent()
Element of the Element
public final String getId()
Element
Elementpublic final String getElementName()
Element
Elementpublic final String getLibraryName()
Element
Elementpublic final com.google.gwt.user.client.Element getDomRef()
Element of the Control
Element of the Controlpublic final boolean isActive()
Element has a parent or not
Element has a parentpublic final TooltipBase getTooltip()
TooltipBase Element
TooltipBase Elementpublic final String getTooltip_AsString()
String
Stringpublic final String getTooltip_Text()
TooltipBase Element as String
TooltipBase Element as Stringpublic final Element setTooltip(String value)
String
value - the value of a simple tooltip as String
this to allow method chainingpublic final Element setTooltip(TooltipBase tooltip)
TooltipBase Element
tooltip - the reference to the TooltipBase Element
this to allow method chainingpublic final com.google.gwt.core.client.JavaScriptObject getProperty(String name)
Element for the given property name
name - the name of the property
JavaScriptObject
public final Element setProperty(String name,
com.google.gwt.core.client.JavaScriptObject value,
boolean suppressRerendering)
Element for the given
property name
name - the name of the propertyvalue - the value of the property as JavaScriptObjectsuppressRerendering - true, if the rerendering should be triggered (or false)
this to allow method chaining
public final Element attachEvent(String eventId,
EventListener listener)
eventId - event idlistener - reference to the EventListener
this to allow method chaining
public final Element detachEvent(String eventId,
EventListener listener)
eventId - event idlistener - reference to the EventListener
this to allow method chaining
public final Element attachBrowserEvent(String nativeEventId,
EventListener listener)
eventId - event idlistener - reference to the EventListener
this to allow method chaining
public final Element detachBrowserEvent(String eventId,
EventListener listener)
eventId - event idlistener - reference to the EventListener
this to allow method chainingpublic final Model getModel()
Model
Modelpublic final Element setModel(Model model)
Model
model - reference to the Model
this to allow method chainingpublic final Element bindContext(String path)
path - the binding path
this to allow method chainingpublic final Element unbindContext()
path - the binding path
this to allow method chaining
public final Element bindProperty(String name,
String path)
Formatter to convert/format the value.
name - the name of the propertypath - the binding path
this to allow method chaining
public final Element bindProperty(String name,
String path,
Formatter formatter)
Formatter to convert/format the value.
name - the name of the propertypath - the binding pathformatter - optionally the reference to a Formatter
this to allow method chainingpublic final Element unbindProperty(String name)
name - the name of the property
this to allow method chaining
public final Element bindAggregation(String name,
String path,
Element template)
Element which should be used for rendering the
aggregation
name - the name of the aggregationpath - the binding pathtemplate - the template Element
this to allow method chainingpublic final Element unbindAggregation(String name)
name - the name of the aggregation
this to allow method chainingprotected final com.google.gwt.core.client.JsArray<com.google.gwt.core.client.JavaScriptObject> _convertArray(com.google.gwt.core.client.JavaScriptObject[] arr)
JavaScriptObject Java array into a
JavaScriptObject JavaScript array
arr - JavaScriptObject Java array
JavaScriptObject JavaScript arrayprotected final com.google.gwt.core.client.JsArrayString _convertArray(String[] arr)
String Java array into a
String JavaScript array
arr - String Java array
String JavaScript arrayprotected final com.google.gwt.core.client.JsArrayBoolean _convertArray(boolean[] arr)
boolean Java array into a
boolean JavaScript array
arr - boolean Java array
boolean JavaScript arrayprotected final com.google.gwt.core.client.JsArrayInteger _convertArray(int[] arr)
int Java array into a
int JavaScript array
arr - int Java array
int JavaScript arrayprotected final com.google.gwt.core.client.JsArrayNumber _convertArray(double[] arr)
double Java array into a
double JavaScript array
arr - double Java array
double JavaScript array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||