com.cc.framework.ui
Class AbstractImageMap.ImageMapping

java.lang.Object
  extended bycom.cc.framework.ui.AbstractImageMap.ImageMapping
All Implemented Interfaces:
ImageModel, java.io.Serializable, WebResourceAccess
Enclosing class:
AbstractImageMap

public static class AbstractImageMap.ImageMapping
extends java.lang.Object
implements ImageModel, java.io.Serializable

A ImageMapping maps a regular expression to an image

See Also:
Serialized Form

Field Summary
private  ImageModel image
          The Image Rule
private  java.lang.Object rule
          The Mapping rule (regular expression)
private static long serialVersionUID
          Serial Version UID
 
Constructor Summary
AbstractImageMap.ImageMapping(java.lang.String rule, ImageModel image)
          Constructor
 
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.Object getRule()
           
 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 setBase(java.lang.String base)
          Sets the resoure base directory
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

rule

private java.lang.Object rule
The Mapping rule (regular expression)


image

private ImageModel image
The Image Rule

Constructor Detail

AbstractImageMap.ImageMapping

public AbstractImageMap.ImageMapping(java.lang.String rule,
                                     ImageModel image)
Constructor

Parameters:
rule - The mapping rule (regular expression)
image - The image model
Method Detail

getRule

public java.lang.Object getRule()
Returns:
Mapping rule (regular expression)

getHeight

public int getHeight()
Description copied from interface: ImageModel
Returns the height of the image

Specified by:
getHeight in interface ImageModel
Returns:
the height of the image
See Also:
ImageModel.getHeight()

getWidth

public int getWidth()
Description copied from interface: ImageModel
Returns the width of the image

Specified by:
getWidth in interface ImageModel
Returns:
the width of the image
See Also:
ImageModel.getWidth()

getSource

public java.lang.String getSource()
Description copied from interface: ImageModel
Returns the URL of the image to be displayed

Specified by:
getSource in interface ImageModel
Returns:
String the URL of the image
See Also:
ImageModel.getSource()

getAlternate

public java.lang.String getAlternate()
Description copied from interface: ImageModel
Returns the text to display if the image can't be displayed.

Specified by:
getAlternate in interface ImageModel
Returns:
String the alternative text.
See Also:
ImageModel.getAlternate()

getTooltip

public java.lang.String getTooltip()
Description copied from interface: ImageModel
Returns a tooltip text for this image

Specified by:
getTooltip in interface ImageModel
Returns:
Tooltip text
See Also:
ImageModel.getTooltip()

getBase

public java.lang.String getBase()
Description copied from interface: WebResourceAccess
Gets the Base Directory for the Resource

Specified by:
getBase in interface WebResourceAccess
Returns:
base directory or null
See Also:
WebResourceAccess.getBase()

setBase

public void setBase(java.lang.String base)
Description copied from interface: WebResourceAccess
Sets the resoure base directory

Specified by:
setBase in interface WebResourceAccess
Parameters:
base - Base Directory
See Also:
WebResourceAccess.setBase(java.lang.String)

getStyle

public java.lang.String getStyle()
Description copied from interface: ImageModel
Returns the Style

Specified by:
getStyle in interface ImageModel
Returns:
String
See Also:
ImageModel.getStyle()

getStyleClass

public java.lang.String getStyleClass()
Description copied from interface: ImageModel
Returns the StyleClass

Specified by:
getStyleClass in interface ImageModel
Returns:
String
See Also:
ImageModel.getStyleClass()

getStyleId

public java.lang.String getStyleId()
Description copied from interface: ImageModel
returns the StyleId

Specified by:
getStyleId in interface ImageModel
Returns:
string
See Also:
ImageModel.getStyleId()

setStyle

public void setStyle(java.lang.String style)
Description copied from interface: ImageModel
Sets the Style

Specified by:
setStyle in interface ImageModel
Parameters:
style - Style constant
See Also:
ImageModel.setStyle(java.lang.String)

setStyleClass

public void setStyleClass(java.lang.String styleClass)
Description copied from interface: ImageModel
Sets the StyleClass

Specified by:
setStyleClass in interface ImageModel
Parameters:
styleClass - StyleClass
See Also:
ImageModel.setStyleClass(java.lang.String)

setStyleId

public void setStyleId(java.lang.String styleId)
Description copied from interface: ImageModel
Sets the StyleId

Specified by:
setStyleId in interface ImageModel
Parameters:
styleId - HTML-Id of the element
See Also:
ImageModel.setStyleId(java.lang.String)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.