Example #1
0
 public void propertyValueAdded(ConfigElementEvent event) {
   if (event.getProperty().equals("simulator_viewports")
       || event.getProperty().equals("surface_viewports")) {
     mViewports.add(0, event.getValue());
     fireItemsInserted(new int[] {0});
   }
 }
Example #2
0
 public void propertyValueRemoved(ConfigElementEvent event) {
   if (event.getProperty().equals("simulator_viewports")
       || event.getProperty().equals("surface_viewports")) {
     int idx = getIndexOf(event.getValue());
     if (idx != -1) {
       mViewports.remove(idx);
       fireItemsRemoved(new int[] {idx}, new Object[] {event.getValue()});
     }
   }
 }
Example #3
0
 /** Called whenever one of the displays contained within the model changes. */
 public void nameChanged(ConfigElementEvent evt) {
   int idx = getIndexOf(evt.getSource());
   if (idx != -1) {
     fireItemsChanged(new int[] {idx});
   }
 }