Beispiel #1
0
 public boolean setActive(ConsoleState state, Window child) {
   // Assert child in children_
   boolean ret = true;
   if (ret && active_ != null) // && state != null)
   ret = active_.onFocus(state, false);
   if (ret) {
     active_ = null;
     if (child != null) // && state != null)
     ret = child.onFocus(state, true);
     if (ret) active_ = child;
   }
   return ret;
 }
Beispiel #2
0
 @Override
 public boolean onFocus(ConsoleState state, boolean focus) {
   boolean ret = super.onFocus(state, focus);
   if (ret && active_ != null) ret = active_.onFocus(state, focus);
   return ret;
 }