X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbits%2FCell.java;h=4be433c7d33d8d05201fd6d3b869ff37e06cfa54;hb=ceee6bcaa7372a1901cb7c9784acddbeb666cb42;hp=5db5f4387bdcfbf00f785834918d16407f488547;hpb=9588c7134280341ab6e92e37d1c1d00b3756cee5;p=nikiroo-utils.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) {