/[svn]/jsampler/trunk/src/org/jsampler/view/std/StdChannelsPane.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/std/StdChannelsPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2199 by iliev, Mon Jan 26 21:20:12 2009 UTC revision 2200 by iliev, Sun Jul 3 22:01:16 2011 UTC
# Line 182  public abstract class StdChannelsPane ex Line 182  public abstract class StdChannelsPane ex
182                  listModel.add(channel);                  listModel.add(channel);
183                  chnList.setSelectedComponent(channel, true);                  chnList.setSelectedComponent(channel, true);
184                  scrollToBottom();                  scrollToBottom();
185                    
186                    firePropertyChange("channelAdded", null, channelModel);
187          }          }
188                    
189          protected abstract JSChannel createChannel(SamplerChannelModel channelModel);          protected abstract JSChannel createChannel(SamplerChannelModel channelModel);
# Line 201  public abstract class StdChannelsPane ex Line 203  public abstract class StdChannelsPane ex
203                  );                  );
204                                    
205                  chnList.ensureIndexIsVisible(listModel.getSize() - 1);                  chnList.ensureIndexIsVisible(listModel.getSize() - 1);
206                    
207                    firePropertyChange("channelsAdded", null, chns);
208          }          }
209                                    
210          /**          /**
# Line 210  public abstract class StdChannelsPane ex Line 214  public abstract class StdChannelsPane ex
214           */           */
215          @Override          @Override
216          public void          public void
217          removeChannel(JSChannel chn) { listModel.remove(chn); }          removeChannel(JSChannel chn) {
218                    listModel.remove(chn);
219                    
220                    firePropertyChange("channelRemoved", null, chn);
221            }
222                    
223          /**          /**
224           * Gets the first channel in this channels pane.           * Gets the first channel in this channels pane.
# Line 310  public abstract class StdChannelsPane ex Line 318  public abstract class StdChannelsPane ex
318                          model.remove(i);                          model.remove(i);
319                  }                  }
320                                    
321                    firePropertyChange("channelsRemoved", null, null);
322                    
323                  return l.length;                  return l.length;
324          }          }
325                    
# Line 367  public abstract class StdChannelsPane ex Line 377  public abstract class StdChannelsPane ex
377                                    
378                  chnList.setSelectionInterval(0, chns.length - 1);                  chnList.setSelectionInterval(0, chns.length - 1);
379                  chnList.ensureIndexIsVisible(0);                  chnList.ensureIndexIsVisible(0);
380                                    
381                    firePropertyChange("channelsPositionChanged", null, chns);
382          }          }
383                    
384          @Override          @Override
# Line 387  public abstract class StdChannelsPane ex Line 399  public abstract class StdChannelsPane ex
399                                    
400                  chnList.setSelectedIndices(si);                  chnList.setSelectedIndices(si);
401                  chnList.ensureIndexIsVisible(si[0]);                  chnList.ensureIndexIsVisible(si[0]);
402                                    
403                    firePropertyChange("channelsPositionChanged", null, chns);
404          }          }
405                    
406          @Override          @Override
# Line 405  public abstract class StdChannelsPane ex Line 419  public abstract class StdChannelsPane ex
419                  for(int i = 0; i < si.length; i++) si[i] += 1;                  for(int i = 0; i < si.length; i++) si[i] += 1;
420                  chnList.setSelectedIndices(si);                  chnList.setSelectedIndices(si);
421                  chnList.ensureIndexIsVisible(si[si.length - 1]);                  chnList.ensureIndexIsVisible(si[si.length - 1]);
422                                    
423                    firePropertyChange("channelsPositionChanged", null, chns);
424          }          }
425                    
426          @Override          @Override
# Line 426  public abstract class StdChannelsPane ex Line 442  public abstract class StdChannelsPane ex
442                          listModel.getSize() - chns.length, listModel.getSize() - 1                          listModel.getSize() - chns.length, listModel.getSize() - 1
443                  );                  );
444                  chnList.ensureIndexIsVisible(listModel.getSize() - 1);                  chnList.ensureIndexIsVisible(listModel.getSize() - 1);
445                                    
446                    firePropertyChange("channelsPositionChanged", null, chns);
447          }          }
448                    
449          @Override          @Override

Legend:
Removed from v.2199  
changed lines
  Added in v.2200

  ViewVC Help
Powered by ViewVC