|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.rap.rwt.template.Cell<ImageCell> org.eclipse.rap.rwt.template.ImageCell
public class ImageCell
Defines a region in a template that displays an image.
Nested Class Summary | |
---|---|
static class |
ImageCell.ScaleMode
Represents a method used to scale an image. |
Constructor Summary | |
---|---|
ImageCell(Template template)
Constructs a new image cell and adds it to the given template. |
Method Summary | |
---|---|
ImageCell |
setImage(Image image)
Sets the image to be displayed in this cell if the bindingIndex is not set. |
ImageCell |
setScaleMode(ImageCell.ScaleMode scaleMode)
Selects the method used for image scaling. |
protected JsonObject |
toJson()
Creates a JSON representation of this cell. |
Methods inherited from class org.eclipse.rap.rwt.template.Cell |
---|
setBackground, setBindingIndex, setBottom, setFont, setForeground, setHeight, setHorizontalAlignment, setLeft, setName, setRight, setSelectable, setTop, setVerticalAlignment, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageCell(Template template)
template
- the parent template, must not be null
Method Detail |
---|
public ImageCell setImage(Image image)
image
- an image, or null
if no image should be displayed
public ImageCell setScaleMode(ImageCell.ScaleMode scaleMode)
scaleMode
- the scale mode to use, must not be null
protected JsonObject toJson()
Cell
protected JsonObject toJson() { JsonObject json = super.toJson(); json.add( "foo", getFoo() ); ... return json; }
toJson
in class Cell<ImageCell>
|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2013. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0