|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.model.imp.ImageModelImp
Designmodel for images.
| Field Summary | |
private java.lang.String |
alternate
The alternate text for this image |
private java.lang.String |
base
The base directory for all the images |
private int |
height
The height of the image |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
source
The source URL of the image |
private java.lang.String |
style
Html-Style |
private java.lang.String |
styleClass
Style Class -> HTML class Attribut |
private java.lang.String |
styleId
Style ID |
private java.lang.String |
tooltip
Tooltip Text |
private int |
width
The width of the image |
| Constructor Summary | |
ImageModelImp()
Constructor for ImageModelImp |
|
ImageModelImp(ImageModel other)
Copy Constructor for ImageModelImp |
|
ImageModelImp(java.lang.String source)
Constructor for ImageModelImp |
|
ImageModelImp(java.lang.String source,
int width,
int height)
Constructor for ImageModelImp |
|
| Method Summary | |
java.lang.String |
getAlternate()
Returns the text to display if the image can't be displayed. |
java.lang.String |
getBase()
Gets the Base Directory for the Resource |
int |
getHeight()
Returns the height of the image |
java.lang.String |
getSource()
Returns the URL of the image to be displayed |
java.lang.String |
getStyle()
Returns the Style |
java.lang.String |
getStyleClass()
Returns the StyleClass |
java.lang.String |
getStyleId()
returns the StyleId |
java.lang.String |
getTooltip()
Returns a tooltip text for this image |
int |
getWidth()
Returns the width of the image |
void |
setAlternate(java.lang.String alt)
Sets the text to display if the image can't be displayed or the image content can't be found. |
void |
setBase(java.lang.String base)
Sets the resoure base directory |
void |
setFromImage(ImageModel other)
Copies all attributes from an other image |
void |
setHeight(int height)
Sets the height of the image |
void |
setSource(java.lang.String src)
Sets the URL of the image to be displayed |
void |
setStyle(java.lang.String style)
Sets the Style |
void |
setStyleClass(java.lang.String styleClass)
Sets the StyleClass |
void |
setStyleId(java.lang.String styleId)
Sets the StyleId |
void |
setTooltip(java.lang.String tooltip)
Sets the tooltip for this image |
void |
setWidth(int width)
Sets the width of the image |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
private java.lang.String source
private java.lang.String base
private java.lang.String tooltip
private java.lang.String alternate
private int width
private int height
private java.lang.String styleId
private java.lang.String styleClass
private java.lang.String style
| Constructor Detail |
public ImageModelImp()
public ImageModelImp(java.lang.String source)
source - The source URL of the image
public ImageModelImp(java.lang.String source,
int width,
int height)
source - The source URL of the imagewidth - The width of the imageheight - The height of the imagepublic ImageModelImp(ImageModel other)
other - The Model to copy from| Method Detail |
public void setFromImage(ImageModel other)
other - The Model to copy frompublic java.lang.String getTooltip()
ImageModel
getTooltip in interface ImageModelImageModel.getTooltip()public java.lang.String getAlternate()
ImageModel
getAlternate in interface ImageModelImageModel.getAlternate()public int getHeight()
ImageModel
getHeight in interface ImageModelImageModel.getHeight()public java.lang.String getSource()
ImageModel
getSource in interface ImageModelImageModel.getSource()public int getWidth()
ImageModel
getWidth in interface ImageModelImageModel.getWidth()public void setTooltip(java.lang.String tooltip)
tooltip - Tooltip textpublic void setAlternate(java.lang.String alt)
alt - The text to display if the image can't be displayed.public void setHeight(int height)
height - the height of the imagepublic void setSource(java.lang.String src)
src - the URL of the imagepublic void setWidth(int width)
width - the width of the imagepublic java.lang.String getBase()
WebResourceAccess
getBase in interface WebResourceAccessnullWebResourceAccess.getBase()public void setBase(java.lang.String base)
setBase in interface WebResourceAccessbase - Base Directorypublic java.lang.String getStyle()
ImageModel
getStyle in interface ImageModelImageModel.getStyle()public java.lang.String getStyleId()
ImageModel
getStyleId in interface ImageModelImageModel.getStyleId()public void setStyle(java.lang.String style)
ImageModel
setStyle in interface ImageModelstyle - Style constantImageModel.setStyle(String style)public void setStyleId(java.lang.String styleId)
ImageModel
setStyleId in interface ImageModelstyleId - HTML-Id of the elementImageModel.setStyleId(String styleId)public java.lang.String getStyleClass()
ImageModel
getStyleClass in interface ImageModelImageModel.getStyleClass()public void setStyleClass(java.lang.String styleClass)
ImageModel
setStyleClass in interface ImageModelstyleClass - StyleClassImageModel.setStyleClass(String styleClass)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||