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


java.lang.Object
   java.beans.PropertyEditorSupport
      org.netbeans.modules.vmd.api.properties.DesignPropertyEditor

All known Subclasses:   org.netbeans.modules.vmd.midp.propertyeditors.PropertyEditorGoToSource,  org.netbeans.modules.vmd.midp.propertyeditors.PropertyEditorVersion,  org.netbeans.modules.vmd.midp.propertyeditors.eventhandler.PropertyEditorEventHandler,  org.netbeans.modules.vmd.midp.propertyeditors.PropertyEditorJavaString,  org.netbeans.modules.vmd.midp.propertyeditors.PropertyEditorInstanceName,  org.netbeans.modules.vmd.api.properties.GroupPropertyEditor,  org.netbeans.modules.vmd.midpnb.propertyeditors.table.PropertyEditorTableModel,  org.netbeans.modules.vmd.midp.propertyeditors.api.usercode.PropertyEditorUserCode,
DesignPropertyEditor
abstract public class DesignPropertyEditor extends PropertyEditorSupport implements ExPropertyEditor,Factory(Code)
This class represents custom property editor in the Properties Window.




Method Summary
public  voidattachEnv(PropertyEnv env)
     This method is called by the property sheet to pass the environment to the property editor.
public  BooleancanEditAsText()
     Useful especially when passing value Boolean.FALSE - in this case disable the possibility of editing the the value as text but allows getAsText to return non null.
public  booleancanWrite()
     Test whether the property is writable.
public  voidcustomEditorOKButtonPressed()
     Method is invoked after OK button is pressed in the custom editor.
public  voidcustomEditorResetToDefaultButtonPressed()
     Method is invoked after Reset To Defaulat button is pressed in the custom property editor.
public  booleanexecuteInsideWriteTransaction()
    
public  StringgetCustomEditorTitle()
     Title of the custom property editor dialog.
public  ObjectgetDefaultValue()
     Returns value used to restore this property to its default value, if supported.
public  InplaceEditorgetInplaceEditor()
    
public  StringgetPropertyDisplayName()
    
public  voidinit(DesignComponent component)
    
final public  voidinvokeSaveToModel()
    
public  booleanisDefaultValue()
     This method indicates whether the current value is the same as the value that would otherwise be restored by calling restoreDefaultValue() (if supportsDefaultValue() returns true).
public  booleanisExecuteInsideWriteTransactionUsed()
     Describes if executeInsideWriteTransaction() will be executed inside write transaction responsible for saving data from property editor into the model.
public  booleanisResetToDefaultAutomatically()
     This method gives support to chose how to handle reset To Defualt event inside of custom property editor.
public  voidnotifyDesignChanged(DesignEvent event)
    
final public  voidresolve(DesignComponent component, List<String> propertyNames, Object value, PropertySupport propertySupport, String propertyDisplayName)
    
final public  voidresolveInplaceEditor(InplaceEditor inplaceEditor)
    
public  booleansupportsCustomEditor()
    
public  booleansupportsDefaultValue()
     Test whether the property had a default value.



Method Detail
attachEnv
public void attachEnv(PropertyEnv env)(Code)
This method is called by the property sheet to pass the environment to the property editor. The typical use case is for the ExPropertyEditor to call env.getFeatureDescriptor().getValue (String key) to retrieve any hints the Property object may supply regarding how the property editor should behave(such as providing alternate text representations of "true" and "false" for a Boolean property editor).
Parameters:
  allows - an object (suchDef as a Node.Property instance) to communicate hints toproperty editor instances



canEditAsText
public Boolean canEditAsText()(Code)
Useful especially when passing value Boolean.FALSE - in this case disable the possibility of editing the the value as text but allows getAsText to return non null. Also used by passing Boolean.TRUE to indicate that a editor should allow the user to type their own text into the combo box. the state of property in-place editor in the advanced property sheet



canWrite
public boolean canWrite()(Code)
Test whether the property is writable. true if the write of the value is supported



