Java Doc for Draggable.java in  » Ajax » MyGWT » net » mygwt » ui » client » fx » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » MyGWT » net.mygwt.ui.client.fx 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.mygwt.ui.client.util.Observable
      net.mygwt.ui.client.fx.Draggable

Draggable
public class Draggable extends Observable (Code)
Adds drag behavior to any widget. Drag operations can be initiated from the widget itself, or another widget, such as the header in a dialog.

It is possible to specify event targets that will be ignored. If the target element has a 'my-nodrag' style it will not trigger a drag operation.

Events:
DragStart : (source, widget, event)
Fires after a drag has started.
  • source : this
  • widget : drag widget
  • event : the dom event
DragMove : (source, widget, event)
Fires after the mouse moves.
  • source : this
  • widget : drag widget
  • event : the dom event
DragCancel : (source, widget, event)
Fires after a drag has been cancelled.
  • source : this
  • widget : drag widget
  • event : the dom event
DragEnd : (source, widget, event)
Fires after a drag has ended.
  • source : this
  • widget : drag widget
  • event : the dom event


Field Summary
public  booleanconstrainClient
     true to set client area constraints.
public  booleanconstrainHorizontal
     true to stop horizontal movement.
public  booleanconstrainVertical
     true to stop vertical movement.
public  Widgetcontainer
     If specified, drag will be constrained by container bounds.
public  booleanmoveAfterProxyDrag
     true to move source widget aftet a proxy drag.
public  StringproxyStyle
     proxyStyle is the style name used for proxy drags.
public  booleansizeProxyToSource
     true to set proxy dimensions the same as the drag widget.
public  booleanupdateZIndex
     updateZIndex specifies if the CSS z-index should be updated on the widget being dragged.
public  booleanuseProxy
     true to use a proxy widget during drag operation.

Constructor Summary
public  Draggable(Component dragWidget)
     Creates a new draggable instance.
public  Draggable(Component dragWidget, Component handle)
     Create a new draggable instance.

Method Summary
public  voidaddDragListener(DragListener listener)
     Adds a listener to receive drag events.
public  WidgetgetDragHandle()
     Returns the drag handle.
public  WidgetgetDragWidget()
     Returns the widget being dragged.
public  booleanisDragging()
     Returns true if a drag is in progress.
public  voidremoveDragListener(DragListener listener)
     Removes a previously added listener.
public  voidsetEnabled(boolean enabled)
     Enables dragging if the argument is true, and disables it otherwise.
public  voidsetXConstraint(int left, int right)
     Constrains the horizontal travel.
public  voidsetYConstraint(int top, int bottom)
     Constrains the vertical travel.

Field Detail
constrainClient
public boolean constrainClient(Code)
true to set client area constraints. Default value is true



constrainHorizontal
public boolean constrainHorizontal(Code)
true to stop horizontal movement. Default value is false



constrainVertical
public boolean constrainVertical(Code)
true to stop vertical movement. Default value is false



container
public Widget container(Code)
If specified, drag will be constrained by container bounds.



moveAfterProxyDrag
public boolean moveAfterProxyDrag(Code)
true to move source widget aftet a proxy drag. Default values is true



proxyStyle
public String proxyStyle(Code)
proxyStyle is the style name used for proxy drags. Default value is 'my-drag-proxy'.



sizeProxyToSource
public boolean sizeProxyToSource(Code)
true to set proxy dimensions the same as the drag widget. Default value is true



updateZIndex
public boolean updateZIndex(Code)
updateZIndex specifies if the CSS z-index should be updated on the widget being dragged. Setting this value to true will ensure that the dragged element is always displayed over all other widgets. Default value is true.



useProxy
public boolean useProxy(Code)
true to use a proxy widget during drag operation. Default value is true




Constructor Detail
Draggable
public Draggable(Component dragWidget)(Code)
Creates a new draggable instance.
Parameters:
  dragWidget - the widget to be dragged



Draggable
public Draggable(Component dragWidget, Component handle)(Code)
Create a new draggable instance.
Parameters:
  dragWidget - the widget to be dragged
Parameters:
  handle - the widget drags will be initiated from




Method Detail
addDragListener
public void addDragListener(DragListener listener)(Code)
Adds a listener to receive drag events.
Parameters:
  listener - the drag listener to be added



getDragHandle
public Widget getDragHandle()(Code)
Returns the drag handle. the drag handle



getDragWidget
public Widget getDragWidget()(Code)
Returns the widget being dragged. the drag widget



isDragging
public boolean isDragging()(Code)
Returns true if a drag is in progress. the drag state



removeDragListener
public void removeDragListener(DragListener listener)(Code)
Removes a previously added listener.
Parameters:
  listener - the listener to be removed



setEnabled
public void setEnabled(boolean enabled)(Code)
Enables dragging if the argument is true, and disables it otherwise.
Parameters:
  enabled - the new enabled state



setXConstraint
public void setXConstraint(int left, int right)(Code)
Constrains the horizontal travel.
Parameters:
  left - the number of pixels the element can move to the left
Parameters:
  right - the number of pixels the element can move to the right



setYConstraint
public void setYConstraint(int top, int bottom)(Code)
Constrains the vertical travel.
Parameters:
  top - the number of pixels the element can move to the up
Parameters:
  bottom - the number of pixels the element can move to the down



Fields inherited from net.mygwt.ui.client.util.Observable
public EventTable eventTable(Code)(Java Doc)

Methods inherited from net.mygwt.ui.client.util.Observable
public void addListener(int eventType, Listener listener)(Code)(Java Doc)
public boolean fireEvent(int eventType)(Code)(Java Doc)
public boolean fireEvent(int eventType, BaseEvent be)(Code)(Java Doc)
public void removeAllListeners()(Code)(Java Doc)
public void removeListener(int eventType, Listener listener)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.