Java Doc for InlineEditor.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.InlineEditor

All known Subclasses:   org.netbeans.modules.visualweb.designer.FormComponentEditor,  org.netbeans.modules.visualweb.designer.AttributeInlineEditor,
InlineEditor
abstract public class InlineEditor (Code)

Editor for inline-editing text of components. The UI for this is specified in http://ucsd.sfbay/projects/developer-tools/projects/RAVE/reef/UISpecs/designer-03.html

One of the complications of inline editing is that (as the above spec calls for) it is invoked if you click on an already selected component. However, DOUBLE clicking on such a component should instead open the default event handler of the component. But note that a double click includes a single click, so if you double click on a selected component you immediately enter inline editing and the second click is then handled by the inline editor. At this point it needs to see if this click is a double click that was initiated before inline editing started, and if so, attempt to do event edits.


author:
   Tor Norbye


Field Summary
final protected  DomProvider.InlineEditorSupportinlineEditorSupport
    
protected  WebFormwebform
    

Constructor Summary
protected  InlineEditor(WebForm webform, DomProvider.InlineEditorSupport inlineEditorSupport)
    

Method Summary
protected  voidcheckInitialDoubleClick(MouseEvent e)
    
abstract public  booleancheckPosition(DomPosition pos)
     Return true if the given position is a position within this editor's range.
abstract public  TransferablecopyText(boolean cut)
    
public  voidcycleEditableProperty(boolean cancel)
     If the edited bean supports multiple fields to be inline edited, switch to editing the next property
Parameters:
  cancel - If true, cancel the current value before cycling.
abstract  voidfinish(boolean cancel)
     Stop inline editing.
public  DomPositiongetBegin()
    
public  DomPositiongetEnd()
    
static  InlineEditorgetInlineEditor(WebForm webform, CssBox box, Element componentRootElement, String propertyName, boolean useDefault)
     Return an inline editor for the given bean, if it supports one.
abstract public  voidinvokeDeleteNextCharAction(ActionEvent evt)
     XXX Invokes delete next char action. FIXME There shouldn't be an action invocation, but rather utility method call.
public  booleanisDocumentEditor()
     Return true if this editor is editing document positions that our outside of the document (e.g.
public  booleanisEdited(CssBox box)
     Return true iff the box passed in is within the box being edited by this inline editor.
public  booleanisEditing(Element componentRootElement, String propertyName)
    
abstract public  booleanisEscaped()
    
abstract public  booleanisMultiLine()
     Report whether this inline editor is in multi line mode.
public  voidpaint(Graphics2D g2d)
    
abstract public  voidstart(boolean selectText, String initialEdit)
     Initiate inline editing.

Field Detail
inlineEditorSupport
final protected DomProvider.InlineEditorSupport inlineEditorSupport(Code)



webform
protected WebForm webform(Code)




Constructor Detail
InlineEditor
protected InlineEditor(WebForm webform, DomProvider.InlineEditorSupport inlineEditorSupport)(Code)




Method Detail
checkInitialDoubleClick
protected void checkInitialDoubleClick(MouseEvent e)(Code)
This method checks whether the given mouse event represents a double click that occurred immediately in an inline editor - if so, we should cancel out of inline editing and initiate event editing (if any)



checkPosition
abstract public boolean checkPosition(DomPosition pos)(Code)
Return true if the given position is a position within this editor's range.



copyText
abstract public Transferable copyText(boolean cut)(Code)
Get the currently edited & selected text in the editor



cycleEditableProperty
public void cycleEditableProperty(boolean cancel)(Code)
If the edited bean supports multiple fields to be inline edited, switch to editing the next property
Parameters:
  cancel - If true, cancel the current value before cycling. If false, commit value.



finish
abstract void finish(boolean cancel)(Code)
Stop inline editing. If cancel is true, throw away changes, otherwise commit them.



getBegin
public DomPosition getBegin()(Code)
Report the start position being edited in the inline editor (or Position.NONE if we're not inline editing.)



getEnd
public DomPosition getEnd()(Code)
Report the end position being edited in the inline editor (or Position.NONE if we're not inline editing.)



getInlineEditor
static InlineEditor getInlineEditor(WebForm webform, CssBox box, Element componentRootElement, String propertyName, boolean useDefault)(Code)
Return an inline editor for the given bean, if it supports one. Returns null otherwise.
Parameters:
  webform - The webform being edited
Parameters:
  box - The box corresponding to the component click, if any
Parameters:
  bean - 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) An InlineEditor for editing the chosen property, or null if none apply



invokeDeleteNextCharAction
abstract public void invokeDeleteNextCharAction(ActionEvent evt)(Code)
XXX Invokes delete next char action. FIXME There shouldn't be an action invocation, but rather utility method call.



isDocumentEditor
public boolean isDocumentEditor()(Code)
Return true if this editor is editing document positions that our outside of the document (e.g. typically in a rendered fragment). If this is the case document positions won't be adjusted outwards to the nearest surrounding document position.



isEdited
public boolean isEdited(CssBox box)(Code)
Return true iff the box passed in is within the box being edited by this inline editor.



isEditing
public boolean isEditing(Element componentRootElement, String propertyName)(Code)
Return true iff this inline editor is editing the given property on the given bean



isEscaped
abstract public boolean isEscaped()(Code)



isMultiLine
abstract public boolean isMultiLine()(Code)
Report whether this inline editor is in multi line mode. Pressing Enter in a multiline mode should add a
element, whereas in a single line editor it will complete input.



paint
public void paint(Graphics2D g2d)(Code)
Paint the inline editing box



start
abstract public void start(boolean selectText, String initialEdit)(Code)
Initiate inline editing.
Parameters:
  selectText - If true, select the text in the inline editing context,else it will simply put the caret at the end of the text range.
Parameters:
  initialEdit - If a non empty string, set the edited value to this stringas if the user had typed the characters at the beginning of the editingoperation.



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.