Mercurial > hg > Database > Alice
view src/alice/test/topology/aquarium/RefreshWindow.java @ 140:b51d3bf971e7 working
add function (refresh)
author | sugi |
---|---|
date | Thu, 20 Sep 2012 01:32:46 +0900 |
parents | |
children | 6a69891b7232 |
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 host = ids.create(CommandType.PEEK); private MakeFrame frame; public RefreshWindow(MakeFrame frame){ this.host.setKey("local","host"); this.frame = frame; } @Override public void run() { frame.getJFrame().dispose(); ObjectList list = frame.getList(); frame = new MakeFrame(this.host.asString()); for (MakeObject obj : list.table) { this.frame.register(obj); } } }