/[svn]/jsampler/trunk/src/org/jsampler/view/fantasia/ChannelsPane.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/fantasia/ChannelsPane.java

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

revision 1775 by iliev, Sun May 4 18:40:13 2008 UTC revision 1776 by iliev, Thu Sep 11 18:48:36 2008 UTC
# Line 91  public class ChannelsPane extends JSChan Line 91  public class ChannelsPane extends JSChan
91                  getMaximumSize() { return getPreferredSize(); }                  getMaximumSize() { return getPreferredSize(); }
92          }          }
93                    
94            public void
95            setSelectedChannel(JSChannel channel) {
96                    chnList.setSelectedComponent(channel, true);
97            }
98            
99          /**          /**
100           * Adds new channel to this channels pane.           * Adds new channel to this channels pane.
101           * @param channelModel The sampler channel model to be used by the new channel.           * @param channelModel The sampler channel model to be used by the new channel.
# Line 224  public class ChannelsPane extends JSChan Line 229  public class ChannelsPane extends JSChan
229           */           */
230          public void          public void
231          addListSelectionListener(ListSelectionListener listener) {          addListSelectionListener(ListSelectionListener listener) {
232                  listenerList.add(ListSelectionListener.class, listener);                  listenerList.add(ListSelectionListener.class, listener); //TODO: Remove this?
233                    chnList.addListSelectionListener(listener);
234          }          }
235                    
236          /**          /**
# Line 233  public class ChannelsPane extends JSChan Line 239  public class ChannelsPane extends JSChan
239           */           */
240          public void          public void
241          removeListSelectionListener(ListSelectionListener listener) {          removeListSelectionListener(ListSelectionListener listener) {
242                  listenerList.remove(ListSelectionListener.class, listener);                  listenerList.remove(ListSelectionListener.class, listener); //TODO: Remove this?
243                    chnList.removeListSelectionListener(listener);
244          }          }
245                    
246          /**          /**

Legend:
Removed from v.1775  
changed lines
  Added in v.1776

  ViewVC Help
Powered by ViewVC