// Path: src/main/java/com/github/pemapmodder/pocketminegui/gui/startup/installer/InstallServerActivity.java
// public class InstallServerActivity extends CardActivity{
// 	@Getter private File selectedHome;
// 	@Getter @Setter private File phpBinaries;
// 	@Getter @Setter private Release selectedRelease;
// 
// 	public InstallServerActivity(Activity parent){
// 		super("Install server", parent);
// 		setExtendedState(MAXIMIZED_BOTH);
// 	}
// 
// 	@Override
// 	public Card[] getDefaultCards(){
// 		return new Card[]{
// 				new ChooseLocationCard(this),
// 				new ChooseVersionCard(this),
// 				new DownloadProgressCard(this),
// 				new PhpInstallerCard(this),
// 				new ServerSetupCard(this),
// 		};
// 	}
// 
// 	public void setSelectedHome(File selectedHome){
// 		this.selectedHome = selectedHome;
// 		selectedHome.mkdirs();
// 	}
// 
// 	@Override
// 	protected void setCard(int index, int exitType){
// 		super.setCard(index, exitType);
// 		setExtendedState(MAXIMIZED_BOTH);
// 	}
// 
// 	@Override
// 	protected void onFinish(){
// 		super.onFinish();
// 		getParent().initNewActivity(new ServerMainActivity(selectedHome, phpBinaries));
// 	}
// }
// 
// Path: src/main/java/com/github/pemapmodder/pocketminegui/lib/card/Card.java
// public abstract class Card extends JPanel{
// 	/**
// 	 * The {@link CardActivity} is closed.
// 	 */
// 	public final static int EXIT_CLOSE = 0;
// 	/**
// 	 * The "Back" button is triggered.
// 	 */
// 	public final static int EXIT_BACK = 1;
// 	/**
// 	 * The "Next" button is triggered.
// 	 */
// 	public final static int EXIT_NEXT = 2;
// 
// 	public void onEntry(){
// 	}
// 
// 	/**
// 	 * Triggered when card is swapped
// 	 *
// 	 * @param type one of {@link #EXIT_CLOSE}, {@link #EXIT_BACK} and {@link #EXIT_NEXT}
// 	 * @return whether to allow this action
// 	 */
// 	public boolean onExit(int type){
// 		return true;
// 	}
// 
// 	public abstract String getCardName();
// 
// 	public void onStop(){
// 	}
// }


import com.github.pemapmodder.pocketminegui.gui.startup.installer.InstallServerActivity;
import com.github.pemapmodder.pocketminegui.lib.card.Card;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
package com.github.pemapmodder.pocketminegui.gui.startup.installer.cards;

/*
 * This file is part of PocketMine-GUI.
 *
 * PocketMine-GUI 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 3 of the License, or
 * (at your option) any later version.
 *
 * PocketMine-GUI 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 PocketMine-GUI.  If not, see <http://www.gnu.org/licenses/>.
 */



public class ChooseLocationCard extends Card implements ActionListener{
	private final JTextField pathField;
// Path: src/main/java/com/github/pemapmodder/pocketminegui/gui/startup/installer/InstallServerActivity.java
// public class InstallServerActivity extends CardActivity{
// 	@Getter private File selectedHome;
// 	@Getter @Setter private File phpBinaries;
// 	@Getter @Setter private Release selectedRelease;
// 
// 	public InstallServerActivity(Activity parent){
// 		super("Install server", parent);
// 		setExtendedState(MAXIMIZED_BOTH);
// 	}
// 
// 	@Override
// 	public Card[] getDefaultCards(){
// 		return new Card[]{
// 				new ChooseLocationCard(this),
// 				new ChooseVersionCard(this),
// 				new DownloadProgressCard(this),
// 				new PhpInstallerCard(this),
// 				new ServerSetupCard(this),
// 		};
// 	}
// 
// 	public void setSelectedHome(File selectedHome){
// 		this.selectedHome = selectedHome;
// 		selectedHome.mkdirs();
// 	}
// 
// 	@Override
// 	protected void setCard(int index, int exitType){
// 		super.setCard(index, exitType);
// 		setExtendedState(MAXIMIZED_BOTH);
// 	}
// 
// 	@Override
// 	protected void onFinish(){
// 		super.onFinish();
// 		getParent().initNewActivity(new ServerMainActivity(selectedHome, phpBinaries));
// 	}
// }
// 
// Path: src/main/java/com/github/pemapmodder/pocketminegui/lib/card/Card.java
// public abstract class Card extends JPanel{
// 	/**
// 	 * The {@link CardActivity} is closed.
// 	 */
// 	public final static int EXIT_CLOSE = 0;
// 	/**
// 	 * The "Back" button is triggered.
// 	 */
// 	public final static int EXIT_BACK = 1;
// 	/**
// 	 * The "Next" button is triggered.
// 	 */
// 	public final static int EXIT_NEXT = 2;
// 
// 	public void onEntry(){
// 	}
// 
// 	/**
// 	 * Triggered when card is swapped
// 	 *
// 	 * @param type one of {@link #EXIT_CLOSE}, {@link #EXIT_BACK} and {@link #EXIT_NEXT}
// 	 * @return whether to allow this action
// 	 */
// 	public boolean onExit(int type){
// 		return true;
// 	}
// 
// 	public abstract String getCardName();
// 
// 	public void onStop(){
// 	}
// }


// Path: src/main/java/com/github/pemapmodder/pocketminegui/gui/startup/installer/cards/ChooseLocationCard.java
import com.github.pemapmodder.pocketminegui.gui.startup.installer.InstallServerActivity;
import com.github.pemapmodder.pocketminegui.lib.card.Card;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;

package com.github.pemapmodder.pocketminegui.gui.startup.installer.cards;

/*
 * This file is part of PocketMine-GUI.
 *
 * PocketMine-GUI 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 3 of the License, or
 * (at your option) any later version.
 *
 * PocketMine-GUI 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 PocketMine-GUI.  If not, see <http://www.gnu.org/licenses/>.
 */



public class ChooseLocationCard extends Card implements ActionListener{
	private final JTextField pathField;
	private final InstallServerActivity activity;