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
#51 complete
[fanfix.git]
/
src
/
jexer
/
TWidget.java
diff --git
a/src/jexer/TWidget.java
b/src/jexer/TWidget.java
index ba18989bfc43d38ea0549e42f5f20dfb8358e1ab..60bc3e4a618c0cce09d84cbdbedfdc200da39906 100644
(file)
--- a/
src/jexer/TWidget.java
+++ b/
src/jexer/TWidget.java
@@
-1475,6
+1475,19
@@
public abstract class TWidget implements Comparable<TWidget> {
}
}
}
}
+ /**
+ * Make this widget, all of its parents, the active child.
+ */
+ public final void activateAll() {
+ activate();
+ if (parent == this) {
+ return;
+ }
+ if (parent != null) {
+ parent.activateAll();
+ }
+ }
+
/**
* Switch the active widget with the next in the tab order.
*
/**
* Switch the active widget with the next in the tab order.
*
@@
-1605,11
+1618,10
@@
public abstract class TWidget implements Comparable<TWidget> {
splitPane.setLeft(this);
splitPane.setRight(newWidget);
}
splitPane.setLeft(this);
splitPane.setRight(newWidget);
}
- splitPane.activate();
if (newWidget != null) {
if (newWidget != null) {
- newWidget.activate();
+ newWidget.activate
All
();
} else {
} else {
- activate();
+ activate
All
();
}
assert (parent != null);
}
assert (parent != null);
@@
-1657,11
+1669,10
@@
public abstract class TWidget implements Comparable<TWidget> {
splitPane.setTop(this);
splitPane.setBottom(newWidget);
}
splitPane.setTop(this);
splitPane.setBottom(newWidget);
}
- splitPane.activate();
if (newWidget != null) {
if (newWidget != null) {
- newWidget.activate();
+ newWidget.activate
All
();
} else {
} else {
- activate();
+ activate
All
();
}
assert (parent != null);
}
assert (parent != null);