1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Cfg: Convert 'App - Security'

This commit is contained in:
gnosygnu
2016-12-15 11:25:22 -05:00
parent 5073db8044
commit 38f5f6de7c
27 changed files with 107 additions and 205 deletions

View File

@@ -18,18 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package gplx.gfui.controls.gxws; import gplx.*; import gplx.gfui.*; import gplx.gfui.controls.*;
public class Gxw_html_load_tid_ {
public static final byte Tid_mem = 0, Tid_url = 1;
public static final String Key_mem = "mem", Key_url = "url";
public static String Xto_key(byte v) {
switch (v) {
case Tid_mem: return Key_mem;
case Tid_url: return Key_url;
default: throw Err_.new_unimplemented();
}
}
public static byte Xto_tid(String s) {
if (String_.Eq(s, Key_mem)) return Tid_mem;
else if (String_.Eq(s, Key_url)) return Tid_url;
if (String_.Eq(s, "mem")) return Tid_mem;
else if (String_.Eq(s, "url")) return Tid_url;
else throw Err_.new_unimplemented();
}
public static Keyval[] Options__list = Keyval_.Ary(Keyval_.new_(Key_mem), Keyval_.new_(Key_url));
}