Author: pgolawski
Date: 2008-07-28 03:16:15 -0400 (Mon, 28 Jul 2008)
New Revision: 9794
Added:
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ChangeColumnVisibilityEvent.java
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ChangeColumnVisibilityListener.java
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ColumnResizeEvent.java
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ColumnResizeListener.java
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/DragDropEvent.java
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/DragDropListener.java
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableFilterEvent.java
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableFilterListener.java
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableSortEvent.java
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableSortListener.java
Removed:
trunk/sandbox/api/src/main/java/org/richfaces/event/ChangeColumnVisibilityEvent.java
trunk/sandbox/api/src/main/java/org/richfaces/event/ChangeColumnVisibilityListener.java
trunk/sandbox/api/src/main/java/org/richfaces/event/ColumnResizeEvent.java
trunk/sandbox/api/src/main/java/org/richfaces/event/ColumnResizeListener.java
trunk/sandbox/api/src/main/java/org/richfaces/event/DragDropEvent.java
trunk/sandbox/api/src/main/java/org/richfaces/event/DragDropListener.java
Log:
added events for sort and filter
package refactoring
Deleted:
trunk/sandbox/api/src/main/java/org/richfaces/event/ChangeColumnVisibilityEvent.java
===================================================================
---
trunk/sandbox/api/src/main/java/org/richfaces/event/ChangeColumnVisibilityEvent.java 2008-07-28
07:05:25 UTC (rev 9793)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/ChangeColumnVisibilityEvent.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -1,47 +0,0 @@
-/**
- *
- */
-package org.richfaces.event;
-
-import javax.faces.component.UIComponent;
-import javax.faces.event.FacesEvent;
-import javax.faces.event.FacesListener;
-
-/**
- * @author pawelgo
- *
- */
-public class ChangeColumnVisibilityEvent extends FacesEvent {
-
- private static final long serialVersionUID = 178097339066092532L;
-
- private String columnId;
-
- public ChangeColumnVisibilityEvent(UIComponent component, String columnId) {
- super(component);
- this.columnId = columnId;
- }
-
- /* (non-Javadoc)
- * @see
javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
- */
- public boolean isAppropriateListener(FacesListener listener) {
- return (listener instanceof ChangeColumnVisibilityListener);
- }
-
- /* (non-Javadoc)
- * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
- */
- public void processListener(FacesListener listener) {
- ((ChangeColumnVisibilityListener)listener).processChangeVisibility(this);
- }
-
- public String getColumnId() {
- return columnId;
- }
-
- public void setColumnId(String columnId) {
- this.columnId = columnId;
- }
-
-}
Deleted:
trunk/sandbox/api/src/main/java/org/richfaces/event/ChangeColumnVisibilityListener.java
===================================================================
---
trunk/sandbox/api/src/main/java/org/richfaces/event/ChangeColumnVisibilityListener.java 2008-07-28
07:05:25 UTC (rev 9793)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/ChangeColumnVisibilityListener.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -1,15 +0,0 @@
-/**
- *
- */
-package org.richfaces.event;
-
-import javax.faces.event.FacesListener;
-
-/**
- * @author pawelgo
- *
- */
-public interface ChangeColumnVisibilityListener extends FacesListener {
-
- public void processChangeVisibility(ChangeColumnVisibilityEvent event);
-}
Deleted: trunk/sandbox/api/src/main/java/org/richfaces/event/ColumnResizeEvent.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/ColumnResizeEvent.java 2008-07-28
07:05:25 UTC (rev 9793)
+++ trunk/sandbox/api/src/main/java/org/richfaces/event/ColumnResizeEvent.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -1,47 +0,0 @@
-/**
- *
- */
-package org.richfaces.event;
-
-import javax.faces.component.UIComponent;
-import javax.faces.event.FacesEvent;
-import javax.faces.event.FacesListener;
-
-/**
- * @author pawelgo
- *
- */
-public class ColumnResizeEvent extends FacesEvent {
-
- private static final long serialVersionUID = -8424890931071484456L;
-
- private String columnWidths;
-
- public ColumnResizeEvent(UIComponent component, String columnWidths) {
- super(component);
- this.columnWidths = columnWidths;
- }
-
- /* (non-Javadoc)
- * @see
javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
- */
- public boolean isAppropriateListener(FacesListener listener) {
- return (listener instanceof ColumnResizeListener);
- }
-
- /* (non-Javadoc)
- * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
- */
- public void processListener(FacesListener listener) {
- ((ColumnResizeListener)listener).processColumnResize(this);
- }
-
- public String getColumnWidths() {
- return columnWidths;
- }
-
- public void setColumnWidths(String columnWidths) {
- this.columnWidths = columnWidths;
- }
-
-}
Deleted: trunk/sandbox/api/src/main/java/org/richfaces/event/ColumnResizeListener.java
===================================================================
---
trunk/sandbox/api/src/main/java/org/richfaces/event/ColumnResizeListener.java 2008-07-28
07:05:25 UTC (rev 9793)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/ColumnResizeListener.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -1,15 +0,0 @@
-/**
- *
- */
-package org.richfaces.event;
-
-import javax.faces.event.FacesListener;
-
-/**
- * @author pawelgo
- *
- */
-public interface ColumnResizeListener extends FacesListener {
-
- public void processColumnResize(ColumnResizeEvent event);
-}
Deleted: trunk/sandbox/api/src/main/java/org/richfaces/event/DragDropEvent.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/DragDropEvent.java 2008-07-28
07:05:25 UTC (rev 9793)
+++ trunk/sandbox/api/src/main/java/org/richfaces/event/DragDropEvent.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -1,67 +0,0 @@
-/**
- *
- */
-package org.richfaces.event;
-
-import javax.faces.component.UIComponent;
-import javax.faces.event.FacesEvent;
-import javax.faces.event.FacesListener;
-
-/**
- * @author pawelgo
- *
- */
-public class DragDropEvent extends FacesEvent {
-
- private static final long serialVersionUID = 2589493255876683993L;
-
- private Object dragValue;
- private Object dropValue;
- private String dragType;
- private boolean dropBefore;
-
- public DragDropEvent(UIComponent component) {
- super(component);
- }
-
- public void processListener(FacesListener listener) {
- ((DragDropListener)listener).processDragDrop(this);
- }
-
- public Object getDragValue() {
- return dragValue;
- }
-
- public void setDragValue(Object dragValue) {
- this.dragValue = dragValue;
- }
-
- public Object getDropValue() {
- return dropValue;
- }
-
- public void setDropValue(Object dropValue) {
- this.dropValue = dropValue;
- }
-
- public String getDragType() {
- return dragType;
- }
-
- public void setDragType(String dragType) {
- this.dragType = dragType;
- }
-
- public boolean isDropBefore() {
- return dropBefore;
- }
-
- public void setDropBefore(boolean dropBefore) {
- this.dropBefore = dropBefore;
- }
-
- public boolean isAppropriateListener(FacesListener listener) {
- return (listener instanceof DragDropListener);
- }
-
-}
Deleted: trunk/sandbox/api/src/main/java/org/richfaces/event/DragDropListener.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/DragDropListener.java 2008-07-28
07:05:25 UTC (rev 9793)
+++ trunk/sandbox/api/src/main/java/org/richfaces/event/DragDropListener.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -1,15 +0,0 @@
-/**
- *
- */
-package org.richfaces.event;
-
-import javax.faces.event.FacesListener;
-
-/**
- * @author pawelgo
- *
- */
-public interface DragDropListener extends FacesListener {
-
- public void processDragDrop(DragDropEvent event);
-}
Added:
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ChangeColumnVisibilityEvent.java
===================================================================
---
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ChangeColumnVisibilityEvent.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ChangeColumnVisibilityEvent.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,47 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public class ChangeColumnVisibilityEvent extends FacesEvent {
+
+ private static final long serialVersionUID = 178097339066092532L;
+
+ private String columnId;
+
+ public ChangeColumnVisibilityEvent(UIComponent component, String columnId) {
+ super(component);
+ this.columnId = columnId;
+ }
+
+ /* (non-Javadoc)
+ * @see
javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
+ */
+ public boolean isAppropriateListener(FacesListener listener) {
+ return (listener instanceof ChangeColumnVisibilityListener);
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
+ */
+ public void processListener(FacesListener listener) {
+ ((ChangeColumnVisibilityListener)listener).processChangeVisibility(this);
+ }
+
+ public String getColumnId() {
+ return columnId;
+ }
+
+ public void setColumnId(String columnId) {
+ this.columnId = columnId;
+ }
+
+}
Added:
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ChangeColumnVisibilityListener.java
===================================================================
---
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ChangeColumnVisibilityListener.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ChangeColumnVisibilityListener.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,15 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public interface ChangeColumnVisibilityListener extends FacesListener {
+
+ public void processChangeVisibility(ChangeColumnVisibilityEvent event);
+}
Added: trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ColumnResizeEvent.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ColumnResizeEvent.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ColumnResizeEvent.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,47 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public class ColumnResizeEvent extends FacesEvent {
+
+ private static final long serialVersionUID = -8424890931071484456L;
+
+ private String columnWidths;
+
+ public ColumnResizeEvent(UIComponent component, String columnWidths) {
+ super(component);
+ this.columnWidths = columnWidths;
+ }
+
+ /* (non-Javadoc)
+ * @see
javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
+ */
+ public boolean isAppropriateListener(FacesListener listener) {
+ return (listener instanceof ColumnResizeListener);
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
+ */
+ public void processListener(FacesListener listener) {
+ ((ColumnResizeListener)listener).processColumnResize(this);
+ }
+
+ public String getColumnWidths() {
+ return columnWidths;
+ }
+
+ public void setColumnWidths(String columnWidths) {
+ this.columnWidths = columnWidths;
+ }
+
+}
Added:
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ColumnResizeListener.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ColumnResizeListener.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ColumnResizeListener.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,15 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public interface ColumnResizeListener extends FacesListener {
+
+ public void processColumnResize(ColumnResizeEvent event);
+}
Added: trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/DragDropEvent.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/DragDropEvent.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/DragDropEvent.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,67 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public class DragDropEvent extends FacesEvent {
+
+ private static final long serialVersionUID = 2589493255876683993L;
+
+ private Object dragValue;
+ private Object dropValue;
+ private String dragType;
+ private boolean dropBefore;
+
+ public DragDropEvent(UIComponent component) {
+ super(component);
+ }
+
+ public void processListener(FacesListener listener) {
+ ((DragDropListener)listener).processDragDrop(this);
+ }
+
+ public Object getDragValue() {
+ return dragValue;
+ }
+
+ public void setDragValue(Object dragValue) {
+ this.dragValue = dragValue;
+ }
+
+ public Object getDropValue() {
+ return dropValue;
+ }
+
+ public void setDropValue(Object dropValue) {
+ this.dropValue = dropValue;
+ }
+
+ public String getDragType() {
+ return dragType;
+ }
+
+ public void setDragType(String dragType) {
+ this.dragType = dragType;
+ }
+
+ public boolean isDropBefore() {
+ return dropBefore;
+ }
+
+ public void setDropBefore(boolean dropBefore) {
+ this.dropBefore = dropBefore;
+ }
+
+ public boolean isAppropriateListener(FacesListener listener) {
+ return (listener instanceof DragDropListener);
+ }
+
+}
Added: trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/DragDropListener.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/DragDropListener.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/DragDropListener.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,15 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public interface DragDropListener extends FacesListener {
+
+ public void processDragDrop(DragDropEvent event);
+}
Added: trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableFilterEvent.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableFilterEvent.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableFilterEvent.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,39 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public class ExtTableFilterEvent extends FacesEvent {
+
+ private static final long serialVersionUID = -5710321006307753098L;
+
+ public ExtTableFilterEvent(UIComponent uiComponent) {
+ super(uiComponent);
+ }
+
+ /* (non-Javadoc)
+ * @see
javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
+ */
+ @Override
+ public boolean isAppropriateListener(FacesListener faceslistener) {
+ return (faceslistener instanceof ExtTableFilterListener);
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
+ */
+ @Override
+ public void processListener(FacesListener faceslistener) {
+ ((ExtTableFilterListener)faceslistener).processFilter(this);
+
+ }
+
+}
Added:
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableFilterListener.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableFilterListener.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableFilterListener.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,15 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public interface ExtTableFilterListener extends FacesListener {
+
+ public void processFilter(ExtTableFilterEvent event);
+}
Added: trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableSortEvent.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableSortEvent.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableSortEvent.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,39 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public class ExtTableSortEvent extends FacesEvent {
+
+ private static final long serialVersionUID = 2971879679208358501L;
+
+ public ExtTableSortEvent(UIComponent uiComponent) {
+ super(uiComponent);
+ }
+
+ /* (non-Javadoc)
+ * @see
javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
+ */
+ //@Override
+ public boolean isAppropriateListener(FacesListener faceslistener) {
+ return (faceslistener instanceof ExtTableSortListener);
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
+ */
+ //@Override
+ public void processListener(FacesListener faceslistener) {
+ ((ExtTableSortListener)faceslistener).processSort(this);
+
+ }
+
+}
Added:
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableSortListener.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableSortListener.java
(rev 0)
+++
trunk/sandbox/api/src/main/java/org/richfaces/event/extdt/ExtTableSortListener.java 2008-07-28
07:16:15 UTC (rev 9794)
@@ -0,0 +1,15 @@
+/**
+ *
+ */
+package org.richfaces.event.extdt;
+
+import javax.faces.event.FacesListener;
+
+/**
+ * @author pawelgo
+ *
+ */
+public interface ExtTableSortListener extends FacesListener {
+
+ public void processSort(ExtTableSortEvent event);
+}