gridPanel.setLayout(new GridLayout(1, 1));
CometeWidgetFactory.setCurrentPackage(CometeWidgetFactory.CometePackage.SWING);
Panel selectOk1pan = new Panel();
selectOk1pan.setLayout(new BorderLayout());
ISourceDevice archivingSource = new ArchivingSourceDevice();
archivingSelector = new SwingDeviceSelector(archivingSource, true, img2, img, img1, false);
archivingSelector.setLeafImage(img1);
archivingSelector.setNodeImage(img);
archivingSelector.setRootImage(img2);
selectOk1pan.add(archivingSelector.getSelectorComponent(), BorderLayout.CENTER);
JButton okButton1 = new JButton("ok");
okButton1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
archivingSelector.setNodeImage(img2);
getSelectedDevices(archivingSelector);
}
});
selectOk1pan.add(okButton1, BorderLayout.SOUTH);
gridPanel.add(selectOk1pan);
Panel selectOk2pan = new Panel();
selectOk2pan.setLayout(new BorderLayout());
ISourceDevice genericSource = new GenericSourceDevice("archiving/hdb-oracle/hdbextractor.1/GetAttNameAll");
genericSelector = new SwingDeviceSelector(genericSource, true, img, img, null, true);
selectOk2pan.add(genericSelector.getSelectorComponent(), BorderLayout.CENTER);
JButton okButton2 = new JButton("ok");
okButton2.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
getSelectedDevices(genericSelector);
}
});
selectOk2pan.add(okButton2, BorderLayout.SOUTH);
gridPanel.add(selectOk2pan);
Panel selectOk3pan = new Panel();
selectOk3pan.setLayout(new BorderLayout());
ISourceDevice tangoSource = new DatabaseTangoSourceDevice(true, true);
tangoSelector = new SwingDeviceSelector(tangoSource, false, true);
selectOk3pan.add(tangoSelector.getSelectorComponent(), BorderLayout.CENTER);
JButton okButton3 = new JButton("ok");
okButton3.addActionListener(new ActionListener() {