Ejemplo n.º 1
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()});
     }
   }
 }
Ejemplo n.º 2
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});
   }
 }