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.widgets.tree;
09:
10: import com.gwtext.client.core.BaseConfig;
11: import com.gwtext.client.util.JavaScriptObjectHelper;
12:
13: /**
14: * A TreePanel DropZone configuration.
15: */
16: public class TreeDropZoneConfig extends BaseConfig {
17:
18: public void setAllowParentInsert(boolean allowParentInsert) {
19: JavaScriptObjectHelper.setAttribute(jsObj, "allowParentInsert",
20: allowParentInsert);
21: }
22:
23: public void setAllowContainerDrop(boolean allowContainerDrop) {
24: JavaScriptObjectHelper.setAttribute(jsObj,
25: "allowContainerDrop", allowContainerDrop);
26: }
27:
28: public void setAppendOnly(boolean appendOnly) {
29: JavaScriptObjectHelper.setAttribute(jsObj, "appendOnly",
30: appendOnly);
31: }
32:
33: public void setLastInsertClass(String lastInsertClass) {
34: JavaScriptObjectHelper.setAttribute(jsObj, "lastInsertClass",
35: lastInsertClass);
36: }
37:
38: public void setDropNotAllowed(boolean dropNotAllowed) {
39: JavaScriptObjectHelper.setAttribute(jsObj, "dropNotAllowed",
40: dropNotAllowed);
41: }
42: }
|