Java Doc for BaseDragableMenuItem.java in  » IDE-Netbeans » etl.project » org » netbeans » modules » sql » framework » ui » graph » view » impl » 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 » IDE Netbeans » etl.project » org.netbeans.modules.sql.framework.ui.graph.view.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JButton
   org.netbeans.modules.sql.framework.ui.graph.view.impl.BaseDragableMenuItem

All known Subclasses:   org.netbeans.modules.sql.framework.ui.graph.view.impl.SQLToolBarMenuItem,
BaseDragableMenuItem
public class BaseDragableMenuItem extends JButton implements DragGestureListener,Transferable(Code)
Base dragable menu item class
author:
   Girish Patil
version:
   $Revision$


Field Summary
final protected static  DataFlavorDEFAULT_FLAVORS
     The default data flavor of this class.
protected  MapdataFlavorMap
    
protected  ObjectmDefaultData
     The default transfer data.
protected  CursormDragCursor
     The cursor of this drag operation.
protected  booleanmIsDraggable
     Is this label draggable.
protected  DragGestureRecognizermRecognizer
     the gesture recognizer from default drag source.

Constructor Summary
public  BaseDragableMenuItem()
     Creates a DragableJLabel instance with no image and with an empty string for the title.
public  BaseDragableMenuItem(Icon image)
     Creates a BaseDragableMenuItem instance with the specified image.
public  BaseDragableMenuItem(Icon image, int horizontalAlignment)
     Creates a BaseDragableMenuItem instance with the specified image and horizontal alignment.
public  BaseDragableMenuItem(String text)
     Creates a BaseDragableMenuItem instance with the specified text.
public  BaseDragableMenuItem(String text, Icon icon, int horizontalAlignment)
     Creates a BaseDragableMenuItem instance with the specified text, image, and horizontal alignment.
public  BaseDragableMenuItem(String text, int horizontalAlignment)
     Creates a BaseDragableMenuItem instance with the specified text and horizontal alignment.

Method Summary
public  voidaddDataFlavor(DataFlavor flavor, Object transferData)
     Add a data flavor for this drag action.
public  voidaddDragSourceListener(DragSourceListener listener)
     Add a drag source listener for this drag operation.
public  voiddragDropEnd(DragSourceDropEvent event)
    
public  voiddragEnter(DragSourceDragEvent event)
    
public  voiddragExit(DragSourceEvent event)
    
public  voiddragGestureRecognized(DragGestureEvent event)
    
public  voiddragOver(DragSourceDragEvent event)
    
public  voiddropActionChanged(DragSourceDragEvent event)
    
public  DataFlavorgetDefaultDataFlavor()
     Return the default data flavor DataFlavor.javaJVMLocalObjectMimeType.
public  intgetDragAction()
     Retrun the drag action of this dragable.
public  CursorgetDragCursor()
     Retrun the cursor for this drag operation.
public  ObjectgetTransferData(DataFlavor flavor)
     Default getTransferData implementation for Transferable.
public  DataFlavor[]getTransferDataFlavors()
     Retrieves an array of valid data flavors.
protected  TransferablegetTransferable()
    
public  booleanisDataFlavorSupported(DataFlavor flavor)
     Checks whether the data flavor is supported.
public  booleanisDraggable()
    
public  voidremoveDataFlavor(DataFlavor flavor)
     Remove a data flavor for this drag action.
public  voidremoveDragSourceListener(DragSourceListener listener)
    
public  voidsetDefaultTransferData(Object data)
     Set the default transfer data object.
public  voidsetDragAction(int dragAction)
     Set the drag action of this label.
public  voidsetDragCursor(Cursor dragCursor)
     Set the cursor for this drag operation.
public  voidsetDraggable(boolean val)
    

Field Detail
DEFAULT_FLAVORS
final protected static DataFlavor DEFAULT_FLAVORS(Code)
The default data flavor of this class.



dataFlavorMap
protected Map dataFlavorMap(Code)
data flavor and transfer object storage



mDefaultData
protected Object mDefaultData(Code)
The default transfer data. Default reference to this object instance.



mDragCursor
protected Cursor mDragCursor(Code)
The cursor of this drag operation. Default to copy drop cursor.



mIsDraggable
protected boolean mIsDraggable(Code)
Is this label draggable.



mRecognizer
protected DragGestureRecognizer mRecognizer(Code)
the gesture recognizer from default drag source.




Constructor Detail
BaseDragableMenuItem
public BaseDragableMenuItem()(Code)
Creates a DragableJLabel instance with no image and with an empty string for the title.



BaseDragableMenuItem
public BaseDragableMenuItem(Icon image)(Code)
Creates a BaseDragableMenuItem instance with the specified image.
Parameters:
  image - the image of this label



