Java Doc for MarkupMouseRegion.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » designtime » markup » 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 » visualweb.api.designer » com.sun.rave.designtime.markup 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.designtime.markup.MarkupMouseRegion

All known Subclasses:   com.sun.rave.designtime.markup.BasicMarkupMouseRegion,
MarkupMouseRegion
public interface MarkupMouseRegion extends DisplayItem(Code)

A MarkupMouseRegion represents a portion (sub-region) of a markup component's rendered markup that has special design-time behavior. This special behavior may include a name, description, right-click context menu, and/or custom behavior in response to mouse clicks.

An instance of MarkupMouseRegion is associated with a particular sub-region of markup via a unique attribute name-value pair. The 'MarkupDesignInfo.annoteRender' method adds the additional design-time only attributes to the markup, as well as supplies an array of these MarkupMouseRegion instances.

IMPLEMENTED BY THE COMPONENT AUTHOR - This interface is designed to be implemented by the component (bean) author. BasicMarkupMouseRegion is available for convenient subclassing.


author:
   Joe Nuxoll
version:
   1.0
See Also:   BasicMarkupMouseRegion




Method Summary
public  booleanacceptLink(DesignBean targetBean, DesignBean sourceBean, Class sourceClass)
     This method is called when an object from a design surface or palette is being dragged 'over' a region represented by this MarkupMouseRegion.
public  DisplayAction[]getContextItems()
     Returns an array of DisplayAction objects - used to render a right-click context menu when the user right-clicks on this mouse region.
public  booleanisClickable()
     Returns true if this markup region wishes to respond to a mouse click (or series of clicks).
public  ResultlinkBeans(DesignBean targetBean, DesignBean sourceBean)
    

This method is called when an object from a design surface or palette has been dropped 'on' a region represented by this MarkupMouseRegion (to establish a link).

public  ResultregionClicked(int clickCount)
     This method is called when a user clicks the mouse within the bounds of this mouse region.



Method Detail
acceptLink
public boolean acceptLink(DesignBean targetBean, DesignBean sourceBean, Class sourceClass)(Code)
This method is called when an object from a design surface or palette is being dragged 'over' a region represented by this MarkupMouseRegion. If the 'sourceBean' or 'sourceClass' is of interest to the 'targetBean' instance or vice-versa (they can be "linked"), this method should return true. The user will then be presented with visual cues that this is an appropriate place to 'drop' the item and establish a link. If the user decides to drop the item on this targetBean, the 'linkBeans' method will be called. Note that the 'sourceBean' argument may be null if this drag operation is originating from the palette, because an instance of the bean will not have been created yet.
Parameters:
  targetBean - The DesignBean instance that the user is 'hovering' the mouse over
Parameters:
  sourceBean - The DesignBean instance that the user may potentially 'drop' to link - maybe null if this drag operation originated from the palette, because the instance willnot have been created yet
Parameters:
  sourceClass - The class type of the object that the user may potentially 'drop' to link true if the 'targetBean' cares to have an instance of type 'sourceClass'linked to it, false if not
See Also:    linkBeans(DesignBean, DesignBean)



getContextItems
public DisplayAction[] getContextItems()(Code)
Returns an array of DisplayAction objects - used to render a right-click context menu when the user right-clicks on this mouse region. An array of DisplayAction objects



isClickable
public boolean isClickable()(Code)
Returns true if this markup region wishes to respond to a mouse click (or series of clicks). true if mouse clicks should be sent to this mouse region,false if not
See Also:    regionClicked(int)



linkBeans
public Result linkBeans(DesignBean targetBean, DesignBean sourceBean)(Code)

This method is called when an object from a design surface or palette has been dropped 'on' a region represented by this MarkupMouseRegion (to establish a link). This method will not be called unless the corresponding 'acceptLink' method call returned true. Typically, this results in property settings on potentially both of the DesignBean objects.


Parameters:
  targetBean - The target DesignBean instance that the user has dropped an object onto toestablish a link
Parameters:
  sourceBean - The DesignBean instance that has been dropped. A Result object, indicating success or failure and including messages for the user
See Also:    acceptLink(DesignBean, DesignBean, Class)



regionClicked
public Result regionClicked(int clickCount)(Code)
This method is called when a user clicks the mouse within the bounds of this mouse region. This method is only called if the 'isClickable()' method returns true.
Parameters:
  clickCount - The count of mouse clicks A Result object
See Also:    isClickable()



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