001package jmri.jmrit.display.layoutEditor.LayoutEditorDialogs;
002
003import javax.annotation.Nonnull;
004
005import jmri.Turnout;
006import jmri.jmrit.display.layoutEditor.LayoutEditor;
007
008/**
009 * MVC Editor component for LayoutLHTurnout objects.
010 *
011 * Note there might not be anything for this class to do;
012 * LayoutTrackEditors has a comment saying that PositionablePoint
013 * doesn't have an editor.
014 *
015 * @author Bob Jacobsen  Copyright (c) 2020
016 * 
017 */
018public class LayoutLHTurnoutEditor extends LayoutTurnoutEditor {
019
020    /**
021     * constructor method.
022     * @param layoutEditor main layout editor.
023     */
024    public LayoutLHTurnoutEditor(@Nonnull LayoutEditor layoutEditor) {
025        super(layoutEditor);
026    }
027
028    // set the continuing route Turnout State
029    @Override
030    protected void setContinuingRouteTurnoutState() {
031        layoutTurnout.setContinuingSense(Turnout.CLOSED);
032        if (editLayoutTurnoutStateComboBox.getSelectedIndex() == editLayoutTurnoutThrownIndex) {
033            layoutTurnout.setContinuingSense(Turnout.THROWN);
034        }
035    }
036    
037
038    // private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LayoutLHTurnoutEditor.class);
039}