Java Doc for InteractionManager.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » designer » 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 » org.netbeans.modules.visualweb.designer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.designer.InteractionManager

InteractionManager
public class InteractionManager (Code)
This class manages the interactions in the designer surface: mouse gestures, keyboard gestures, and sequence operations like drags, moves, resizes, etc.
author:
   Tor Norbye

Inner Class :public class MouseHandler extends MouseAdapter implements MouseMotionListener
Inner Class :static class DefaultDesignerPopupEvent implements DesignerPopupEvent

Field Summary
final public static  booleanENABLE_DOM_INSPECTOR
    

Constructor Summary
public  InteractionManager(WebForm webform)
    

Method Summary
 voiddrawInlineEditorBox(Graphics2D g2d, Rectangle rect)
    
public  DomPositionfindTextPosition(int x, int y)
     Return the text position at the given location - or Position.NONE if we're not over a text flow area.
public  voidfinishInlineEditing(boolean cancel)
     If there is an inline editor, finish editing in it.
public  InlineEditorgetInlineEditor()
    
 CursorgetInsertCursor()
    
public  CssBoxgetInsertModeBox()
     Return the box whose contents are being edited.
 CursorgetLinkedCursor()
    
public  MouseHandlergetMouseHandler()
    
public  PointgetPastePoint()
     This method returns the position at which a component should be pasted.

This implementation returns the current position of the mouse cursor. If the cursor is outside the visual editor or hasn't moved since the last time this method was invoked, this method will return a position one grid box below and to the right of the currently selected component.

public  voidhighlight(Element componentRootElement, Element regionElement)
     We have a separate "current"/"highlighted" item, unrelated to selection, which is used to for example indicate which box is being dropped upon.
 voidinlineEdit(Element[] componentRootElements)
    
public static  booleanisDomEvent(MouseEvent e)
     Return true iff this event corresponds to a "dom inspector" event, e.g.
public  booleanisHighlighted()
    
public  booleanisInlineEditing()
    
public static  booleanisLinkingEvent(MouseEvent e)
    
public static  booleanisMenuEvent(MouseEvent e)
     Return true iff this event corresponds to a "menu" event, e.g.
static  booleanisReadOnlyRegion(DomPosition pos)
     Report whether the given node is in a read-only region of the document or not.
public static  booleanisToggleEvent(MouseEvent e)
     Return true iff this event corresponds to a "toggle" event, e.g.
public  voidpaint(Graphics2D g)
     Paint the selection on top of the given editor pane.
 voidsetIgnoreCnC(boolean ignore)
    
public  voidsetInsertBox(CssBox box, MouseEvent event)
     Set the view which should be in "insert mode" (have an insert cursor and a thick component marker rectangle).
public  voidstartInlineEditing(Element componentRootElement, String propertyName)
    
public  booleanstartInlineEditing(Element componentRootElement, String property, CssBox box, boolean ensureSelected, boolean selectText, String initialEdit, boolean useDefault)
     Inline edit the given DesignBean, if the bean supports it.
public static  voidstopCnCForWebForm(WebForm webform)
    
public  voidsyncSelection(boolean update)
     Call when the selection objects have changed under us.
public static  voidtranslateMousePos(Point loc, Component source)
    
 intupdateDropState(Point p, boolean committed, Transferable transferable)
     During drag and drop, given a mouse position, decide whether a caret position applies (and if so, show the caret at that position, otherwise hide it), show drag & drop feedback messages in the status message area and highlight parents or link targets.
public  voidupdateInsertBox()
    

Field Detail
ENABLE_DOM_INSPECTOR
final public static boolean ENABLE_DOM_INSPECTOR(Code)




Constructor Detail
InteractionManager
public InteractionManager(WebForm webform)(Code)
Creates a new instance of InteractionManager




Method Detail
drawInlineEditorBox
void drawInlineEditorBox(Graphics2D g2d, Rectangle rect)(Code)



findTextPosition
public DomPosition findTextPosition(int x, int y)(Code)
Return the text position at the given location - or Position.NONE if we're not over a text flow area.



finishInlineEditing
public void finishInlineEditing(boolean cancel)(Code)
If there is an inline editor, finish editing in it.



getInlineEditor
public InlineEditor getInlineEditor()(Code)



getInsertCursor
Cursor getInsertCursor()(Code)



getInsertModeBox
public CssBox getInsertModeBox()(Code)
Return the box whose contents are being edited. Will be null when we're not in edit mode.



getLinkedCursor
Cursor getLinkedCursor()(Code)
Get cursor to use when dropping over a bean that only allows linking



