Class TextCell
- All Implemented Interfaces:
Serializable
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Cell
setBackground, setBindingIndex, setBottom, setBottom, setFont, setForeground, setHeight, setHorizontalAlignment, setLeft, setLeft, setName, setRight, setRight, setSelectable, setTop, setTop, setVerticalAlignment, setWidth
-
Constructor Details
-
TextCell
Constructs a new text cell and adds it to the given template.
-
-
Method Details
-
setText
-
setWrap
Enables automatic line wrapping. The default isfalse.- Parameters:
wrap-trueto enable automatic line wrapping- Returns:
- the cell itself, to enable method chaining
-
toJson
Description 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; }
-