|
||||||||||
| 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
com.sap.ui.core.client.Control
com.sap.ui.commons.client.Image
public class Image
The class Image is the GWT wrapper
for the Phoenix control: sap.ui.commons.Image.
A wrapper around the <IMG> tag. The image can be loaded from a remote or local server. There are various size setting options available, and the images can be combined with actions.
| Constructor Summary | |
|---|---|
protected |
Image()
constructs the class Imagehidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Image |
attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user clicks on the control. |
static Image |
create()
creates a new instance of the class Image |
static Image |
create(String idOrConfig)
creates a new instance of the class Image |
static Image |
create(String id,
String config)
creates a new instance of the class Image |
Image |
detachPressEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user clicks on the control. |
String |
getAlt()
Getter for property alt
The alternative text in case the image is not available or cannot be displayed. |
String |
getHeight()
Getter for property height
When the empty value is kept, the original size is not changed. |
String |
getSrc()
Getter for property src
Relative or absolute URL where the image file is stored. |
String |
getWidth()
Getter for property width
When the empty value is kept, the original size is not changed. |
boolean |
isDecorative()
Getter for property decorative
A decorative image is included for design reasons. |
boolean |
isVisible()
Getter for property visible
Invisible images are not rendered. |
Image |
setAlt(String value)
Setter for property alt |
Image |
setDecorative(boolean value)
Setter for property decorativeDefault value is: true |
Image |
setHeight(String value)
Setter for property height |
Image |
setSrc(String value)
Setter for property src |
Image |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
Image |
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 |
|---|
protected Image()
ImageJavaScriptObject restriction
| Method Detail |
|---|
public static Image create()
Image
public static Image create(String idOrConfig)
Image
id - id of the Image or configuration JSON string
public static Image create(String id,
String config)
Image
id - id of the Imageconfig - configuration JSON stringpublic final String getSrc()
src
Relative or absolute URL where the image file is stored.
public final Image setSrc(String value)
src
value - String
this to allow method chainingpublic final boolean isVisible()
visible
Invisible images are not rendered.
public final Image setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getWidth()
width
When the empty value is kept, the original size is not changed. It is also possible to make settings for width or height only, the overall size is maintained then, considering the aspect ratio.
public final Image setWidth(String value)
width
value - String
this to allow method chainingpublic final String getHeight()
height
When the empty value is kept, the original size is not changed. It is also possible to make settings for width or height only, the overall size is maintained then, considering the aspect ratio.
public final Image setHeight(String value)
height
value - String
this to allow method chainingpublic final boolean isDecorative()
decorative
A decorative image is included for design reasons. In the case accessibility mode is turned on, the tab would not not stop there.
public final Image setDecorative(boolean value)
decorativetrue
value - boolean
this to allow method chainingpublic final String getAlt()
alt
The alternative text in case the image is not available or cannot be displayed.
public final Image setAlt(String value)
alt
value - String
this to allow method chainingpublic final Image attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user clicks on the control.
listener - reference to the EventListener
this to allow method chainingpublic final Image detachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user clicks on the control.
listener - reference to the EventListener
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||