X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTWindow.java;h=e15092e5c07c29894be0cfa08e182914765689c4;hb=128e5be1ffb65d047d8461ea1cfb65c22686ec91;hp=8634b2a9227c2e1bb17ab0ae01b08fcbd5268fff;hpb=928811d8e292801029b7b6605453524f65e9ebd9;p=fanfix.git diff --git a/src/jexer/TWindow.java b/src/jexer/TWindow.java index 8634b2a..e15092e 100644 --- a/src/jexer/TWindow.java +++ b/src/jexer/TWindow.java @@ -46,7 +46,7 @@ import static jexer.TKeypress.*; /** * TWindow is the top-level container and drawing surface for other widgets. */ -public class TWindow extends TWidget implements Comparable { +public class TWindow extends TWidget { /** * Window's parent TApplication. @@ -305,17 +305,6 @@ public class TWindow extends TWidget implements Comparable { return true; } - /** - * Comparison operator sorts on z. - * - * @param that another TWindow instance - * @return difference between this.z and that.z - */ - @Override - public final int compareTo(final TWindow that) { - return (this.z - that.z); - } - /** * Returns true if the mouse is currently on the close button. * @@ -372,7 +361,7 @@ public class TWindow extends TWidget implements Comparable { * * @return the background color */ - private CellAttributes getBackground() { + public final CellAttributes getBackground() { if (!isModal() && (inWindowMove || inWindowResize || inKeyboardResize) ) {