1 package com.td.utility;
\r
3 public class ConfUtil {
\r
4 public static final String PREF_CNF_LEN = "CNF_LEN";
\r
5 public static final String PREF_CNF_WIDTH = "CNF_WIDTH";
\r
6 public static final String PREF_CNF_HEIGHT = "CNF_HEIGHT";
\r
7 public static final String PREF_CNF_DED = "CNF_DED";
\r
9 public static void init(PrefUtil pref){
\r
10 pref.remove(PREF_CNF_LEN);
\r
11 pref.remove(PREF_CNF_WIDTH);
\r
12 pref.remove(PREF_CNF_HEIGHT);
\r
13 pref.remove(PREF_CNF_DED);
\r
15 //
\83f
\83t
\83H
\83\8b\83g
\92l
\90Ý
\92è
\r
22 public static int getLen(PrefUtil pref){
\r
23 return pref.getInt(PREF_CNF_LEN, DateUtil.LEN);
\r
26 public static void setLen(PrefUtil pref, int len){
\r
27 pref.put(PREF_CNF_LEN, len);
\r
30 public static int getWidth(PrefUtil pref){
\r
31 return pref.getInt(PREF_CNF_WIDTH, 10);
\r
34 public static void setWidth(PrefUtil pref, int len){
\r
35 pref.put(PREF_CNF_WIDTH, len);
\r
38 public static int getHeight(PrefUtil pref){
\r
39 return pref.getInt(PREF_CNF_HEIGHT, 10);
\r
42 public static void setHeight(PrefUtil pref, int len){
\r
43 pref.put(PREF_CNF_HEIGHT, len);
\r
46 public static String getDelay(PrefUtil pref){
\r
47 return pref.get(PREF_CNF_DED, "");
\r
50 public static void setDelay(PrefUtil pref, String data){
\r
51 pref.put(PREF_CNF_DED, data);
\r