|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.ImageWidget
public class ImageWidget
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.
| 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 | |
|---|---|
|
ImageWidget()
constructs the class ImageWidget |
protected |
ImageWidget(Image control)
constructs the class ImageWidget |
|
ImageWidget(String id)
constructs the class ImageWidget |
| Method Summary | |
|---|---|
void |
attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user clicks on the control. |
void |
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. |
Image |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
setAlt(String value)
Setter for property alt |
void |
setDecorative(boolean value)
Setter for property decorativeDefault value is: true |
void |
setHeight(String value)
Setter for property height |
void |
setSrc(String value)
Setter for property src |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property width |
| 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImageWidget()
ImageWidget
public ImageWidget(String id)
ImageWidget
id - id of the ImageWidgetprotected ImageWidget(Image control)
ImageWidget
control - reference to an existing Image| Method Detail |
|---|
public Image getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getSrc()
src
Relative or absolute URL where the image file is stored.
public void setSrc(String value)
src
value - Stringpublic boolean isVisible()
visible
Invisible images are not rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic 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 void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic 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 void setHeight(String value)
height
setHeight in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic 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 void setDecorative(boolean value)
decorativetrue
value - booleanpublic String getAlt()
alt
The alternative text in case the image is not available or cannot be displayed.
public void setAlt(String value)
alt
value - Stringpublic void attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user clicks on the control.
listener - reference to the EventListenerpublic void 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||