com.sas.servlet.tbeans.form
Class BaseImage

com.sas.servlet.tbeans.form.BaseImage
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.lang.ObjectDataInterface, FormElementModificationEventInterface, com.sas.servlet.tbeans.form.JavaScriptObjectCreationInterface, com.sas.servlet.tbeans.JavaScriptEventHandlerInterface, RenderableInterface, com.sas.servlet.tbeans.TitleInterface, TransformationInterface, URLInterface, GenericValidatorInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable
Direct Known Subclasses:
Image

public abstract class BaseImage
implements URLInterface, com.sas.servlet.tbeans.TitleInterface

The BaseImage is an abstract TransformationBean™ used to create an Image.

Note that subclasses of this bean actually provide the markup rendering used in/with Servlet and JavaServer Pages technologies. If you need to add support for a markup language that is not explicitly provided with AppDev Studio, then you must extend this class.

For More Information:

JSP custom tags provide an alternative to using the TransformationBeans™. Visit the Custom Tag Library Reference for additional information on the sas:Image custom tag.

Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sas.servlet.tbeans.form.BaseFormElement
RB_KEY
 
Constructor Summary
BaseImage()
          Constructs a new BaseImage Transformation Bean
 
Method Summary
 java.lang.String getAlignment()
          Gets the alignment of the image.
 java.lang.String getAlternateText()
          Gets the alternate text of the image.
 int getBorderWidth()
          Gets the borderWidth of the image.
 int getHeight()
          Gets the height of the image.
 int getHeightPercentage()
          Gets the height of the Image as a percentage
 int getHorizontalSpace()
          Gets the horizontal space of the image.
 java.lang.String getImage()
          Gets the source for the iamge.
 java.lang.String getTarget()
          Returns the value of the TARGET= argument used on the anchor tags generated.
 java.lang.String getURL()
          Gets the destination URL for the image's link.
 boolean getUseAsFormElement()
          Returns true if image should be used as a FORM element.
 int getVerticalSpace()
          Gets the vertical space of the image.
 int getWidth()
          Gets the width of the image.
 int getWidthPercentage()
          Gets the width of the Image as a percentage
 void setAlignment(java.lang.String value)
          Sets the alignment for the image.
 void setAlternateText(java.lang.String value)
          Sets the alternate text for the image.
 void setBorderWidth(int value)
          Sets the borderWidth for the image.
 void setHeight(int value)
          Sets the height for the image.
 void setHeightPercentage(int value)
          Sets the height of the Image as a percentage
 void setHorizontalSpace(int value)
          Sets the horizontal space for the image.
 void setImage(java.lang.String value)
          Sets the source for the image.
 void setTarget(java.lang.String value)
          Sets the value of the TARGET= argument used on the anchor tags generated.
 void setURL(java.lang.String location)
          Set the destination URL for the image's link.
 void setUseAsFormElement(boolean enable)
          Turns on/off the use of image as a FORM element.
 void setVerticalSpace(int value)
          Sets the vertical space for the image.
 void setWidth(int value)
          Sets the width for the image.
 void setWidthPercentage(int value)
          Sets the width of the Image as a percentage
 
Methods inherited from class com.sas.servlet.tbeans.form.BaseFormElement
getAccessKey, getErrorHandler, getModificationEventName, getName, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyleInfo, getTabIndex, getTitle, getValidationFunctions, getValidator, isEnabled, isValid, isValidationEnabled, setAccessKey, setEnabled, setErrorHandler, setId, setModificationEventName, setName, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyleInfo, setTabIndex, setTitle, setValidator, write, writeJavaScriptObject, writeJavaScriptObjectValidate, writeJavaScriptValidatorObject, writeValidationScript
 
Methods inherited from class com.sas.servlet.tbeans.BaseTransformation
addPropertyChangeListener, addPropertyChangeListener, cleanUpResources, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCustomAttributes, getDescription, getId, getInputTransform, getLocale, getObjectData, getObjectDataProperty, getOutputTransform, getRequest, getResponse, getTagEpilog, getTagProlog, hasListeners, isCleanUpResourcesOn, isVisible, removePropertyChangeListener, removePropertyChangeListener, setCleanUpResourcesOn, setCustomAttributes, setDescription, setInputTransform, setLocale, setLocaleDependentProperties, setObjectData, setObjectDataProperty, setOutputTransform, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, toString, write, write, write
 

