X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbits%2FCell.java;fp=src%2Fjexer%2Fbits%2FCell.java;h=4be433c7d33d8d05201fd6d3b869ff37e06cfa54;hb=ab215e38e98a76ad189ba537e37c420ae515e4c0;hp=5db5f4387bdcfbf00f785834918d16407f488547;hpb=97bc3f29f12d64d27d49b0d61947d15dfa64d156;p=fanfix.git diff --git a/src/jexer/bits/Cell.java b/src/jexer/bits/Cell.java index 5db5f43..4be433c 100644 --- a/src/jexer/bits/Cell.java +++ b/src/jexer/bits/Cell.java @@ -134,6 +134,15 @@ public final class Cell extends CellAttributes { this.ch = ch; } + /** + * Public constructor creates a duplicate. + * + * @param cell the instance to copy + */ + public Cell(final Cell cell) { + setTo(cell); + } + // ------------------------------------------------------------------------ // Cell ------------------------------------------------------------------- // ------------------------------------------------------------------------ @@ -260,7 +269,7 @@ public final class Cell extends CellAttributes { /** * Setter for cell width. * - * @param ch new cell width, one of Width.SINGLE, Width.LEFT, or + * @param width new cell width, one of Width.SINGLE, Width.LEFT, or * Width.RIGHT */ public void setWidth(final Width width) {