BaseDragableMenuItem
public BaseDragableMenuItem(Icon image, int horizontalAlignment)(Code)
Creates a BaseDragableMenuItem instance with the specified image and horizontal alignment.
Parameters:
  image - the image of this label
Parameters:
  horizontalAlignment - the horizontal aligmenet



BaseDragableMenuItem
public BaseDragableMenuItem(String text)(Code)
Creates a BaseDragableMenuItem instance with the specified text.
Parameters:
  text - the text of this label.



BaseDragableMenuItem
public BaseDragableMenuItem(String text, Icon icon, int horizontalAlignment)(Code)
Creates a BaseDragableMenuItem instance with the specified text, image, and horizontal alignment.
Parameters:
  text - the text of this label
Parameters:
  icon - the icon of this label.
Parameters:
  horizontalAlignment - the horizontal aligment



BaseDragableMenuItem
public BaseDragableMenuItem(String text, int horizontalAlignment)(Code)
Creates a BaseDragableMenuItem instance with the specified text and horizontal alignment.
Parameters:
  text - the text of this label
Parameters:
  horizontalAlignment - the horizontal aligment




Method Detail
addDataFlavor
public void addDataFlavor(DataFlavor flavor, Object transferData)(Code)
Add a data flavor for this drag action.
Parameters:
  flavor - the dataflavor of this drag action.
Parameters:
  transferData - the object return by this dataflavor.



addDragSourceListener
public void addDragSourceListener(DragSourceListener listener)(Code)
Add a drag source listener for this drag operation.
Parameters:
  listener - the listener to be added



dragDropEnd
public void dragDropEnd(DragSourceDropEvent event)(Code)



dragEnter
public void dragEnter(DragSourceDragEvent event)(Code)



dragExit
public void dragExit(DragSourceEvent event)(Code)



dragGestureRecognized
public void dragGestureRecognized(DragGestureEvent event)(Code)



dragOver
public void dragOver(DragSourceDragEvent event)(Code)



dropActionChanged
public void dropActionChanged(DragSourceDragEvent event)(Code)



getDefaultDataFlavor
public DataFlavor getDefaultDataFlavor()(Code)
Return the default data flavor DataFlavor.javaJVMLocalObjectMimeType. Or null if the VM does not support DataFlavor.javaJVMLocalObjectMimeType. the default data flavor of this drag operation.



getDragAction
public int getDragAction()(Code)
Retrun the drag action of this dragable. the drag action of this dragable.



getDragCursor
public Cursor getDragCursor()(Code)
Retrun the cursor for this drag operation. the cursor to display during this drag operation.



getTransferData
public Object getTransferData(DataFlavor flavor)(Code)
Default getTransferData implementation for Transferable.
Parameters:
  flavor - Description of the Parameter The transferData value



getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()(Code)
Retrieves an array of valid data flavors. The transferDataFlavors value



getTransferable
protected Transferable getTransferable()(Code)



isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor flavor)(Code)
Checks whether the data flavor is supported.
Parameters:
  flavor - Description of the Parameter The dataFlavorSupported value



isDraggable
public boolean isDraggable()(Code)
Determines whether this button isDraggable The draggable value



removeDataFlavor
public void removeDataFlavor(DataFlavor flavor)(Code)
Remove a data flavor for this drag action.
Parameters:
  flavor - the data flavor to be removed.



removeDragSourceListener
public void removeDragSourceListener(DragSourceListener listener)(Code)



setDefaultTransferData
public void setDefaultTransferData(Object data)(Code)
Set the default transfer data object. This object is returned when getTransferData has been passed the default data flavor as its paramter. If data is null, transfer data will be this object instance.
Parameters:
  data - the defautl transfer data for the drag operation.



setDragAction
public void setDragAction(int dragAction)(Code)
Set the drag action of this label.
Parameters:
  dragAction - the drag action of this label.



setDragCursor
public void setDragCursor(Cursor dragCursor)(Code)
Set the cursor for this drag operation. Default to DragSource.DefaultCopyDrop if dragCursor is null.
Parameters:
  dragCursor - the cursor to display during this drag operation.



setDraggable
public void setDraggable(boolean val)(Code)
Sets the button's draggablity
Parameters:
  val - The new draggable value



Methods inherited from javax.swing.JButton
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public boolean isDefaultButton()(Code)(Java Doc)
public boolean isDefaultCapable()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public void setDefaultCapable(boolean defaultCapable)(Code)(Java Doc)
public void updateUI()(Code)(Java Doc)

w__w__w___._j_av_a___2__s__.___c__o___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.