Java Doc for DragListView.java in  » Portal » Open-Portal » graphical » 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 » Portal » Open Portal » graphical 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


graphical.DragListView

DragListView
public class DragListView extends ListView implements DragDestination,DragSource,DragPolicy(Code)
DragListView.

Open Issues

  • Passing in a BinaryTree is optional and is only managed if null checks out. It is somewhat tempting to argue that BTreeNodes should be smartened up to know their BinaryTree membership and that ListItem.data() turning out to be a BTreeNode would automatically trigger correct data management. But not today.
  • Or maybe it checks to see if the parent is a TreeView and obtains the BinaryTree. May cost a ping though.
  • Actually, it isn't clear that it's needed at all.
  • Policy refinements (branchesFrom, sortTo, dupeTo) should be crammed into a bit flag. Also, they are incompletely implemented. Actually, they're a total hack.
  • And branches from should probably be 1) restricted to BinaryTree users and 2) optionally take branch or branch plus subbranch.


Field Summary
public  booleanbranchesFrom
     Allow branches to be dragged from origin or allow only end nodes.
public  booleandupeTo
     Unduplicate target.
public  booleansortTo
     Maintain sort on target.
public  ImagetoImage
     Image to be set when an item is dragged to a list.
public  ImagetoSelectedImage
     Image to be set when an item is dragged to a list.

Constructor Summary
public  DragListView()
     Constructs an empty DragListView.
public  DragListView(Rect rect, int dragSourcePolicy, int dragDestinationPolicy, Image dragImage)
     Constructs a DragListView with bounds rect.
public  DragListView(int x, int y, int width, int height, int dragSourcePolicy, int dragDestinationPolicy, Image dragImage)
     Constructs an empty DragListView with the given bounds.

Method Summary
public  DragDestinationacceptsDrag(DragSession ds, int x, int y)
    
public  booleanclipSortAndPaste(BTListItem listItem)
     Checks to see if suggested subtree has moved in the BinaryTree but is not correctly reflected in the ListView.
public  booleandragDropped(DragSession ds)
    
public  booleandragEntered(DragSession ds)
    
public  voiddragExited(DragSession ds)
    
public  booleandragMoved(DragSession ds)
    
public  voiddragWasAccepted(DragSession ds)
    
public  booleandragWasRejected(DragSession ds)
    
public  TargetgetDestinationTarget()
    
public  ImagegetDragImage()
    
public  DragPolicyContextgetDragPolicyContext()
    
public  intgetIndexWithData(Object o)
    
public  TargetgetSourceTarget()
    
public  ListItemitemForData(Object o)
    
public  intminItemWidth()
    
public  booleanmouseDown(MouseEvent e)
    
public  voidmouseDragged(MouseEvent e)
    
public  voidmouseEntered(MouseEvent e)
    
public  voidmouseExited(MouseEvent e)
    
public  voidmouseMoved(MouseEvent e)
    
public  voidmouseUp(MouseEvent e)
    
public  voidselectEmpty()
    
public  voidsetBinaryTree(BinaryTree binaryTree)
    
public  voidsetDestinationTarget(Target t)
    
public  voidsetDragDestinationPolicy(int dragDestinationPolicy)
    
public  voidsetDragDroppedNotificationCommand(String cmd)
     Drag dropped notification command, sent when Category dropped.
public  voidsetDragDroppedNotificationTarget(Target target)
     Drag dropped notification target, sent when Category dropped.
public  voidsetDragImage(Image dragImage)
    
public  voidsetDragSourcePolicy(int dragSourcePolicy)
    
public  voidsetSourceTarget(Target t)
    
public  voidsetTreeView(TreeView treeView)
    
public  voidsizeListView()
    
public  ViewsourceView(DragSession ds)
    

Field Detail
branchesFrom
public boolean branchesFrom(Code)
Allow branches to be dragged from origin or allow only end nodes. Only end nodes are currently supported. Default is false: only end nodes are allowed to be dragged from.



dupeTo
public boolean dupeTo(Code)
Unduplicate target. Do or do not allow duplicate nodes on the list. Default is false: disallow duplicates.



