コード例 #1
0
ファイル: HostTreeModel.java プロジェクト: gotomypc/zk
 public void removeProcessType(int groupindex, int hostindex, int processindex, String type) {
   FakeGroup group = (FakeGroup) fakeRoot.getChild(groupindex);
   FakeHost host = (FakeHost) group.getChild(hostindex);
   FakeProcess process = (FakeProcess) host.removeChild(processindex);
   process.type = type;
   this.fireEvent(host, processindex, processindex, TreeDataEvent.INTERVAL_REMOVED);
 }
コード例 #2
0
ファイル: HostTreeModel.java プロジェクト: gotomypc/zk
 public void updateProcessType(int groupindex, int hostindex, int processindex, String type) {
   FakeGroup group = (FakeGroup) fakeRoot.getChild(groupindex);
   FakeHost host = (FakeHost) group.getChild(hostindex);
   FakeProcess process = (FakeProcess) host.getChild(processindex);
   process.type = type;
   process.name = "AAAAA";
   this.fireEvent(host, processindex, processindex, TreeDataEvent.CONTENTS_CHANGED);
 }