1 package org.catacomb.interlish.service; 2 3 4 5 6 public class Env { 7 8 9 public final static int APPLICATION = 0; 10 public final static int APPLET = 1; 11 12 public static int context = APPLICATION; 13 14 15 16 public static void setContext(int ic) { 17 context = ic; 18 } 19 20 21 public static void setContextApplet() { 22 context = APPLET; 23 } 24 25 26 public static boolean isApplet() { 27 return (context == APPLET); 28 } 29 30 public static boolean isApplication() { 31 return (context == APPLICATION); 32 } 33 34 35 36 }