Author: abelevich
Date: 2010-11-18 09:44:10 -0500 (Thu, 18 Nov 2010)
New Revision: 20087
Modified:
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/component/Draggable.java
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/component/Dropzone.java
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DnDEvent.java
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DragEvent.java
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DragListener.java
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropEvent.java
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropListener.java
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropSource.java
Log:
checkstyles fixes
Modified:
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/component/Draggable.java
===================================================================
---
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/component/Draggable.java 2010-11-18
14:37:57 UTC (rev 20086)
+++
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/component/Draggable.java 2010-11-18
14:44:10 UTC (rev 20087)
@@ -25,107 +25,130 @@
import org.richfaces.event.DragListener;
-
/**
- * Interface for all draggable components. Describe bean properties, implemented by
component.
+ * Interface for all draggable components. Describe bean properties, implemented
+ * by component.
+ *
* @author shura
- *
+ *
*/
-public interface Draggable {
-
- /**
- * Getter for value parameter, used as key for draggable component.
- * @return
- */
- public Object getDragValue();
-
- public void setDragValue(Object value);
-
- /**
- * Getter for id of component ( instance of {@link UIDragIndicator} ) used for create
drag cursor.
- * @return
- */
- public String getDragIndicator();
-
- /**
- * @param dragIndicator - id of cursor component
- */
- public void setDragIndicator(String dragIndicator);
-
- /**
- * Draggable implementation may wish to resolve drag indicator id to clientId itself
- * @param facesContext {@link FacesContext} instance
- * @return resolved indicator client id or null
- * @since 3.1
- */
- public String getResolvedDragIndicator(FacesContext facesContext);
-
- /**
- * Getter for type of this draggable ( file, mail etc ).
- * @return
- */
- public String getDragType();
-
- /**
- * @param dragType
- */
- public void setDragType(String dragType);
-
- /**
- * Getter for JavaScript event handler, called before start drag operation.
- * If this handler return false, drag operation is cancelled.
- * @return javaScript code of event handler.
- */
- public String getOndragstart();
-
- /**
- * @param dragType
- */
- public void setOndragstart(String ondrag);
+public interface Draggable {
- /**
- * Getter for JavaScript event handler; Called when drag operation end.
- * @return javaScript code of event handler.
- */
- public String getOndragend();
- public void setOndragend(String ondrag);
-
- /**
- * Getter for JavaScript event handler; Called when dragged element over the dropzone.
- * @return javaScript code of event handler.
- */
- public String getOndropover();
- public void setOndropover(String ondropover);
+ /**
+ * Getter for value parameter, used as key for draggable component.
+ *
+ * @return
+ */
+ public Object getDragValue();
- /**
- * Getter for JavaScript event handler; Called when dragged element out the dropzone.
- * @return javaScript code of event handler.
- */
- public String getOndropout();
- public void setOndropout(String ondropout);
-
- /**
- * Append drag listener to component listeners collection
- * @param listener
- */
- public void addDragListener(DragListener listener);
-
- /**
- * Get array of all Drop Listeners
- * @return
- */
- public DragListener[] getDragListeners();
-
- /**
- * Remove drop listener from component listeners array.
- * @param listener
- */
- public void removeDragListener(DragListener listener);
+ public void setDragValue(Object value);
- public String getGrabCursors();
- public void setGrabCursors(String grabCursors);
+ /**
+ * Getter for id of component ( instance of {@link UIDragIndicator} ) used
+ * for create drag cursor.
+ *
+ * @return
+ */
+ public String getDragIndicator();
- public String getGrabbingCursors();
- public void setGrabbingCursors(String grabbingCursors);
+ /**
+ * @param dragIndicator
+ * - id of cursor component
+ */
+ public void setDragIndicator(String dragIndicator);
+ /**
+ * Draggable implementation may wish to resolve drag indicator id to
+ * clientId itself
+ *
+ * @param facesContext
+ * {@link FacesContext} instance
+ * @return resolved indicator client id or null
+ * @since 3.1
+ */
+ public String getResolvedDragIndicator(FacesContext facesContext);
+
+ /**
+ * Getter for type of this draggable ( file, mail etc ).
+ *
+ * @return
+ */
+ public String getDragType();
+
+ /**
+ * @param dragType
+ */
+ public void setDragType(String dragType);
+
+ /**
+ * Getter for JavaScript event handler, called before start drag operation.
+ * If this handler return false, drag operation is cancelled.
+ *
+ * @return javaScript code of event handler.
+ */
+ public String getOndragstart();
+
+ /**
+ * @param dragType
+ */
+ public void setOndragstart(String ondrag);
+
+ /**
+ * Getter for JavaScript event handler; Called when drag operation end.
+ *
+ * @return javaScript code of event handler.
+ */
+ public String getOndragend();
+
+ public void setOndragend(String ondrag);
+
+ /**
+ * Getter for JavaScript event handler; Called when dragged element over the
+ * dropzone.
+ *
+ * @return javaScript code of event handler.
+ */
+ public String getOndropover();
+
+ public void setOndropover(String ondropover);
+
+ /**
+ * Getter for JavaScript event handler; Called when dragged element out the
+ * dropzone.
+ *
+ * @return javaScript code of event handler.
+ */
+ public String getOndropout();
+
+ public void setOndropout(String ondropout);
+
+ /**
+ * Append drag listener to component listeners collection
+ *
+ * @param listener
+ */
+ public void addDragListener(DragListener listener);
+
+ /**
+ * Get array of all Drop Listeners
+ *
+ * @return
+ */
+ public DragListener[] getDragListeners();
+
+ /**
+ * Remove drop listener from component listeners array.
+ *
+ * @param listener
+ */
+ public void removeDragListener(DragListener listener);
+
+ public String getGrabCursors();
+
+ public void setGrabCursors(String grabCursors);
+
+ public String getGrabbingCursors();
+
+ public void setGrabbingCursors(String grabbingCursors);
+
}
Modified:
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/component/Dropzone.java
===================================================================
---
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/component/Dropzone.java 2010-11-18
14:37:57 UTC (rev 20086)
+++
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/component/Dropzone.java 2010-11-18
14:44:10 UTC (rev 20087)
@@ -25,98 +25,115 @@
/**
* Base interface for all components, accesible as drop zone.
+ *
* @author shura
- *
+ *
*/
public interface Dropzone extends DropSource {
-
- /**
- * Getter for dropType's , accepted by this zone.
- * @return
- */
- public Object getAcceptedTypes();
-
- public void setAcceptedTypes(Object types);
-
- /**
- * Getter for mapping between drop types and indicator states.
- * @return
- */
- public Object getTypeMapping();
-
- public void setTypeMapping(Object types);
-
-
- /**
- * Getter for mapping between drop types and acceptable cursors
- * @return
- */
- public Object getCursorTypeMapping();
- public void setCursorTypeMapping(Object types);
-
- /**
- * Getter for JavaScript event handler, called then drag curcor enter in component
area.
- * If this handler return false, or "declined", drop operation on this
component not allowed.
- * If handler return true or "allowed" , or any other supported indicator
states, drop operation
- * is allowed and corresponding indicator state will be displayed.
- * @return javaScript code of event handler.
- */
- public String getOndragenter();
-
- /**
- * @param dragType
- */
- public void setOndragenter(String ondrag);
- /**
- * Getter for JavaScript event handler, called before drag cursor leave component
area.
- * @return javaScript code of event handler.
- */
- public String getOndragexit();
-
- /**
- * @param dragType
- */
- public void setOndragexit(String ondrag);
+ /**
+ * Getter for dropType's , accepted by this zone.
+ *
+ * @return
+ */
+ public Object getAcceptedTypes();
- public Object getDropValue();
-
- public void setDropValue(Object o);
-
- /**
- * Javascript code called before drop event.
- * @parameter
- * @return the acceptClass
- */
- public abstract String getOndrop();
+ public void setAcceptedTypes(Object types);
- /**
- * @param newOndrop the value to set
- */
- public abstract void setOndrop(String newOndrop);
-
- /**
- * Javascript handler for event fired on drop even the drop for given type is not
available
- * @parameter
- * @return the acceptClass
- */
- public abstract String getOndropend();
+ /**
+ * Getter for mapping between drop types and indicator states.
+ *
+ * @return
+ */
+ public Object getTypeMapping();
- /**
- * @param newname the value to set
- */
- public abstract void setOndropend(String ondropend);
-
- /**
- * Getter for the list of comma separated cursors that indicates when acceptable
draggable over dropzone
- */
- public String getAcceptCursors();
- public void setAcceptCursors(String acceptCursors);
+ public void setTypeMapping(Object types);
- /**
- * Getter for the list of comma separated cursors that indicates when rejectable
draggable over dropzone
- */
- public String getRejectCursors();
- public void setRejectCursors(String rejectCursors);
+ /**
+ * Getter for mapping between drop types and acceptable cursors
+ *
+ * @return
+ */
+ public Object getCursorTypeMapping();
+ public void setCursorTypeMapping(Object types);
+
+ /**
+ * Getter for JavaScript event handler, called then drag curcor enter in
+ * component area. If this handler return false, or "declined", drop
+ * operation on this component not allowed. If handler return true or
+ * "allowed" , or any other supported indicator states, drop operation is
+ * allowed and corresponding indicator state will be displayed.
+ *
+ * @return javaScript code of event handler.
+ */
+ public String getOndragenter();
+
+ /**
+ * @param dragType
+ */
+ public void setOndragenter(String ondrag);
+
+ /**
+ * Getter for JavaScript event handler, called before drag cursor leave
+ * component area.
+ *
+ * @return javaScript code of event handler.
+ */
+ public String getOndragexit();
+
+ /**
+ * @param dragType
+ */
+ public void setOndragexit(String ondrag);
+
+ public Object getDropValue();
+
+ public void setDropValue(Object o);
+
+ /**
+ * Javascript code called before drop event.
+ *
+ * @parameter
+ * @return the acceptClass
+ */
+ public abstract String getOndrop();
+
+ /**
+ * @param newOndrop
+ * the value to set
+ */
+ public abstract void setOndrop(String newOndrop);
+
+ /**
+ * Javascript handler for event fired on drop even the drop for given type
+ * is not available
+ *
+ * @parameter
+ * @return the acceptClass
+ */
+ public abstract String getOndropend();
+
+ /**
+ * @param newname
+ * the value to set
+ */
+ public abstract void setOndropend(String ondropend);
+
+ /**
+ * Getter for the list of comma separated cursors that indicates when
+ * acceptable draggable over dropzone
+ */
+ public String getAcceptCursors();
+
+ public void setAcceptCursors(String acceptCursors);
+
+ /**
+ * Getter for the list of comma separated cursors that indicates when
+ * rejectable draggable over dropzone
+ */
+ public String getRejectCursors();
+
+ public void setRejectCursors(String rejectCursors);
+
}
Modified: sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DnDEvent.java
===================================================================
---
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DnDEvent.java 2010-11-18
14:37:57 UTC (rev 20086)
+++
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DnDEvent.java 2010-11-18
14:44:10 UTC (rev 20087)
@@ -26,21 +26,23 @@
/**
*
- * <br /><br />
+ * <br />
+ * <br />
*
* Created 12.11.2007
+ *
* @author Nick Belaevski
* @since 3.2
*/
public abstract class DnDEvent extends FacesEvent {
- /**
+ /**
*
*/
- private static final long serialVersionUID = -2455016405742082110L;
+ private static final long serialVersionUID = -2455016405742082110L;
- public DnDEvent(UIComponent component) {
- super(component);
- }
+ public DnDEvent(UIComponent component) {
+ super(component);
+ }
}
Modified: sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DragEvent.java
===================================================================
---
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DragEvent.java 2010-11-18
14:37:57 UTC (rev 20086)
+++
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DragEvent.java 2010-11-18
14:44:10 UTC (rev 20087)
@@ -28,75 +28,81 @@
import org.richfaces.component.Dropzone;
/**
- * @author Nick Belaevski - nbelaevski(a)exadel.com
- * created 27.12.2006
+ * @author Nick Belaevski - nbelaevski(a)exadel.com created 27.12.2006
*
*/
public class DragEvent extends DnDEvent {
- private Dropzone dropTarget;
- private Object acceptedTypes;
- private Object dropValue;
- /**
+ private static final long serialVersionUID = 6179268394391836905L;
+
+ private Dropzone dropTarget;
+ private Object acceptedTypes;
+ private Object dropValue;
+ /**
*
*/
- private static final long serialVersionUID = 6179268394391836905L;
- public DragEvent(UIComponent uiComponent) {
- super(uiComponent);
- }
+ public DragEvent(UIComponent uiComponent) {
+ super(uiComponent);
+ }
- /* (non-Javadoc)
- * @see
javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
- */
- public boolean isAppropriateListener(FacesListener faceslistener) {
- return faceslistener instanceof DragListener;
- }
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.
+ * FacesListener)
+ */
+ public boolean isAppropriateListener(FacesListener faceslistener) {
+ return faceslistener instanceof DragListener;
+ }
- /* (non-Javadoc)
- * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
- */
- public void processListener(FacesListener faceslistener) {
- ((DragListener) faceslistener).processDrag(this);
- }
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener
+ * )
+ */
+ public void processListener(FacesListener faceslistener) {
+ ((DragListener) faceslistener).processDrag(this);
+ }
- public Object getDragValue() {
- return ((Draggable) this.getSource()).getDragValue();
- }
+ public Object getDragValue() {
+ return ((Draggable) this.getSource()).getDragValue();
+ }
- public Dropzone getDropTarget() {
- return dropTarget;
- }
-
- /**
- * @see java.util.EventObject#toString()
- */
-/* public String toString() {
- return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).
- append("component", getComponent()).append("source",
getSource()).append("phaseId", getPhaseId()).
- append("dragValue", getDragValue()).
- append("dropTarget", getDropTarget()).
- append("dropValue", getDropValue()).
- toString();
- }
-*/
- public void setDropTarget(Dropzone dropTarget) {
- this.dropTarget = dropTarget;
- }
+ public Dropzone getDropTarget() {
+ return dropTarget;
+ }
- public Object getAcceptedTypes() {
- return acceptedTypes;
- }
+ /**
+ * @see java.util.EventObject#toString()
+ */
+ /*
+ * public String toString() { return new ToStringBuilder(this,
+ * ToStringStyle.MULTI_LINE_STYLE). append("component",
+ * getComponent()).append("source",
getSource()).append("phaseId",
+ * getPhaseId()). append("dragValue", getDragValue()).
append("dropTarget",
+ * getDropTarget()). append("dropValue", getDropValue()). toString(); }
+ */
+ public void setDropTarget(Dropzone dropTarget) {
+ this.dropTarget = dropTarget;
+ }
- public void setAcceptedTypes(Object acceptedTypes) {
- this.acceptedTypes = acceptedTypes;
- }
+ public Object getAcceptedTypes() {
+ return acceptedTypes;
+ }
- public Object getDropValue() {
- return dropValue;
- }
+ public void setAcceptedTypes(Object acceptedTypes) {
+ this.acceptedTypes = acceptedTypes;
+ }
- public void setDropValue(Object dropValue) {
- this.dropValue = dropValue;
- }
+ public Object getDropValue() {
+ return dropValue;
+ }
+
+ public void setDropValue(Object dropValue) {
+ this.dropValue = dropValue;
+ }
}
Modified:
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DragListener.java
===================================================================
---
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DragListener.java 2010-11-18
14:37:57 UTC (rev 20086)
+++
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DragListener.java 2010-11-18
14:44:10 UTC (rev 20087)
@@ -24,11 +24,10 @@
import javax.faces.event.FacesListener;
/**
- * @author Nick Belaevski - nbelaevski(a)exadel.com
- * created 27.12.2006
+ * @author Nick Belaevski - nbelaevski(a)exadel.com created 27.12.2006
*
*/
public interface DragListener extends FacesListener {
- public void processDrag(DragEvent event);
+ public void processDrag(DragEvent event);
}
Modified: sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropEvent.java
===================================================================
---
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropEvent.java 2010-11-18
14:37:57 UTC (rev 20086)
+++
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropEvent.java 2010-11-18
14:44:10 UTC (rev 20087)
@@ -29,79 +29,83 @@
/**
* @author shura
- *
+ *
*/
public class DropEvent extends DnDEvent {
- /**
+ /**
*
*/
- private static final long serialVersionUID = 1660545054556302746L;
-
- private Draggable draggableSource;
- private String dragType;
- private Object dragValue;
-
- public DropEvent(UIComponent component) {
- super(component);
- }
+ private static final long serialVersionUID = 1660545054556302746L;
- /* (non-Javadoc)
- * @see
javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
- */
- public boolean isAppropriateListener(FacesListener listener) {
- return listener instanceof DropListener;
- }
+ private Draggable draggableSource;
+ private String dragType;
+ private Object dragValue;
- /* (non-Javadoc)
- * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
- */
- public void processListener(FacesListener listener) {
- ((DropListener) listener).processDrop(this);
- }
+ public DropEvent(UIComponent component) {
+ super(component);
+ }
- /**
- * @return the dropValue
- */
- public Object getDropValue() {
- return ((Dropzone) this.getSource()).getDropValue();
- }
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.
+ * FacesListener)
+ */
+ public boolean isAppropriateListener(FacesListener listener) {
+ return listener instanceof DropListener;
+ }
- public Draggable getDraggableSource() {
- return draggableSource;
- }
-
- /**
- * @see java.util.EventObject#toString()
- */
-/* public String toString() {
- return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).
- append("component", getComponent()).
- append("source", getSource()).
- append("phaseId", getPhaseId()).
- append("dropValue", getDropValue()).
- append("draggableSource", getDraggableSource()).
- append("dragValue", getDragValue()).
- toString();
- }
-*/
- public void setDraggableSource(Draggable draggableSource) {
- this.draggableSource = draggableSource;
- }
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener
+ * )
+ */
+ public void processListener(FacesListener listener) {
+ ((DropListener) listener).processDrop(this);
+ }
- public String getDragType() {
- return dragType;
- }
+ /**
+ * @return the dropValue
+ */
+ public Object getDropValue() {
+ return ((Dropzone) this.getSource()).getDropValue();
+ }
- public void setDragType(String dragType) {
- this.dragType = dragType;
- }
+ public Draggable getDraggableSource() {
+ return draggableSource;
+ }
- public Object getDragValue() {
- return dragValue;
- }
+ /**
+ * @see java.util.EventObject#toString()
+ */
+ /*
+ * public String toString() { return new ToStringBuilder(this,
+ * ToStringStyle.MULTI_LINE_STYLE). append("component", getComponent()).
+ * append("source", getSource()). append("phaseId",
getPhaseId()).
+ * append("dropValue", getDropValue()).
append("draggableSource",
+ * getDraggableSource()). append("dragValue", getDragValue()). toString();
}
+ */
+ public void setDraggableSource(Draggable draggableSource) {
+ this.draggableSource = draggableSource;
+ }
- public void setDragValue(Object dragValue) {
- this.dragValue = dragValue;
- }
+ public String getDragType() {
+ return dragType;
+ }
+
+ public void setDragType(String dragType) {
+ this.dragType = dragType;
+ }
+
+ public Object getDragValue() {
+ return dragValue;
+ }
+
+ public void setDragValue(Object dragValue) {
+ this.dragValue = dragValue;
+ }
}
Modified:
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropListener.java
===================================================================
---
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropListener.java 2010-11-18
14:37:57 UTC (rev 20086)
+++
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropListener.java 2010-11-18
14:44:10 UTC (rev 20087)
@@ -25,15 +25,17 @@
/**
* Listener for process Drop events
+ *
* @author shura
- *
+ *
*/
public interface DropListener extends FacesListener {
-
- /**
- * Process event on Drop for this component.
- * @param event
- */
- public void processDrop(DropEvent event);
+ /**
+ * Process event on Drop for this component.
+ *
+ * @param event
+ */
+ public void processDrop(DropEvent event);
+
}
Modified:
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropSource.java
===================================================================
---
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropSource.java 2010-11-18
14:37:57 UTC (rev 20086)
+++
sandbox/trunk/ui/drag-drop/api/src/main/java/org/richfaces/event/DropSource.java 2010-11-18
14:44:10 UTC (rev 20087)
@@ -25,30 +25,35 @@
/**
* Interface for component applicable to process drag/drop events.
+ *
* @author shura
- *
+ *
*/
public interface DropSource {
-
- /**
- * Append drop listener to component listeners collection
- * @param listener
- */
- public void addDropListener(DropListener listener);
-
- /**
- * Get array of all Drop Listeners
- * @return
- */
- public DropListener[] getDropListeners();
-
- /**
- * Remove drop listener from component listeners array.
- * @param listener
- */
- public void removeDropListener(DropListener listener);
-
- public void setDropListener(MethodBinding binding);
- public MethodBinding getDropListener();
+ /**
+ * Append drop listener to component listeners collection
+ *
+ * @param listener
+ */
+ public void addDropListener(DropListener listener);
+
+ /**
+ * Get array of all Drop Listeners
+ *
+ * @return
+ */
+ public DropListener[] getDropListeners();
+
+ /**
+ * Remove drop listener from component listeners array.
+ *
+ * @param listener
+ */
+ public void removeDropListener(DropListener listener);
+
+ public void setDropListener(MethodBinding binding);
+
+ public MethodBinding getDropListener();
+
}