1 package net.mograsim.logic.ui.model;
5 import net.mograsim.logic.ui.model.components.GUIComponent;
6 import net.mograsim.logic.ui.model.wires.GUIWire;
8 public class ViewModelModifiable extends ViewModel
10 public String getDefaultComponentName(GUIComponent component)
12 Set<String> componentNames = getComponentsByName().keySet();
13 String nameBase = component.getClass().getSimpleName() + '#';
16 String nameCandidate = nameBase + i;
17 if (!componentNames.contains(nameCandidate))
23 public void componentCreated(GUIComponent component)
25 super.componentCreated(component);
29 public void componentDestroyed(GUIComponent component)
31 super.componentDestroyed(component);
35 public void wireCreated(GUIWire wire)
37 super.wireCreated(wire);
41 public void wireDestroyed(GUIWire wire)
43 super.wireDestroyed(wire);