Mercurial > hg > Database > Alice
view src/alice/test/topology/aquarium/RefreshWindow.java @ 217:b5c642ba998e working
change as** method and remove "local" key in TEST
author | sugi |
---|---|
date | Wed, 27 Mar 2013 20:02:38 +0900 |
parents | b5daccf36104 |
children | ba55adb8a042 |
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("host_num"); this.frame = frame; } @Override public void run() { frame.getJFrame().dispose(); ObjectList list = frame.getList(); frame = new MakeFrame(this.host.asString(),host.asInteger()); for (MakeObject obj : list.table) { this.frame.register(obj); } } }