Mercurial > hg > Database > Alice
view src/alice/test/topology/aquarium/RefreshWindow.java @ 262:ba55adb8a042
fixed bug
author | sugi |
---|---|
date | Tue, 23 Jul 2013 14:13:14 +0900 |
parents | b5c642ba998e |
children |
line wrap: on
line source
package alice.test.topology.aquarium; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class RefreshWindow extends CodeSegment { private Receiver num = ids.create(CommandType.PEEK); private Receiver host = ids.create(CommandType.PEEK); private MakeFrame frame; public RefreshWindow(MakeFrame frame){ this.host.setKey("host"); this.num.setKey("host_num"); this.frame = frame; } @Override public void run() { frame.getJFrame().dispose(); ObjectList list = frame.getList(); frame = new MakeFrame(host.asString(),num.asInteger()); for (MakeObject obj : list.table) { frame.register(obj); } } }