Constructor Detail

BaseImage

public BaseImage()
Constructs a new BaseImage Transformation Bean

Method Detail

setImage

public void setImage(java.lang.String value)
Sets the source for the image.

Parameters:
type - The URL of the image

getImage

public java.lang.String getImage()
Gets the source for the iamge.

Returns:
The URL of the image

setAlternateText

public void setAlternateText(java.lang.String value)
Sets the alternate text for the image.

Parameters:
text - The alternate text of the image

getAlternateText

public java.lang.String getAlternateText()
Gets the alternate text of the image.

Returns:
The alternate text of the image

setAlignment

public void setAlignment(java.lang.String value)
Sets the alignment for the image.

Parameters:
align - The alignment of the image (top, bottom, middle, left, right)

getAlignment

public java.lang.String getAlignment()
Gets the alignment of the image.

Returns:
The alignment of the image

setWidth

public void setWidth(int value)
Sets the width for the image.

Parameters:
width - The width of the image

getWidth

public int getWidth()
Gets the width of the image.

Returns:
The width of the image

setWidthPercentage

public void setWidthPercentage(int value)
Sets the width of the Image as a percentage

Parameters:
value - The width as a percentage

getWidthPercentage

public int getWidthPercentage()
Gets the width of the Image as a percentage

Returns:
The width as a percentage

setHeight

public void setHeight(int value)
Sets the height for the image.

Parameters:
value - The height of the image

getHeight

public int getHeight()
Gets the height of the image.

Returns:
The height of the image

setHeightPercentage

public void setHeightPercentage(int value)
Sets the height of the Image as a percentage

Parameters:
value - The height as a percentage

getHeightPercentage

public int getHeightPercentage()
Gets the height of the Image as a percentage

Returns:
The height as a percentage

setHorizontalSpace

public void setHorizontalSpace(int value)
Sets the horizontal space for the image.

Parameters:
hspace - The horizontal space of the image

getHorizontalSpace

public int getHorizontalSpace()
Gets the horizontal space of the image.

Returns:
The horizontal space of the image

setVerticalSpace

public void setVerticalSpace(int value)
Sets the vertical space for the image.

Parameters:
hspace - The vertical space of the image

getVerticalSpace

public int getVerticalSpace()
Gets the vertical space of the image.

Returns:
The vertical space of the image

setUseAsFormElement

public void setUseAsFormElement(boolean enable)
Turns on/off the use of image as a FORM element. The default is true.

Parameters:
enable - true if image should be a FORM element

getUseAsFormElement

public boolean getUseAsFormElement()
Returns true if image should be used as a FORM element.

Returns:
true if image should be a FORM element

setURL

public void setURL(java.lang.String location)
Set the destination URL for the image's link. Only accessible if getUseAsFormElement returns false.

Specified by:
setURL in interface URLInterface
Parameters:
location - The destination URL for the link

getURL

public java.lang.String getURL()
Gets the destination URL for the image's link. Only accessible if getUseAsFormElement returns false.

Specified by:
getURL in interface URLInterface
Returns:
The destination URL for the link

setBorderWidth

public void setBorderWidth(int value)
Sets the borderWidth for the image.

Parameters:
borderWidth - The border width of the image

getBorderWidth

public int getBorderWidth()
Gets the borderWidth of the image.

Returns:
The border width of the image

getTarget

public java.lang.String getTarget()
Returns the value of the TARGET= argument used on the anchor tags generated. This value determines where/how the links associated with the image.

Returns:
TARGET= argument of the anchor tags

setTarget

public void setTarget(java.lang.String value)
Sets the value of the TARGET= argument used on the anchor tags generated.

Parameters:
value - The value of the TARGET= argument on the anchor tag



Copyright © 2009 SAS Institute Inc. All Rights Reserved.