Add ability to change view mode

This commit is contained in:
Michael Schättgen 2019-04-01 01:21:12 +02:00
parent ee8fd2e9f2
commit f3ed79dc71
6 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,33 @@
package com.beemdevelopment.aegis;
public enum ViewMode {
NORMAL,
COMPACT;
public static ViewMode fromInteger(int x) {
switch(x) {
case 0:
return NORMAL;
case 1:
return COMPACT;
}
return null;
}
public static String getViewModeName(int x) {
switch(x) {
case 0:
return "Normal";
case 1:
return "Compact";
}
return null;
}
public static String[] getViewModeNames() {
return new String[] {
"Normal",
"Compact"
};
}
}