SquirrelJME/SquirrelJME

View on GitHub
emulators/emulator-base/src/main/java/cc/squirreljme/emulator/uiform/SwingItemDate.java

Summary

Maintainability
A
0 mins
Test Coverage
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the Mozilla Public License Version 2.0.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.emulator.uiform;

import cc.squirreljme.jvm.mle.constants.UIItemType;
import cc.squirreljme.jvm.mle.exceptions.MLECallError;
import cc.squirreljme.runtime.cldc.debug.Debugging;
import javax.swing.JPanel;

/**
 * Date.
 *
 * @since 2020/07/18
 */
public class SwingItemDate
    extends SwingItem
{
    /** The date picker. */
    private final JPanel panel;
    
    /**
     * Initializes the item.
     * 
     * @since 2020/07/18
     */
    public SwingItemDate()
    {
        super(UIItemType.DATE);
        
        this.panel = new JPanel();
    }
    
    /**
     * {@inheritDoc}
     * @since 2020/07/18
     */
    @Override
    public JPanel component()
    {
        return this.panel;
    }
    
    /**
     * {@inheritDoc}
     * @since 2020/07/18
     */
    @Override
    public void deletePost()
    {
    }
    
    /**
     * {@inheritDoc}
     * @since 2020/07/18
     */
    @Override
    public void property(int __intProp, int __sub, int __newValue)
        throws MLECallError
    {
        throw Debugging.todo();
    }
    
    /**
     * {@inheritDoc}
     * @since 2020/07/18
     */
    @Override
    public void property(int __strProp, int __sub, String __newValue)
    {
        throw Debugging.todo();
    }
}