com.adobe.icomm.assetplacement.model
Class PromoImageController

java.lang.Object
  extended by com.adobe.icomm.assetplacement.model.PackageElement
      extended by com.adobe.icomm.assetplacement.model.Controller
          extended by com.adobe.icomm.assetplacement.model.PromoImageController

public class PromoImageController
extends Controller

Class that represents the <PromoImage> element within a package definition file. This class provides access to things like w/h/contentType and scalingMethod properties


Method Summary
 String getHeight()
          Defines the height of the image cell in pixels.
 String getScalingMethod()
          Identifies how an image is to be scaled.
 String getWidth()
          Defines the width of the image cell in pixels.
 void setHeight(String value)
          Defines the height of the image cell in pixels.
 void setScalingMethod(String value)
          Identifies how an image is to be scaled.
 void setWidth(String value)
          Defines the width of the image cell in pixels.
 void validate(Validator validator)
          Validate this PromoImage.
 
Methods inherited from class com.adobe.icomm.assetplacement.model.Controller
getControllerType, getID, setID
 
Methods inherited from class com.adobe.icomm.assetplacement.model.PackageElement
getAttribute, getMetaData, remove, setAttribute, setMetaData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getScalingMethod

public String getScalingMethod()
Identifies how an image is to be scaled.

Returns:
the scaling method for this PromoImage.

setScalingMethod

public void setScalingMethod(String value)
Identifies how an image is to be scaled. The possible values are - actual (default) - fit - showAll

Parameters:
value - the new scaling method.

getWidth

public String getWidth()
Defines the width of the image cell in pixels.

Returns:
the width of the PromoImage.

setWidth

public void setWidth(String value)
Defines the width of the image cell in pixels.

Parameters:
value - the new width of the PromoImage.

getHeight

public String getHeight()
Defines the height of the image cell in pixels.

Returns:
the height of the PromoImage.

setHeight

public void setHeight(String value)
Defines the height of the image cell in pixels.

Parameters:
value - the new height of the PromoImage.

validate

public void validate(Validator validator)
Validate this PromoImage.

Overrides:
validate in class Controller
Parameters:
validator - the validator


[an error occurred while processing this directive] [an error occurred while processing this directive]