1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
219 |
return null; |
return null; |
220 |
} |
} |
221 |
|
|
222 |
|
/** Gets the parameters that are shown in the table. */ |
223 |
|
public Parameter[] |
224 |
|
getParameters() { return parameters; } |
225 |
|
|
226 |
/** |
/** |
227 |
* Sets the parameters to be shown in the table. |
* Sets the parameters to be shown in the table. |
228 |
* @param parameters The parameters to be shown in the table. |
* @param parameters The parameters to be shown in the table. |
377 |
} |
} |
378 |
} |
} |
379 |
|
|
380 |
/*class StringListCellEditor extends AbstractCellEditor implements TableCellEditor { |
class StringListCellEditor extends AbstractCellEditor implements TableCellEditor { |
381 |
private final JButton editor = new JButton(); |
private final JButton editor = new JButton(); |
382 |
private final JPopupMenu menu = new JPopupMenu(); |
private final JPopupMenu menu = new JPopupMenu(); |
383 |
private final Vector<JCheckBoxMenuItem> menuItems = new Vector<JCheckBoxMenuItem>(); |
private final Vector<JCheckBoxMenuItem> menuItems = new Vector<JCheckBoxMenuItem>(); |
386 |
editor.setBorderPainted(false); |
editor.setBorderPainted(false); |
387 |
editor.setContentAreaFilled(false); |
editor.setContentAreaFilled(false); |
388 |
editor.setFocusPainted(false); |
editor.setFocusPainted(false); |
389 |
|
editor.setMargin(new java.awt.Insets(0, 0, 0, 0)); |
390 |
editor.setFont(editor.getFont().deriveFont(java.awt.Font.PLAIN)); |
editor.setFont(editor.getFont().deriveFont(java.awt.Font.PLAIN)); |
391 |
|
|
392 |
editor.addActionListener(new ActionListener() { |
editor.addActionListener(new ActionListener() { |
454 |
JCheckBoxMenuItem item = new JCheckBoxMenuItem(s); |
JCheckBoxMenuItem item = new JCheckBoxMenuItem(s); |
455 |
setListener(item); |
setListener(item); |
456 |
|
|
457 |
for(String s2 : vals) if(s2.equals(s)) item.setSelected(true); |
for(String s2 : vals) { |
458 |
|
if(s2.equals(s)) item.setSelected(true); |
459 |
|
} |
460 |
|
|
461 |
menu.add(item); |
menu.add(item); |
462 |
menuItems.add(item); |
menuItems.add(item); |
474 |
} |
} |
475 |
}); |
}); |
476 |
} |
} |
477 |
}*/ |
} |
478 |
|
|
479 |
private static JComboBox comboBox = new JComboBox(); |
/*private static JComboBox comboBox = new JComboBox(); |
480 |
class StringListCellEditor extends DefaultCellEditor { |
class StringListCellEditor extends DefaultCellEditor { |
481 |
StringListCellEditor() { |
StringListCellEditor() { |
482 |
super(comboBox); |
super(comboBox); |
504 |
for(String s : slp.getPossibilities()[0]) comboBox.addItem(s); |
for(String s : slp.getPossibilities()[0]) comboBox.addItem(s); |
505 |
return comboBox; |
return comboBox; |
506 |
} |
} |
507 |
} |
}*/ |
508 |
|
|
509 |
class StringListCellRenderer extends DefaultTableCellRenderer { |
class StringListCellRenderer extends DefaultTableCellRenderer { |
510 |
private final StringBuffer sb = new StringBuffer(); |
private final StringBuffer sb = new StringBuffer(); |