/**
* Wizard Framework
* Copyright (C) 2004 Andrew Pietsch
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* $Id: EmptyStep.java,v 1.5 2005/05/22 07:13:31 pietschy Exp $
*/
package wizard;
import org.pietschy.wizard.AbstractWizardStep;
import org.pietschy.wizard.InvalidStateException;
import org.pietschy.wizard.WizardModel;
import org.pietschy.wizard.PanelWizardStep;
import org.pietschy.wizard.models.DynamicModel;
import javax.swing.*;
import java.awt.event.ItemListener;
import java.awt.event.ItemEvent;
import java.awt.*;
/**
* Created by IntelliJ IDEA.
* User: andrewp
* Date: 10/06/2004
* Time: 10:59:17
* To change this template use Options | File Templates.
*/
public class
EmptyStep
extends PanelWizardStep
{
public EmptyStep(String name, String summary)
{
this(name, summary, null);
}
public EmptyStep(String name, String summary, Icon icon)
{
super(name, summary, icon);
JToggleButton b = new JToggleButton("Haha: " + name);
b.addItemListener(new ItemListener()
{
public void itemStateChanged(ItemEvent e)
{
setComplete(e.getStateChange() == ItemEvent.SELECTED);
}
});
setComplete(true);
}
/////////////////////////////////////////////////////////////////////
// Abstract Methods
//
public void
init(WizardModel model)
{
}
public void
prepare()
{
}
public void
applyState()
throws InvalidStateException
{
}
}
|