r1469 - in xwiki/trunk/core/src/main/java/com/xpn/xwiki/objects: classes meta
Jeremi Joslin
jeremi at users.forge.objectweb.org
Wed Oct 25 20:58:42 CEST 2006
Author: jeremi
Date: 2006-10-25 20:58:41 +0200 (Wed, 25 Oct 2006)
New Revision: 1469
Modified:
xwiki/trunk/core/src/main/java/com/xpn/xwiki/objects/classes/ListClass.java
xwiki/trunk/core/src/main/java/com/xpn/xwiki/objects/meta/DBTreeListMetaClass.java
Log:
* fix the header
* fix the Imports
Modified: xwiki/trunk/core/src/main/java/com/xpn/xwiki/objects/classes/ListClass.java
===================================================================
--- xwiki/trunk/core/src/main/java/com/xpn/xwiki/objects/classes/ListClass.java 2006-10-25 16:14:10 UTC (rev 1468)
+++ xwiki/trunk/core/src/main/java/com/xpn/xwiki/objects/classes/ListClass.java 2006-10-25 18:58:41 UTC (rev 1469)
@@ -25,18 +25,27 @@
package com.xpn.xwiki.objects.classes;
import com.xpn.xwiki.XWikiContext;
-import com.xpn.xwiki.objects.*;
+import com.xpn.xwiki.objects.BaseCollection;
+import com.xpn.xwiki.objects.BaseProperty;
+import com.xpn.xwiki.objects.DBStringListProperty;
+import com.xpn.xwiki.objects.ListProperty;
+import com.xpn.xwiki.objects.StringListProperty;
+import com.xpn.xwiki.objects.StringProperty;
import com.xpn.xwiki.objects.meta.PropertyMetaClass;
import com.xpn.xwiki.plugin.query.XWikiCriteria;
import com.xpn.xwiki.plugin.query.XWikiQuery;
-import com.xpn.xwiki.web.XWikiMessageTool;
import org.apache.commons.lang.StringUtils;
import org.apache.ecs.xhtml.input;
import org.apache.ecs.xhtml.option;
import org.apache.ecs.xhtml.select;
import org.dom4j.Element;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
public abstract class ListClass extends PropertyClass {
Modified: xwiki/trunk/core/src/main/java/com/xpn/xwiki/objects/meta/DBTreeListMetaClass.java
===================================================================
--- xwiki/trunk/core/src/main/java/com/xpn/xwiki/objects/meta/DBTreeListMetaClass.java 2006-10-25 16:14:10 UTC (rev 1468)
+++ xwiki/trunk/core/src/main/java/com/xpn/xwiki/objects/meta/DBTreeListMetaClass.java 2006-10-25 18:58:41 UTC (rev 1469)
@@ -1,27 +1,46 @@
-package com.xpn.xwiki.objects.meta;
-
-import com.xpn.xwiki.objects.classes.DBListClass;
-import com.xpn.xwiki.objects.classes.TextAreaClass;
-import com.xpn.xwiki.objects.classes.DBTreeListClass;
-import com.xpn.xwiki.objects.classes.StringClass;
-import com.xpn.xwiki.objects.BaseCollection;
-import com.xpn.xwiki.XWikiContext;
-
-public class DBTreeListMetaClass extends DBListMetaClass {
-
- public DBTreeListMetaClass() {
- super();
- setPrettyName("Database Tree List Class");
- setName(DBTreeListClass.class.getName());
-
- StringClass parentfield_class = new StringClass(this);
- parentfield_class.setName("parentField");
- parentfield_class.setPrettyName("Parent Field Name");
- parentfield_class.setSize(20);
- safeput("parentField", parentfield_class);
- }
-
- public BaseCollection newObject(XWikiContext context) {
- return new DBTreeListClass();
- }
-}
+/*
+ * Copyright 2006, XpertNet SARL, and individual contributors as indicated
+ * by the contributors.txt.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *
+ * @author ludovic
+ */
+package com.xpn.xwiki.objects.meta;
+
+import com.xpn.xwiki.XWikiContext;
+import com.xpn.xwiki.objects.BaseCollection;
+import com.xpn.xwiki.objects.classes.DBTreeListClass;
+import com.xpn.xwiki.objects.classes.StringClass;
+
+public class DBTreeListMetaClass extends DBListMetaClass {
+
+ public DBTreeListMetaClass() {
+ super();
+ setPrettyName("Database Tree List Class");
+ setName(DBTreeListClass.class.getName());
+
+ StringClass parentfield_class = new StringClass(this);
+ parentfield_class.setName("parentField");
+ parentfield_class.setPrettyName("Parent Field Name");
+ parentfield_class.setSize(20);
+ safeput("parentField", parentfield_class);
+ }
+
+ public BaseCollection newObject(XWikiContext context) {
+ return new DBTreeListClass();
+ }
+}
More information about the Xwiki-notifications
mailing list