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. |
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 |
/** |
/** |
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 |
/** |
/** |