Author: abelevich
Date: 2010-12-21 07:45:48 -0500 (Tue, 21 Dec 2010)
New Revision: 20716
Modified:
trunk/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDragSource.java
trunk/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java
trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DnDScript.java
trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DragScript.java
trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DropScript.java
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DnDRenderBase.java
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DragSourceRenderer.java
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java
Log:
change base class for the AbstractDropTarget.java, AbstractDragSource.java isn't
implement AjaxComponent interface. Add license headers
Modified: trunk/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDragSource.java
===================================================================
---
trunk/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDragSource.java 2010-12-21
11:50:44 UTC (rev 20715)
+++
trunk/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDragSource.java 2010-12-21
12:45:48 UTC (rev 20716)
@@ -24,7 +24,6 @@
import javax.faces.component.UIComponentBase;
-import org.ajax4jsf.component.AjaxComponent;
import org.richfaces.cdk.annotations.Attribute;
import org.richfaces.cdk.annotations.JsfComponent;
import org.richfaces.cdk.annotations.JsfRenderer;
@@ -42,7 +41,7 @@
renderer = @JsfRenderer(type = "org.richfaces.DragSourceRenderer"),
tag = @Tag(name="dragSource")
)
-public abstract class AbstractDragSource extends UIComponentBase implements AjaxComponent
{
+public abstract class AbstractDragSource extends UIComponentBase {
public static final String COMPONENT_TYPE = "org.richfaces.DragSource";
Modified: trunk/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java
===================================================================
---
trunk/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java 2010-12-21
11:50:44 UTC (rev 20715)
+++
trunk/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java 2010-12-21
12:45:48 UTC (rev 20716)
@@ -22,6 +22,7 @@
package org.richfaces.component;
+import javax.faces.component.UIComponentBase;
import javax.faces.event.FacesEvent;
import javax.faces.event.PhaseId;
@@ -45,7 +46,7 @@
renderer = @JsfRenderer(type = "org.richfaces.DropTargetRenderer"),
tag = @Tag(name="dropTarget"
,handler="org.richfaces.view.facelets.DropHandler", type = TagType.Facelets)
)
-public abstract class AbstractDropTarget extends AbstractActionComponent {
+public abstract class AbstractDropTarget extends UIComponentBase {
public static final String COMPONENT_TYPE = "org.richfaces.DropTarget";
Modified: trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DnDScript.java
===================================================================
--- trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DnDScript.java 2010-12-21
11:50:44 UTC (rev 20715)
+++ trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DnDScript.java 2010-12-21
12:45:48 UTC (rev 20716)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * 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.
+ */
+
package org.richfaces.javascript;
import java.io.IOException;
@@ -7,6 +29,10 @@
import org.ajax4jsf.javascript.ScriptWithDependencies;
import org.richfaces.resource.ResourceKey;
+/**
+ * @author abelevich
+ *
+ */
public abstract class DnDScript implements ScriptWithDependencies {
private static final Set<ResourceKey> BASE_RESOURCES = new
LinkedHashSet<ResourceKey>();
Modified: trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DragScript.java
===================================================================
--- trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DragScript.java 2010-12-21
11:50:44 UTC (rev 20715)
+++ trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DragScript.java 2010-12-21
12:45:48 UTC (rev 20716)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * 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.
+ */
+
package org.richfaces.javascript;
import java.util.Collections;
@@ -6,6 +28,10 @@
import org.richfaces.resource.ResourceKey;
+/**
+ * @author abelevich
+ *
+ */
public final class DragScript extends DnDScript{
private static final Set<ResourceKey> DRAG_SCRIPT = Collections.singleton(new
ResourceKey("dnd-draggable.js", "org.richfaces"));
Modified: trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DropScript.java
===================================================================
--- trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DropScript.java 2010-12-21
11:50:44 UTC (rev 20715)
+++ trunk/ui/dnd/ui/src/main/java/org/richfaces/javascript/DropScript.java 2010-12-21
12:45:48 UTC (rev 20716)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * 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.
+ */
+
package org.richfaces.javascript;
import java.util.Collections;
@@ -6,6 +28,10 @@
import org.richfaces.resource.ResourceKey;
+/**
+ * @author abelevich
+ *
+ */
public final class DropScript extends DnDScript{
private static final Set<ResourceKey> DRAG_SCRIPT = Collections.singleton(new
ResourceKey("dnd-droppable.js", "org.richfaces"));
Modified: trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DnDRenderBase.java
===================================================================
--- trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DnDRenderBase.java 2010-12-21
11:50:44 UTC (rev 20715)
+++ trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DnDRenderBase.java 2010-12-21
12:45:48 UTC (rev 20716)
@@ -1,3 +1,26 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * 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.
+ */
+
+
package org.richfaces.renderkit;
import java.io.IOException;
Modified: trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DragSourceRenderer.java
===================================================================
---
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DragSourceRenderer.java 2010-12-21
11:50:44 UTC (rev 20715)
+++
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DragSourceRenderer.java 2010-12-21
12:45:48 UTC (rev 20716)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * 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.
+ */
+
package org.richfaces.renderkit;
import java.util.HashMap;
Modified: trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java
===================================================================
---
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java 2010-12-21
11:50:44 UTC (rev 20715)
+++
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java 2010-12-21
12:45:48 UTC (rev 20716)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * 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.
+ */
+
package org.richfaces.renderkit;
import java.util.HashMap;