001package jmri.jmrit.logixng.tools.swing;
002
003import jmri.NamedBean;
004import jmri.jmrit.logixng.*;
005import jmri.jmrit.logixng.Module;
006import jmri.jmrit.logixng.implementation.AbstractMaleSocket;
007
008/**
009 * MaleSocket for a Module.
010 * This class is used by the ModuleEditor class
011 *
012 * @author Daniel Bergqvist 2020
013 */
014class ModuleEditorMaleSocket extends AbstractMaleSocket {
015
016    public ModuleEditorMaleSocket(BaseManager<? extends NamedBean> manager, Module module) {
017        super(manager, module);
018    }
019
020    @Override
021    protected void registerListenersForThisClass() {
022        // Do nothing
023    }
024
025    @Override
026    protected void unregisterListenersForThisClass() {
027        // Do nothing
028    }
029
030    @Override
031    protected void disposeMe() {
032        ((Module)getObject()).dispose();
033    }
034
035    @Override
036    public void setEnabled(boolean enable) {
037        throw new UnsupportedOperationException("Not supported");
038    }
039
040    @Override
041    public void setEnabledFlag(boolean enable) {
042        throw new UnsupportedOperationException("Not supported");
043    }
044
045    @Override
046    public boolean isEnabled() {
047        return true;
048    }
049
050    @Override
051    public void setDebugConfig(DebugConfig config) {
052        throw new UnsupportedOperationException("Not supported");
053    }
054
055    @Override
056    public DebugConfig getDebugConfig() {
057        throw new UnsupportedOperationException("Not supported");
058    }
059
060    @Override
061    public DebugConfig createDebugConfig() {
062        throw new UnsupportedOperationException("Not supported");
063    }
064
065    @Override
066    public String getComment() {
067        return ((Module)getObject()).getComment();
068    }
069
070    @Override
071    public void setComment(String comment) {
072        ((Module)getObject()).setComment(comment);
073    }
074
075    @Override
076    public boolean isSupportingLocalVariables() {
077        return false;
078    }
079
080//    private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(ConditionalNGEditor.class);
081}