Changeset 88 for java/main/src/main/java/com/framsticks/gui/TreeNode.java
- Timestamp:
- 06/30/13 12:48:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/gui/TreeNode.java
r85 r88 41 41 42 42 final protected Frame frame; 43 final protected EndpointAtFrame endpoint;43 final protected InstanceAtFrame instanceAtFrame; 44 44 45 45 final protected Map<EventParam, Subscription<?>> userSubscriptions = new HashMap<>(); … … 51 51 protected Path path; 52 52 53 public TreeNode( EndpointAtFrame endpoint, final Path path) {54 this.frame = endpoint.getFrame();53 public TreeNode(InstanceAtFrame instanceAtFrame, final Path path) { 54 this.frame = instanceAtFrame.getFrame(); 55 55 assert frame.isActive(); 56 56 this.paramId = path.getLastElement(); … … 58 58 log.debug("creating treenode " + name + ": " + path); 59 59 this.path = path; 60 this. endpoint = endpoint;60 this.instanceAtFrame = instanceAtFrame; 61 61 62 62 iconName = TreeCellRenderer.findIconName(name, path.getTextual()); … … 171 171 } 172 172 log.debug("update: treenode for " + p); 173 TreeNode childNode = new TreeNode( endpoint, childPath);173 TreeNode childNode = new TreeNode(instanceAtFrame, childPath); 174 174 175 175 frame.addNode(childNode, TreeNode.this); … … 336 336 337 337 CompositeParam param = path.getTop().getParam(); 338 panel = endpoint.findPanel(param.computeAccessId());338 panel = instanceAtFrame.findPanel(param.computeAccessId()); 339 339 if (panel != null) { 340 340 log.debug("found prepared panel for: " + path); … … 353 353 @Override 354 354 public void run() { 355 panel = endpoint.preparePanel(param, framsClass);355 panel = instanceAtFrame.preparePanel(param, framsClass); 356 356 fillPanelWithValues(); 357 357 } … … 503 503 final Map<ValueControl, Object> changes = localChanges; 504 504 localChanges = null; 505 endpoint.getEndpoint().invokeLater(new RunAt<Instance>() {505 instanceAtFrame.getInstance().invokeLater(new RunAt<Instance>() { 506 506 @Override 507 507 public void run() { … … 509 509 final ValueControl key = e.getKey(); 510 510 final Path p = path; 511 endpoint.getEndpoint().getInstance().storeValue(p, e.getKey().getParam(), e.getValue(), new StateFunctor() {511 instanceAtFrame.getInstance().storeValue(p, e.getKey().getParam(), e.getValue(), new StateFunctor() { 512 512 @Override 513 513 public void call(Exception e) {
Note: See TracChangeset
for help on using the changeset viewer.