use of jmri.jmrit.vsdecoder.VSDConfig in project JMRI by JMRI.
the class VSDManagerFrame method addButtonPressed.
/**
* Handle "Add" button press
*/
protected void addButtonPressed(ActionEvent e) {
log.debug("Add button pressed");
// Create a new Config for the new VSDecoder.
config = new VSDConfig();
// Do something here. Create a new VSDecoder and add it to the window.
VSDConfigDialog d = new VSDConfigDialog(decoderPane, Bundle.getMessage("NewDecoderConfigPaneTitle"), config);
d.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent event) {
log.debug("property change name " + event.getPropertyName() + " old " + event.getOldValue() + " new " + event.getNewValue());
addButtonPropertyChange(event);
}
});
//firePropertyChange(PropertyChangeID.ADD_DECODER, null, null);
}
Aggregations