Mercurial > hg > Database > Alice
view src/main/java/alice/test/topology/aquarium/RefreshWindow.java @ 543:f3f7e256ee03 dispose
add AliceDaemon on paramater
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 03 Aug 2015 20:00:53 +0900 |
parents | aefbe41fcf12 |
children | 15eeb439830c |
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); } } }