controlsSettingsPanel = new JPanel();
controlsSettingsPanel.setLayout(new GridBagLayout());
if (MCABean.RONTEC_DEVICE.equals(deviceTypeName)) {
readDataSpectrumLabel = new Label();
readDataSpectrumButton = new StringButton() {
private static final long serialVersionUID = -4749745421934248188L;
@Override
public void actionPerformed(ActionEvent event) {
// this is necessary because of the call of actionPerformed in
// startCommandViewer button
// TODO enabled state may be tested directly in startCommandViewer's
// actionPerformed to avoid
// overriding
if (isEnabled()) {
super.actionPerformed(event);
}
};
};
startCommandViewer = new StringButton() {
private static final long serialVersionUID = -679641383339305170L;
@Override
public void actionPerformed(ActionEvent event) {
super.actionPerformed(event);
readDataSpectrumButton.actionPerformed(null);
}
};
} else {
startCommandViewer = new StringButton();
}
startCommandViewer.setText("Start");
((JButton) startCommandViewer).setIcon(new ImageIcon(getClass().getResource(
"/org/tango-project/tango-icon-theme/22x22/actions/media-playback-start.png")));
stopCommandViewer = new StringButton();
stopCommandViewer.setText("Abort");
((JButton) stopCommandViewer).setIcon(new ImageIcon(getClass().getResource(
"/org/tango-project/tango-icon-theme/22x22/actions/media-playback-stop.png")));
clearDataCommandViewer = new StringButton();
clearDataCommandViewer.setText("Clear Data");
((JButton) clearDataCommandViewer).setIcon(new ImageIcon(getClass().getResource(
"/org/tango-project/tango-icon-theme/22x22/places/user-trash.png")));
GridBagConstraints startConstraints2 = new GridBagConstraints();