001package jmri.util.swing;
002
003import java.awt.Frame;
004import javax.swing.JFrame;
005
006/**
007 * A simple WindowInterface for a JFrame. This really does nothing but wrap the
008 * WindowInterface interface around a JFrame, so that menu items that expect the
009 * WindowInterface can rely on its presence.
010 *
011 * @author Randall Wood
012 */
013public class JFrameInterface implements WindowInterface {
014
015    protected JFrame frame = null;
016
017    public JFrameInterface(JFrame frame) {
018        this.frame = frame;
019    }
020
021    @Override
022    public void show(JmriPanel child, JmriAbstractAction action) {
023        throw new UnsupportedOperationException("Not supported yet.");
024    }
025
026    @Override
027    public void show(JmriPanel child, JmriAbstractAction action, Hint hint) {
028        throw new UnsupportedOperationException("Not supported yet.");
029    }
030
031    @Override
032    public boolean multipleInstances() {
033        return false;
034    }
035
036    @Override
037    public Frame getFrame() {
038        return this.frame;
039    }
040
041    @Override
042    public void dispose() {
043    }
044}