001package jmri.jmrix.can.cbus.swing.modules.merg;
002
003import javax.annotation.Nonnull;
004
005import jmri.jmrix.can.cbus.node.CbusNode;
006import jmri.jmrix.can.cbus.node.CbusNodeNVTableDataModel;
007import jmri.jmrix.can.cbus.swing.modules.*;
008import jmri.jmrix.can.cbus.swing.modules.base.Sol8BasePaneProvider;
009
010import org.openide.util.lookup.ServiceProvider;
011
012/**
013 * Returns configuration objects for a MERG CANACC8
014 *
015 * @author Andrew Crosland Copyright (C) 2021
016 */
017@ServiceProvider(service = CbusConfigPaneProvider.class)
018public class CansolPaneProvider extends Sol8BasePaneProvider {
019    
020    String type = "CANSOL";
021    
022    public CansolPaneProvider() {
023        super();
024    }
025    
026    /** {@inheritDoc} */
027    @Override
028    @Nonnull
029    public String getModuleType() {
030        return type;
031    }
032
033    /** {@inheritDoc} */
034    @Override
035    public AbstractEditNVPane getEditNVFrame(CbusNodeNVTableDataModel dataModel, CbusNode node) {
036        _nVarEditFrame = new CansolEditNVPane(dataModel, node);
037        return _nVarEditFrame.getContent();
038    }
039}