Package org.eclipse.rap.rwt.template
Class ImageCell
- All Implemented Interfaces:
- Serializable
Defines a region in a template that displays an image.
- Since:
- 2.2
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumRepresents a method used to scale an image.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionSets the image to be displayed in this cell if the bindingIndex is not set.setScaleMode(ImageCell.ScaleMode scaleMode) Selects the method used for image scaling.protected JsonObjecttoJson()Creates a JSON representation of this cell.Methods inherited from class org.eclipse.rap.rwt.template.CellsetBackground, setBindingIndex, setBottom, setBottom, setFont, setForeground, setHeight, setHorizontalAlignment, setLeft, setLeft, setName, setRight, setRight, setSelectable, setTop, setTop, setVerticalAlignment, setWidth
- 
Constructor Details- 
ImageCellConstructs a new image cell and adds it to the given template.- Parameters:
- template- the parent template, must not be- null
 
 
- 
- 
Method Details- 
setImageSets the image to be displayed in this cell if the bindingIndex is not set. This can be used to display a static image.- Parameters:
- image- an image, or- nullif no image should be displayed
- Returns:
- the cell itself, to enable method chaining
 
- 
setScaleModeSelects the method used for image scaling. The default is ScaleMode.NONE.- Parameters:
- scaleMode- the scale mode to use, must not be- null
- Returns:
- the cell itself, to enable method chaining
 
- 
toJsonDescription copied from class:CellCreates a JSON representation of this cell. Subclasses can override this method, but must call super and add additional attributes like this:protected JsonObject toJson() { JsonObject json = super.toJson(); json.add( "foo", getFoo() ); ... return json; }
 
-