public void uimsg(String msg, Object... args) { if (msg == "inpop") { List<Spec> inputs = new LinkedList<Spec>(); for (int i = 0; i < args.length; ) { int resid = (Integer) args[i++]; Message sdt = (args[i] instanceof byte[]) ? new MessageBuf((byte[]) args[i++]) : MessageBuf.nil; int num = (Integer) args[i++]; inputs.add(new Spec(ui.sess.getres(resid), sdt, num)); } this.inputs = inputs; } else if (msg == "opop") { List<Spec> outputs = new LinkedList<Spec>(); for (int i = 0; i < args.length; ) { int resid = (Integer) args[i++]; Message sdt = (args[i] instanceof byte[]) ? new MessageBuf((byte[]) args[i++]) : MessageBuf.nil; int num = (Integer) args[i++]; outputs.add(new Spec(ui.sess.getres(resid), sdt, num)); } this.outputs = outputs; } else if (msg == "qmod") { List<Indir<Resource>> qmod = new ArrayList<Indir<Resource>>(); for (Object arg : args) qmod.add(ui.sess.getres((Integer) arg)); this.qmod = qmod; } else { super.uimsg(msg, args); } }
public void uimsg(int id, String msg, Object... args) { Widget wdg; synchronized (this) { wdg = widgets.get(id); } if (wdg != null) wdg.uimsg(msg.intern(), args); else throw (new UIException("Uimsg to non-existent widget " + id, msg, args)); }
public void uimsg(String msg, Object... args) { if (msg == "pack") { pack(); } else if (msg == "dt") { dt = (Integer) args[0] != 0; } else { super.uimsg(msg, args); } }
public void uimsg(String msg, Object... args) { if (msg == "act") { int n = (Integer) args[0]; if (args.length > 1) { Indir<Resource> res = ui.sess.getres((Integer) args[1]); actions[n] = res; dyn[n] = ((Integer) args[2]) != 0; } else { actions[n] = null; } } else if (msg == "use") { this.use = (Integer) args[0]; } else if (msg == "used") { } else if (msg == "dropped") { } else { super.uimsg(msg, args); } }
public void uimsg(String msg, Object... args) { if (msg == "upd") { this.avagob = (Integer) args[0]; return; } if (msg == "ch") { List<Indir<Resource>> rl = new LinkedList<Indir<Resource>>(); for (Object arg : args) rl.add(ui.sess.getres((Integer) arg)); if (rl.size() == 0) { this.myown = null; none = true; } else { if (myown != null) myown.setlay(rl); else myown = new AvaRender(rl); none = false; } return; } super.uimsg(msg, args); }