jet.html.impl
Class JetImage

java.lang.Object
  extended by jet.html.core.JetComponent
      extended by jet.html.core.JetChildComponent
          extended by jet.html.core.JetOutputComponent
              extended by jet.html.impl.JetImage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Decodeable, JetChildComponent, JetComponent, JetImage, JetOutputComponent

public class JetImage
extends JetOutputComponent
implements JetImage

Author:
Markus.Meisters@web.de
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface jet.html.JetChildComponent
JetChildComponent.HasNoParent
 
Field Summary
private  java.lang.String altKey
          Holds the alternative text
private  java.lang.String titleKey
          Holds the alternative text
private  java.lang.String urlKey
          Holds the image urlKey
 
Fields inherited from class jet.html.core.JetComponent
eventSupport
 
Constructor Summary
JetImage(java.lang.String identifier, java.lang.String url)
          Creates new Component
JetImage(java.lang.String identifier, java.lang.String url, java.lang.String styleclass)
          Creates new Component
 
Method Summary
 java.lang.Object clone()
          This method retruns a clone from the component
 void decodeForm(java.lang.StringBuilder builder, JetContext jetContext)
          This method decodes the form to the given buffer
 java.lang.String getAltKey()
          Returns the alternate text key to use
 java.lang.String getTitleKey()
          Returns the title text key to use
 java.lang.String getUrlKey()
          Returns the url of the image
 void setAltKey(java.lang.String altKey)
          Set the alternate text
 void setTitleKey(java.lang.String titleKey)
          Set the title text
 void setUrlKey(java.lang.String url)
          Set the image url
 
Methods inherited from class jet.html.core.JetChildComponent
getForm, getParent, isHidden, setParent, toggleHidden
 
Methods inherited from class jet.html.core.JetComponent
addListener, addListener, componentChanged, findComponent, findComponents, getGeneratedComponentIdentifier, getIdentifier, getName, getNewIdentifier, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jet.html.JetChildComponent
getForm, getParent, isHidden, setParent, toggleHidden
 
Methods inherited from interface jet.html.JetComponent
addListener, addListener, componentChanged, findComponent, findComponents, getIdentifier, getName, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass
 

Field Detail

urlKey

private java.lang.String urlKey
Holds the image urlKey


altKey

private java.lang.String altKey
Holds the alternative text


titleKey

private java.lang.String titleKey
Holds the alternative text

Constructor Detail

JetImage

public JetImage(java.lang.String identifier,
                java.lang.String url,
                java.lang.String styleclass)
Creates new Component

Parameters:
identifier - the identifier
url - the url of the component
styleclass - the css style class

JetImage

public JetImage(java.lang.String identifier,
                java.lang.String url)
Creates new Component

Parameters:
identifier - the identifier
url - the url of the component
Method Detail

decodeForm

public void decodeForm(java.lang.StringBuilder builder,
                       JetContext jetContext)
This method decodes the form to the given buffer

Specified by:
decodeForm in interface Decodeable
Specified by:
decodeForm in interface JetComponent
Specified by:
decodeForm in interface JetImage
Specified by:
decodeForm in class JetComponent
Parameters:
builder - builder to use

clone

public java.lang.Object clone()
This method retruns a clone from the component

Specified by:
clone in interface JetComponent
Specified by:
clone in interface JetImage
Specified by:
clone in class JetComponent
Returns:
the cloned object

getUrlKey

public java.lang.String getUrlKey()
Returns the url of the image

Specified by:
getUrlKey in interface JetImage
Returns:
the image url

setUrlKey

public void setUrlKey(java.lang.String url)
Set the image url

Specified by:
setUrlKey in interface JetImage
Parameters:
url - url of the image

getAltKey

public java.lang.String getAltKey()
Returns the alternate text key to use

Specified by:
getAltKey in interface JetImage
Returns:
alt

setAltKey

public void setAltKey(java.lang.String altKey)
Set the alternate text

Specified by:
setAltKey in interface JetImage
Parameters:
altKey - alternate text

getTitleKey

public java.lang.String getTitleKey()
Returns the title text key to use

Specified by:
getTitleKey in interface JetImage
Returns:
title

setTitleKey

public void setTitleKey(java.lang.String titleKey)
Set the title text

Specified by:
setTitleKey in interface JetImage
Parameters:
titleKey - text