/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code 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 General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
// Referenced classes of package com.sun.java.swing.ui:
// CommonUI
{
private class CancelListener
implements ActionListener
{
{
if(cancelListener != null)
setVisible(false);
}
private CancelListener()
{
}
}
private class FinishListener
implements ActionListener
{
{
if(finishListener != null)
setVisible(false);
}
private FinishListener()
{
}
}
private class NextListener
implements ActionListener
{
{
cardShowing++;
if(cardShowing > numCards)
else
if(nextListener != null)
}
private NextListener()
{
}
}
private class BackListener
implements ActionListener
{
{
cardShowing--;
if(cardShowing < 1)
cardShowing = 1;
else
if(backListener != null)
}
private BackListener()
{
}
}
{
panesLayout = new CardLayout();
pack();
CommonUI.centerComponent(this);
}
{
}
{
}
{
cardShowing = 1;
for(int i = 0; i < numCards; i++)
validate();
}
public void reset()
{
cardShowing = 1;
}
{
}
{
{
}
}
);
{
}
}
);
wizardDlg.setVisible(true);
}
{
backAction = new BackAction();
nextAction = new NextAction();
finishAction = new FinishAction();
cancelAction = new CancelAction();
backAction.setEnabled(false);
finishAction.setEnabled(false);
return p2;
}
private void enableBackNextButtons()
{
if(cardShowing == 1)
{
backAction.setEnabled(false);
finishAction.setEnabled(false);
if(numCards > 1)
{
nextAction.setEnabled(true);
} else
{
finishAction.setEnabled(true);
nextAction.setEnabled(false);
}
} else
if(cardShowing == numCards)
{
nextAction.setEnabled(false);
finishAction.setEnabled(true);
if(numCards > 1)
backAction.setEnabled(true);
else
backAction.setEnabled(false);
} else
{
backAction.setEnabled(true);
nextAction.setEnabled(true);
finishAction.setEnabled(false);
}
setTitle();
}
private void setTitle()
{
{
}
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
private int numCards;
private int cardShowing;
}