Last settings for CardView concering view, piles and order are always saved and restored in Java Prefs now.

This commit is contained in:
LevelX2 2013-03-27 08:26:04 +01:00
parent 12a01788e6
commit 39d67eec8a
4 changed files with 62 additions and 15 deletions

View file

@ -110,6 +110,23 @@ public final class Constants {
public String toString() {
return text;
}
public static SortBy getByString(String text) {
if (text.equals("Casting Cost")) {
return CASTING_COST;
} else if (text.equals("Rarity")) {
return RARITY;
} else if (text.equals("Color")) {
return COLOR;
}else if (text.equals("Color Detailed")) {
return COLOR_DETAILED;
}else if (text.equals("Name")) {
return NAME;
}else {
return UNSORTED;
}
}
}
}