portal.comp
Class Image

java.lang.Object
  extended byportal.core.api.Component
      extended byportal.comp.Image
All Implemented Interfaces:
Renderable, java.io.Serializable

public class Image
extends Component

See Also:
Serialized Form

Constructor Summary
Image(IResource resource)
           
 
Method Summary
 void draw(HtmlGraphics graphics)
          With this method the component can render itself using the passed HtmlGraphics object.
 IAction getAction()
           
 IResource getResource()
           
 java.lang.String getToolTip()
           
 void setAction(IAction action)
           
 void setResource(IResource resource)
           
 void setToolTip(java.lang.String string)
           
 
Methods inherited from class portal.core.api.Component
afterRender, beforeRender, createDefaultModel, getLayout, getModel, getParent, isEnabled, isVisible, render, setEnabled, setLayout, setModel, setParent, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image(IResource resource)
Method Detail

getResource

public IResource getResource()

setResource

public void setResource(IResource resource)

getAction

public IAction getAction()

setAction

public void setAction(IAction action)

getToolTip

public java.lang.String getToolTip()

setToolTip

public void setToolTip(java.lang.String string)

draw

public void draw(HtmlGraphics graphics)
          throws RenderException
Description copied from class: Component

With this method the component can render itself using the passed HtmlGraphics object. This method is not called when a layout manager is set since the existence of a layout manager takes precedence above the draw() method.

Overrides:
draw in class Component
Parameters:
graphics - the html graphics instance to use for drawing this component
Throws:
RenderException - when the rendering process could not proceed or encountered an error