X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbits%2FCellAttributes.java;h=28dbe31d95637e97a00c0231d7ab7abeefebf13a;hb=9ff1c0e327bfa10c154cdb051d9c15a8fa96e7f8;hp=36cf700ea7b3da41b045874e6aa59274155dbc56;hpb=a2018e9964f6c58742cd1e6dd0a0c63e244a89d6;p=fanfix.git diff --git a/src/jexer/bits/CellAttributes.java b/src/jexer/bits/CellAttributes.java index 36cf700..28dbe31 100644 --- a/src/jexer/bits/CellAttributes.java +++ b/src/jexer/bits/CellAttributes.java @@ -218,6 +218,16 @@ public class CellAttributes { reset(); } + /** + * Public constructor makes a copy from another instance. + * + * @param that another CellAttributes instance + * @see #reset() + */ + public CellAttributes(final CellAttributes that) { + setTo(that); + } + /** * Comparison check. All fields must match to return true. *