com.sapportals.htmlb

Class Image

java.lang.Object
  extended bycom.sapportals.htmlb.Component
      extended bycom.sapportals.htmlb.Image
All Implemented Interfaces:
com.sapportals.htmlb.hovermenu.IHoverMenuRootComponent, com.sapportals.htmlb.IPopupTriggerContent

public class Image
extends Component
implements com.sapportals.htmlb.hovermenu.IHoverMenuRootComponent, com.sapportals.htmlb.IPopupTriggerContent

Title: Image Description: Creates a link for an image. To avoid problems with text-only UAs as well as to make image content understandable and navigable to users of non-visual UAs, you need to provide a description with ALT, and avoid server-side image maps

Copyright 2004 SAP AG


Field Summary
static String UI_ID
           
 
Constructor Summary
Image(String src, String alt)
          Creates a Image
 
Method Summary
 String getAlt()
          Returns the alternate text For user agents that cannot display images this attribute specifies alternate text.
 String getHeight()
          Returns the image height
 HoverMenu getHoverMenu()
           
 ImageMap getImageMap()
          Returns the image Map
 String getSrc()
          Returns the image source
 String getTooltip()
          gets the Tooltip for this Image.
 String getUI()
          get a identification String for the renderer that is unique across all supported components.
 String getWidth()
          Returns the image width
 boolean isNested()
           
 void removerHoverMenu(HoverMenu menu)
           
 boolean requiresForm()
          Determines if this Image requires to be placed in form.
 void setAlt(String alt)
          Sets the alternate text For user agents that cannot display images this attribute specifies alternate text.
 void setHeight(String height)
          Sets the height of image
 void setHoverMenu(HoverMenu hoverMenu)
           
 void setImageMap(ImageMap imageMap)
          Sets the image Map
 void setNested(boolean nested)
           
 void setSrc(String src)
          Sets the image source
 void setTooltip(String tooltip)
          sets the Tooltip for this Image.
 void setWidth(String width)
          Sets the width of image
 
Methods inherited from class com.sapportals.htmlb.Component
getEncodedIdForForm, getId, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, setId, setJsObjectNeeded, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sapportals.htmlb.hovermenu.IHoverMenuRootComponent
getId
 

Field Detail

UI_ID

public static final String UI_ID
See Also:
Constant Field Values
Constructor Detail

Image

public Image(String src,
             String alt)
Creates a Image

Parameters:
src - URI of image to embed
alt - The alternate text
Method Detail

getUI

public String getUI()
Description copied from class: Component
get a identification String for the renderer that is unique across all supported components. E.g. you could simply return the class name of the component class. The reason for using a separate method and not some internal reflection method is that you can more easily extend the functionality or your Component class without having to rewrite the view class.

Specified by:
getUI in class Component
Returns:
a unique identification string for this Component

getSrc

public String getSrc()
Returns the image source

Returns:
URI of image to embed

setSrc

public void setSrc(String src)
Sets the image source

Parameters:
src - URI of image to embed

getTooltip

public String getTooltip()
gets the Tooltip for this Image. Tooltips can not contain HTML coding.

Returns:
the tooltip text

setTooltip

public void setTooltip(String tooltip)
sets the Tooltip for this Image. Tooltips can not contain HTML coding.

Parameters:
tooltip - the tooltip text

getWidth

public String getWidth()
Returns the image width

Returns:
Width of image in pixel

setWidth

public void setWidth(String width)
Sets the width of image

Parameters:
width - width of image in pixel

getHeight

public String getHeight()
Returns the image height

Returns:
Height of image in pixel

setHeight

public void setHeight(String height)
Sets the height of image

Parameters:
height - Height of image in pixel

getAlt

public String getAlt()
Returns the alternate text For user agents that cannot display images this attribute specifies alternate text.

Returns:
The alternate text

setAlt

public void setAlt(String alt)
Sets the alternate text For user agents that cannot display images this attribute specifies alternate text.

Parameters:
alt - The alternate text

getImageMap

public ImageMap getImageMap()
Returns the image Map

Returns:
the image Map

setImageMap

public void setImageMap(ImageMap imageMap)
Sets the image Map

Parameters:
imageMap - the image Map

requiresForm

public boolean requiresForm()
Determines if this Image requires to be placed in form. Always returns false.

Overrides:
requiresForm in class Component
Returns:
false: an Image doesn't require a form.

getHoverMenu

public HoverMenu getHoverMenu()
Specified by:
getHoverMenu in interface com.sapportals.htmlb.hovermenu.IHoverMenuRootComponent

setHoverMenu

public void setHoverMenu(HoverMenu hoverMenu)
Specified by:
setHoverMenu in interface com.sapportals.htmlb.hovermenu.IHoverMenuRootComponent

removerHoverMenu

public void removerHoverMenu(HoverMenu menu)

setNested

public void setNested(boolean nested)

isNested

public boolean isNested()


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.