git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TTerminalWindow working
[fanfix.git]
/
src
/
jexer
/
TWindow.java
diff --git
a/src/jexer/TWindow.java
b/src/jexer/TWindow.java
index d57b844d7d4408c4c14c70e4076914782bc90f4a..2fc4aa5d578288da8cf9daf18cecee088eacdccf 100644
(file)
--- 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.
*/
/**
* TWindow is the top-level container and drawing surface for other widgets.
*/
-public class TWindow extends TWidget
implements Comparable<TWindow>
{
+public class TWindow extends TWidget {
/**
* Window's parent TApplication.
/**
* Window's parent TApplication.
@@
-187,6
+187,15
@@
public class TWindow extends TWidget implements Comparable<TWindow> {
private int restoreWindowX;
private int restoreWindowY;
private int restoreWindowX;
private int restoreWindowY;
+ /**
+ * Set the maximum width for this window.
+ *
+ * @param maximumWindowWidth new maximum width
+ */
+ public final void setMaximumWindowWidth(final int maximumWindowWidth) {
+ this.maximumWindowWidth = maximumWindowWidth;
+ }
+
/**
* Public constructor. Window will be located at (0, 0).
*
/**
* Public constructor. Window will be located at (0, 0).
*
@@
-305,17
+314,6
@@
public class TWindow extends TWidget implements Comparable<TWindow> {
return true;
}
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.
*
/**
* Returns true if the mouse is currently on the close button.
*