getMouseHandler
public MouseHandler getMouseHandler()(Code)



getPastePoint
public Point getPastePoint()(Code)
This method returns the position at which a component should be pasted.

This implementation returns the current position of the mouse cursor. If the cursor is outside the visual editor or hasn't moved since the last time this method was invoked, this method will return a position one grid box below and to the right of the currently selected component. If no component is selected, this method returns null. the point at which to paste a component or null ifthere is no valid paste position




highlight
public void highlight(Element componentRootElement, Element regionElement)(Code)
We have a separate "current"/"highlighted" item, unrelated to selection, which is used to for example indicate which box is being dropped upon.



inlineEdit
void inlineEdit(Element[] componentRootElements)(Code)
Put the designer in inline-editing mode for the first eligible component in the inserted set of beans



isDomEvent
public static boolean isDomEvent(MouseEvent e)(Code)
Return true iff this event corresponds to a "dom inspector" event, e.g. an event which overrides normal mouse handling and causes CSS boxes to be selected and displayed in the property sheet instead.



isHighlighted
public boolean isHighlighted()(Code)



isInlineEditing
public boolean isInlineEditing()(Code)
Report whether we're inline editing a component



isLinkingEvent
public static boolean isLinkingEvent(MouseEvent e)(Code)



isMenuEvent
public static boolean isMenuEvent(MouseEvent e)(Code)
Return true iff this event corresponds to a "menu" event, e.g. an event where you want to post a popup menu. This is typically the case when the "right" mouse button is pressed.



isReadOnlyRegion
static boolean isReadOnlyRegion(DomPosition pos)(Code)
Report whether the given node is in a read-only region of the document or not.



isToggleEvent
public static boolean isToggleEvent(MouseEvent e)(Code)
Return true iff this event corresponds to a "toggle" event, e.g. an event where you want to toggle the selection instead of replacing it. This is typically the case when some modifier key is pressed.



paint
public void paint(Graphics2D g)(Code)
Paint the selection on top of the given editor pane.



setIgnoreCnC
void setIgnoreCnC(boolean ignore)(Code)



setInsertBox
public void setInsertBox(CssBox box, MouseEvent event)(Code)
Set the view which should be in "insert mode" (have an insert cursor and a thick component marker rectangle). May be null to turn off insert mode.



startInlineEditing
public void startInlineEditing(Element componentRootElement, String propertyName)(Code)



startInlineEditing
public boolean startInlineEditing(Element componentRootElement, String property, CssBox box, boolean ensureSelected, boolean selectText, String initialEdit, boolean useDefault)(Code)
Inline edit the given DesignBean, if the bean supports it. If so, inline edit the given bean and return true. Otherwise, return false.
Parameters:
  ensureSelected - If true, make sure that the component to be inline edited is also selected
Parameters:
  selectText - If true, select all the text in the inline section after initiating editing
Parameters:
  initialEdit - If a non empty string, initiate editing as if the user had typed the string
Parameters:
  box - The box corresponding to the component click, if any
Parameters:
  property - The component to be inline edited
Parameters:
  propertyName - May be null; if so, either the property corresponding to the box clicked should be edited,or the default property provided allow default is true
Parameters:
  useDefault - If true, start editing the property marked default (if any) (marked with a "*" in the metadata)



stopCnCForWebForm
public static void stopCnCForWebForm(WebForm webform)(Code)



syncSelection
public void syncSelection(boolean update)(Code)
Call when the selection objects have changed under us. Try to Update to the current equivalent objects.



translateMousePos
public static void translateMousePos(Point loc, Component source)(Code)



updateDropState
int updateDropState(Point p, boolean committed, Transferable transferable)(Code)
During drag and drop, given a mouse position, decide whether a caret position applies (and if so, show the caret at that position, otherwise hide it), show drag & drop feedback messages in the status message area and highlight parents or link targets. If the dropped parameter is set, perform drop setup too: set the insert position on the drop handler, and clear other drop state. I used to have separate feedback-while-dropping and now-dropping-setup-state methods, but they went out of sync, so by combining them hopefully the feedback will always reflect what will happen on a drop.
Parameters:
  committed - If false, we're dragging but haven't dropped; just updatestatus feedback and show caret etc. If true, we've committed tothe drop, so set up the dnd handler, and clear out temporary caretfeedback, etc. The drop type



updateInsertBox
public void updateInsertBox()(Code)
Notify the selection manager that the box hierarchy has changed, so update the insert box reference if necessary



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.