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