|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.rt.tview.AgoColumnBase | +--com.sssw.rt.tview.AgoColumnImage
AgoColumnImage is bound column type that you can use to display images from a database column or the Media store.
Constructor Summary | |
AgoColumnImage(int width,
boolean visible,
boolean transparent,
Color backgroundColor,
int borderType)
|
Method Summary | |
boolean |
getAdjustWidthForContent()
Returns the adjust width for content property. |
int |
getImageHeight()
Returns the image height, in pixels. |
String |
getTitlePropertyName()
Returns the name of the property that provides the text for the image title |
void |
setAdjustWidthForContent(boolean adjustwidthforcontent)
Sets the property which causes the column to adjust its width according to its content |
void |
setCaretPropertyName(String caretpropertyname)
Specifies the image to be used in this column when the column has the caret. |
void |
setImageHeight(int imageheight)
Sets the image height in pixels. |
void |
setPropertyName(String propertyname)
Sets the name of the image to display in this column, or name of the source database column. |
void |
setTitlePropertyName(String titlepropertyname)
Sets the name of the property that will provide the text for the image title |
Methods inherited from class com.sssw.rt.tview.AgoColumnBase |
getAlignment,
getBackgroundColor,
getBorderType,
getDisplayWidth,
getHidden,
getResizable,
getSelectable,
getTransparent,
getVisible,
getWidth,
isWidthFixed,
setAlignment,
setBackgroundColor,
setBorderType,
setFixedWidth,
setHidden,
setProportionalWidth,
setProportionalWidth,
setResizable,
setSelectable,
setTransparent,
setVisible,
setWidth |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AgoColumnImage(int width, boolean visible, boolean transparent, Color backgroundColor, int borderType)
width
- column width, in pixelsvisible
- if set to true the image column is visibletransparent
- if set to true the image column is transparentColor
- background color of image columnborderType
- image column border type
For the borderType
parameter, see the AgoColumnBase.setBorderType() method.
AgoColumnImage colImg = new AgoColumnImage(100, true, true, Color.white, AgoColumnBase.BORDER_3D);
AgoColumnBase.setBorderType(int borderType)
Method Detail |
public int getImageHeight()
int ht = colImg.getImageHeight();
AgoColumnImage.setImageHeight(int imageheight)
public void setImageHeight(int imageheight)
imageheight
- the image height, in pixelscolImg.setImageHeight(20);
AgoColumnImage.getImageHeight()
public final boolean getAdjustWidthForContent()
AgoColumnImage.setAdjustWidthForContent(boolean adjustwidthforcontent)
public final void setAdjustWidthForContent(boolean adjustwidthforcontent)
adjustwidthforcontent
- set to true to make the width of the column adjust to the size of the imagecolImg.setAdjustWidthForContent(true);
AgoColumnImage.getAdjustWidthForContent()
,
AgoColumnBase.getDisplayWidth()
public String getTitlePropertyName()
String titlePropName = colImg.getTitlePropertyName();
AgoColumnImage.setTitlePropertyName(String titlepropertyname)
public void setTitlePropertyName(String titlepropertyname)
titlepropertyname
- the image title name// set the property from which the image // title is to be retrieved - // in this case, the property "ImageTitle" // should have as its value the image title colImg.setTitlePropertyName("ImageTitle");
AgoColumnImage.getTitlePropertyName()
public void setPropertyName(String propertyname)
propertyname
- name of the image file or the database column colImg.setPropertyName("Image");This fragment shows how to display an image from the media store.
colImg.setPropertyName("SilverMaster35:aglogo.gif");
public void setCaretPropertyName(String caretpropertyname)
caretpropertyname
- name of the image file (in the media store) or the database column
to use when this column has the caretcolImg.setCaretPropertyName("CaretImage");This fragment shows how to display an image from the media store.
colImg.setCaretPropertyName("SilverMaster35:aglogo.gif");
AgoViewFormat
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |