01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08: package com.gwtext.client.core;
09:
10: import com.gwtext.client.util.JavaScriptObjectHelper;
11:
12: public class GenericConfig extends BaseConfig {
13:
14: public void setProperty(String property, String value) {
15: JavaScriptObjectHelper.setAttribute(jsObj, property, value);
16: }
17:
18: public String getProperty(String property) {
19: return JavaScriptObjectHelper.getAttribute(jsObj, property);
20: }
21:
22: public void setProperty(String property, int value) {
23: JavaScriptObjectHelper.setAttribute(jsObj, property, value);
24: }
25:
26: public int getPropertyAsInt(String property) {
27: return JavaScriptObjectHelper
28: .getAttributeAsInt(jsObj, property);
29: }
30:
31: public void setProperty(String property, boolean value) {
32: JavaScriptObjectHelper.setAttribute(jsObj, property, value);
33: }
34:
35: public boolean getPropertyAsBoolean(String property) {
36: return JavaScriptObjectHelper.getAttributeAsBoolean(jsObj,
37: property);
38: }
39:
40: public void setProperty(String property, int[] value) {
41: JavaScriptObjectHelper.setAttribute(jsObj, property, value);
42: }
43:
44: public int[] getPropertyAsIntArray(String property) {
45: return JavaScriptObjectHelper.getAttributeAsIntArray(jsObj,
46: property);
47: }
48:
49: public void setProperty(String property, String[] value) {
50: JavaScriptObjectHelper.setAttribute(jsObj, property, value);
51: }
52:
53: public String[] getPropertyAsStringArray(String property) {
54: return JavaScriptObjectHelper.getAttributeAsStringArray(jsObj,
55: property);
56: }
57:
58: public void setProperty(String property, GenericConfig value) {
59: JavaScriptObjectHelper.setAttribute(jsObj, property, value
60: .getJsObj());
61: }
62: }
|