예제 #1
0
 private void contract() {
   resize(new Coord(sz.x, 50));
   setcanfocus(false);
   if (sel != null) sel.hide();
   chansel.hide();
   expanded = false;
 }
예제 #2
0
 public void newchild(Widget w) {
   if (w instanceof Channel) {
     Channel chan = (Channel) w;
     select(chan);
     chansel.add(chan);
     if (!expanded) chan.hide();
   }
 }
예제 #3
0
 public void select(Channel chan) {
   Channel prev = sel;
   sel = chan;
   if (expanded) {
     if (prev != null) prev.hide();
     sel.show();
     resize(sz);
   }
 }