columnData[i] = new ColumnData(title, DEF_COL_WIDTH, JLabel.LEFT, sectionIndex, ReadableParameterModel.class);
colWidthCount += columnData[i].width;
if (id == 27) {
arrSectionData.add(new SectionData(
UIColors.getTableFirstSectionBG(),
UIColors.getTableFirstSectionFG(),
colWidthCount,
"MAIN"));
sectionIndex++;
colWidthCount = 0;
} else if (id == 31) {
arrSectionData.add(new SectionData(
UIColors.getTableSecondSectionBG(),
UIColors.getTableSecondSectionFG(),
colWidthCount,
"KEY WIN", new MouseAdapter() {
public void mouseReleased(MouseEvent e) {
if (e.isPopupTrigger())
new WinPopupMenu(WinValueProfile.ZPREF_keyWinDisplayMode).getPopupMenu().show(e.getComponent(), e.getX(), e.getY());
}
public void mousePressed(MouseEvent e) {
if (e.isPopupTrigger())
new WinPopupMenu(WinValueProfile.ZPREF_keyWinDisplayMode).getPopupMenu().show(e.getComponent(), e.getX(), e.getY());
}
public void mouseClicked(MouseEvent e) {
if (e.isPopupTrigger())
new WinPopupMenu(WinValueProfile.ZPREF_keyWinDisplayMode).getPopupMenu().show(e.getComponent(), e.getX(), e.getY());
else if (e.getClickCount() >= 2) {
try {
WinValueProfile.ZPREF_keyWinDisplayMode.putValue((WinValueProfile.ZPREF_keyWinDisplayMode.getValue() + 1) % 3);
} catch (Exception e1) {
e1.printStackTrace();
}
}
}
}));
sectionIndex++;
colWidthCount = 0;
} else if (id == 35) {
arrSectionData.add(new SectionData(
UIColors.getTableThirdSectionBG(),
UIColors.getTableThirdSectionFG(),
colWidthCount,
"VELOCITY WIN", new MouseAdapter() {
public void mouseReleased(MouseEvent e) {
if (e.isPopupTrigger()) {
new WinPopupMenu(WinValueProfile.ZPREF_velWinDisplayMode).getPopupMenu().show(e.getComponent(), e.getX(), e.getY());
}
}
public void mousePressed(MouseEvent e) {
if (e.isPopupTrigger()) {
new WinPopupMenu(WinValueProfile.ZPREF_velWinDisplayMode).getPopupMenu().show(e.getComponent(), e.getX(), e.getY());
}
}
public void mouseClicked(MouseEvent e) {
if (e.isPopupTrigger())
new WinPopupMenu(WinValueProfile.ZPREF_velWinDisplayMode).getPopupMenu().show(e.getComponent(), e.getX(), e.getY());
else if (e.getClickCount() >= 2) {
try {
WinValueProfile.ZPREF_velWinDisplayMode.putValue((WinValueProfile.ZPREF_velWinDisplayMode.getValue() + 1) % 3);
} catch (Exception e1) {
e1.printStackTrace();
}
}
}
}));
sectionIndex++;
colWidthCount = 0;
} else if (preset.getDeviceContext().getDevicePreferences().ZPREF_showLinkFilterSection.getValue() && id == 266) {
arrSectionData.add(new SectionData(
UIColors.getTableFourthSectionBG(),
UIColors.getTableFourthSectionFG(),
colWidthCount,
"MIDI FILTERS"));
sectionIndex++;