|
Eclipse Remote Application Platform | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rap.rwt.template.Cell<TextCell>
org.eclipse.rap.rwt.template.TextCell
public class TextCell
Defines a region in a template that displays a text.
| Constructor Summary | |
|---|---|
TextCell(Template template)
Constructs a new text cell and adds it to the given template. |
|
| Method Summary | |
|---|---|
TextCell |
setText(java.lang.String text)
Sets the text to be displayed in the cell if the bindingIndex is not set. |
TextCell |
setWrap(boolean wrap)
Enables automatic line wrapping. |
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 TextCell(Template template)
| Method Detail |
|---|
public TextCell setText(java.lang.String text)
text - the text to display, must not be null
public TextCell setWrap(boolean wrap)
false.
wrap - true to enable automatic line wrapping
protected JsonObject toJson()
Cell
protected JsonObject toJson() {
JsonObject json = super.toJson();
json.add( "foo", getFoo() );
...
return json;
}
toJson in class Cell<TextCell>
|
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