package widget;

/**
 * The Model (from the Model-View-Controller pattern)
 * for an AbstractButton.
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class ButtonModel extends AbstractButtonModel
{
    private Button        button;


    /**
     * Constructor
     *
     * @param button  The button this controller belongs to
     * @param ac      The action command associated with  this button
     */
    public ButtonModel(Button button, String ac)
    {
	super(ac);

	this.button = button;
    }



    /**
     * Get the Button associated with this model
     *
     * @return   The Button
     */
    public Widget getWidget()
    {
	return button;
    }




}