sortTo
public boolean sortTo(Code)
Maintain sort on target. BinaryTrees not supported (they may support themselves). Default is false. SGP: actually, nothing is supported.



toImage
public Image toImage(Code)
Image to be set when an item is dragged to a list. SGP: maybe not publicy.



toSelectedImage
public Image toSelectedImage(Code)
Image to be set when an item is dragged to a list. SGP: maybe not publicy.




Constructor Detail
DragListView
public DragListView()(Code)
Constructs an empty DragListView.



DragListView
public DragListView(Rect rect, int dragSourcePolicy, int dragDestinationPolicy, Image dragImage)(Code)
Constructs a DragListView with bounds rect.
Parameters:
  rect - rectangle
Parameters:
  dragSourcePolicy - drag source policy
Parameters:
  dragDestinationPolicy - drag destination policy
Parameters:
  dragImage - drag image



DragListView
public DragListView(int x, int y, int width, int height, int dragSourcePolicy, int dragDestinationPolicy, Image dragImage)(Code)
Constructs an empty DragListView with the given bounds.
Parameters:
  x - x
Parameters:
  y - y
Parameters:
  width - width
Parameters:
  height - height
Parameters:
  dragSourcePolicy - drag source policy
Parameters:
  dragDestinationPolicy - drag destination policy
Parameters:
  dragImage - drag image




Method Detail
acceptsDrag
public DragDestination acceptsDrag(DragSession ds, int x, int y)(Code)



clipSortAndPaste
public boolean clipSortAndPaste(BTListItem listItem)(Code)
Checks to see if suggested subtree has moved in the BinaryTree but is not correctly reflected in the ListView. If yes, cuts and moves it. Use with caution. Returns "true" if any changes were made.



dragDropped
public boolean dragDropped(DragSession ds)(Code)



dragEntered
public boolean dragEntered(DragSession ds)(Code)



dragExited
public void dragExited(DragSession ds)(Code)



dragMoved
public boolean dragMoved(DragSession ds)(Code)



dragWasAccepted
public void dragWasAccepted(DragSession ds)(Code)



dragWasRejected
public boolean dragWasRejected(DragSession ds)(Code)



getDestinationTarget
public Target getDestinationTarget()(Code)



getDragImage
public Image getDragImage()(Code)



getDragPolicyContext
public DragPolicyContext getDragPolicyContext()(Code)



getIndexWithData
public int getIndexWithData(Object o)(Code)



getSourceTarget
public Target getSourceTarget()(Code)



itemForData
public ListItem itemForData(Object o)(Code)



minItemWidth
public int minItemWidth()(Code)



mouseDown
public boolean mouseDown(MouseEvent e)(Code)



mouseDragged
public void mouseDragged(MouseEvent e)(Code)



mouseEntered
public void mouseEntered(MouseEvent e)(Code)



mouseExited
public void mouseExited(MouseEvent e)(Code)



mouseMoved
public void mouseMoved(MouseEvent e)(Code)



mouseUp
public void mouseUp(MouseEvent e)(Code)



selectEmpty
public void selectEmpty()(Code)



setBinaryTree
public void setBinaryTree(BinaryTree binaryTree)(Code)



setDestinationTarget
public void setDestinationTarget(Target t)(Code)



setDragDestinationPolicy
public void setDragDestinationPolicy(int dragDestinationPolicy) throws IllegalArgumentException(Code)



setDragDroppedNotificationCommand
public void setDragDroppedNotificationCommand(String cmd)(Code)
Drag dropped notification command, sent when Category dropped.



setDragDroppedNotificationTarget
public void setDragDroppedNotificationTarget(Target target)(Code)
Drag dropped notification target, sent when Category dropped.



setDragImage
public void setDragImage(Image dragImage)(Code)



setDragSourcePolicy
public void setDragSourcePolicy(int dragSourcePolicy) throws IllegalArgumentException(Code)



setSourceTarget
public void setSourceTarget(Target t)(Code)



setTreeView
public void setTreeView(TreeView treeView)(Code)



sizeListView
public void sizeListView()(Code)



sourceView
public View sourceView(DragSession ds)(Code)



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