|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.controls.celltable.configs.AbstractCellAttributeConfig
com.sybase.uep.bobclient.controls.celltable.configs.CellImageConfig
public class CellImageConfig
Configuration of a cell image
Constructor Summary | |
---|---|
CellImageConfig()
|
Method Summary | |
---|---|
void |
addValueImageMapping(java.lang.String value,
java.lang.String imageName)
Adds a pair of MBO attribute value and the mapping image file |
java.lang.String |
getDefaultValueMappingImageName()
Gets the default value mapping image file name |
java.lang.String |
getImageName()
Gets full image file name of the image (eg. |
int |
getImageType()
Gets the image type. |
java.lang.String |
getMboAttrId()
Gets the mobile business object attribute id that the image is bind to |
java.lang.String |
getNewImageName()
Gets the name of image file that indicates 'new' state of a MBO |
java.lang.String |
getPendingImageName()
Gets the name of image file that indicates pending state of a MBO |
java.util.Hashtable |
getValueImageMapping()
Gets the pairs of MBO attribute value and the mapping image file |
ControlVariable |
getVariable()
Gets variable that is set to the image, the variable is supposed to reference to a real image |
boolean |
isPreserveAspectRatio()
Gets if preserve aspect ratio. |
void |
setDefaultValueMappingImageName(java.lang.String defaultValueMappingImageName)
Sets the default value mapping image file name |
void |
setImageName(java.lang.String imageName)
Sets full image file name to the image |
void |
setImageType(int imageType)
Sets the image type. |
void |
setMboAttrId(java.lang.String mboAttrId)
Sets mobile business object attribute id to the image |
void |
setNewImageName(java.lang.String newImageName)
Sets the name of image file that indicates 'new' state of a MBO |
void |
setPendingImageName(java.lang.String pendingImageName)
Sets the name of image file that indicates 'pending' state of a MBO |
void |
setPreserveAspectRatio(boolean isPreserveAspectRatio)
Sets if preserve aspect ratio |
void |
setValueImageMapping(java.util.Hashtable valueImageMapping)
Sets the pairs of MBO attribute value and the mapping image file |
void |
setVariable(ControlVariable variable)
Sets a variable to the image, the variable is supposed to reference to a real image |
Methods inherited from class com.sybase.uep.bobclient.controls.celltable.configs.AbstractCellAttributeConfig |
---|
getColSpan, getFocusFontStyle, getHAlignment, getOrder, getRowSpan, getUnfocusFontStyle, getVAlignment, setColSpan, setFocusFontStyle, setHAlignment, setOrder, setRowSpan, setUnfocusFontStyle, setVAlignment |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CellImageConfig()
Method Detail |
---|
public java.lang.String getImageName()
public void setImageName(java.lang.String imageName)
imageName
- public java.lang.String getPendingImageName()
public void setPendingImageName(java.lang.String pendingImageName)
pendingImageName
- - image file namepublic java.lang.String getNewImageName()
public void setNewImageName(java.lang.String newImageName)
newImageName
- - image file namepublic java.lang.String getMboAttrId()
public void setMboAttrId(java.lang.String mboAttrId)
mboAttrId
- - mobile business object attribute idpublic ControlVariable getVariable()
public void setVariable(ControlVariable variable)
variable
- - ControlVariablepublic int getImageType()
public void setImageType(int imageType)
imageType
- - one constant of ICellAttributeTypeContants. eg.ICellAttributeTypeContants.MBO_ATTRIBUTE_TYPEpublic boolean isPreserveAspectRatio()
public void setPreserveAspectRatio(boolean isPreserveAspectRatio)
isPreserveAspectRatio
- - true means keep the original width and height ratio when scaling imagepublic java.lang.String getDefaultValueMappingImageName()
public void setDefaultValueMappingImageName(java.lang.String defaultValueMappingImageName)
defaultValueMappingImageName
- - image file name with file extensionpublic java.util.Hashtable getValueImageMapping()
public void setValueImageMapping(java.util.Hashtable valueImageMapping)
valueImageMapping
- - a Hashtable, key is MBO attribute value of type String, value is mapping file namepublic void addValueImageMapping(java.lang.String value, java.lang.String imageName)
value
- - MBO attribute valueimageName
- - image file name with file extension
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |