net.sf.magicproject.tools
Class MSaveDeck

java.lang.Object
  extended by net.sf.magicproject.tools.MSaveDeck

public final class MSaveDeck
extends java.lang.Object

MSaveDeck.java Created on 2003/12/18 This class contains methodes saving the list of cards and quantity into a file. This new file will contain the cards with their quantity with this format :
card's name ; qty \n
So this one will be compatible with Magic-Project deck file format.

Author:
Jan Blaha, Fabrice Daugan

Method Summary
static boolean saveDeck(java.lang.String fileName, MListModel<MCardCompare> names, javax.swing.JFrame parent)
          Saves deck to ASCII file from specified staticTurnLists.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

saveDeck

public static boolean saveDeck(java.lang.String fileName,
                               MListModel<MCardCompare> names,
                               javax.swing.JFrame parent)
Saves deck to ASCII file from specified staticTurnLists. This new file will contain the card names sorted in alphabetical order with their quantity with this format :
card's name ; qty \n

Parameters:
fileName - Name of new file.
names - ListModel of card names.
parent - the parent
Returns:
true if the current deck has been correctly saved. false otherwise.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.