customEditorOKButtonPressed
public void customEditorOKButtonPressed()(Code)
Method is invoked after OK button is pressed in the custom editor.



customEditorResetToDefaultButtonPressed
public void customEditorResetToDefaultButtonPressed()(Code)
Method is invoked after Reset To Defaulat button is pressed in the custom property editor. This method is executed only when isResetToDefaultAutomatically return Boolean.False. NOTE: This method is executed inside of write transaction.



executeInsideWriteTransaction
public boolean executeInsideWriteTransaction()(Code)
This method is executed at the beginning of write transaction when data from property editor is writes into the model Boolean.FALSE ONLY this method will be executed without any other support it's means that value of property editor is not saved



getCustomEditorTitle
public String getCustomEditorTitle()(Code)
Title of the custom property editor dialog. custom property editor title



getDefaultValue
public Object getDefaultValue()(Code)
Returns value used to restore this property to its default value, if supported. In the default implementation, returns defaultValue of PropertyValue. default value specifed in the model for this property



getInplaceEditor
public InplaceEditor getInplaceEditor()(Code)



getPropertyDisplayName
public String getPropertyDisplayName()(Code)



init
public void init(DesignComponent component)(Code)
It's called when PropertyEditor is attached to the DesignComponent using PropertiesPresenter (notifyAttached)
Parameters:
  DesignComponent - attached to this PropertyEditor



invokeSaveToModel
final public void invokeSaveToModel()(Code)



isDefaultValue
public boolean isDefaultValue()(Code)
This method indicates whether the current value is the same as the value that would otherwise be restored by calling restoreDefaultValue() (if supportsDefaultValue() returns true). The default implementation returns true and it is recommended to also return true when supportsDefaultValue() returns false (if we do not support default value any value can be considered as the default). If supportsDefaultValue() returns false this method will not be called by the default implementation of property sheet. on default checks



isExecuteInsideWriteTransactionUsed
public boolean isExecuteInsideWriteTransactionUsed()(Code)
Describes if executeInsideWriteTransaction() will be executed inside write transaction responsible for saving data from property editor into the model. Boolean.TRUE will be executed.



isResetToDefaultAutomatically
public boolean isResetToDefaultAutomatically()(Code)
This method gives support to chose how to handle reset To Defualt event inside of custom property editor. When returns Boolean.True (on default) reset to default is handle automatically by the method getDefaultValue and all values connected with this property editor are restored to the default based on the getDefaultValue method. When return Boolean.False, restoring values to the default state has to be resolve completely inside of method customEditorResetToDefaultButtonPressed boolean value



notifyDesignChanged
public void notifyDesignChanged(DesignEvent event)(Code)
Its called according to the DesignEventFilterResolver(DesignEventFilter) passed into the PropertiesPresenter



resolve
final public void resolve(DesignComponent component, List<String> propertyNames, Object value, PropertySupport propertySupport, String propertyDisplayName)(Code)



resolveInplaceEditor
final public void resolveInplaceEditor(InplaceEditor inplaceEditor)(Code)



supportsCustomEditor
public boolean supportsCustomEditor()(Code)



supportsDefaultValue
public boolean supportsDefaultValue()(Code)
Test whether the property had a default value. true if it does (true by default)



Methods inherited from java.beans.PropertyEditorSupport
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void firePropertyChange()(Code)(Java Doc)
public String getAsText()(Code)(Java Doc)
public java.awt.Component getCustomEditor()(Code)(Java Doc)
public String getJavaInitializationString()(Code)(Java Doc)
public Object getSource()(Code)(Java Doc)
public String[] getTags()(Code)(Java Doc)
public Object getValue()(Code)(Java Doc)
public boolean isPaintable()(Code)(Java Doc)
public void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)(Code)(Java Doc)
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void setAsText(String text) throws java.lang.IllegalArgumentException(Code)(Java Doc)
public void setSource(Object source)(Code)(Java Doc)
public void setValue(Object value)(Code)(Java Doc)
public boolean supportsCustomEditor()(Code)(Java Doc)

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.