forked from External/mage
Last settings for CardView concering view, piles and order are always saved and restored in Java Prefs now.
This commit is contained in:
parent
12a01788e6
commit
39d67eec8a
4 changed files with 62 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue