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


java.lang.Object
   java.beans.FeatureDescriptor
      com.sun.rave.designtime.markup.AttributeDescriptor

AttributeDescriptor
public class AttributeDescriptor extends FeatureDescriptor (Code)

An AttributeDescriptor describes a markup attribute that is used to persist the value of a JavaBean property. The AttributeDescriptor is "stuffed" into the PropertyDescriptor using the name-value pair storage: FeatureDescriptor.setValue(String key, Object value). The key is defined by Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR, or literally "attributeDescriptor". If an AttributeDescriptor is found in a property's PropertyDescriptor, the IDE will persist any property settings in the .jsp file as an attribute. If no AttributeDescriptor is found, any property settings will be persisted in the .java file as standard JavaBeans properties. For example, a property called 'background' of type 'java.awt.Color' might be persisted in two ways:

  • If it has an AttributeDescriptor, it will be persisted as a markup attribute, like this: background="#FFFFFF"
  • If there is no AttributeDescriptor, it will be persisted as a property setter method call, like this: setBackground(new java.awt.Color(255, 255, 255));


    author:
       Joe Nuxoll
    version:
       1.0
    See Also:   java.beans.FeatureDescriptor.setValue(StringObject)
    See Also:   com.sun.rave.designtime.Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR


Field Summary
protected  booleanbindable
    
protected  StringdefaultValue
    
protected  booleanrequired
    

Constructor Summary
public  AttributeDescriptor()
    
public  AttributeDescriptor(String attributeName)
    
public  AttributeDescriptor(String attributeName, boolean required, String defaultValue)
    
public  AttributeDescriptor(String attributeName, boolean required, String defaultValue, boolean bindable)
    

Method Summary
public  booleanequals(Object o)
    
public  StringgetDefaultValue()
     Gets the 'defaultValue' property.
public  booleanisBindable()
     Gets the 'bindable' property.
public  booleanisRequired()
     Gets the 'required' property.
public  voidsetBindable(boolean bindable)
     Sets the 'bindable' property.
public  voidsetDefaultValue(String defaultValue)
     Sets the 'defaultValue' property.
public  voidsetRequired(boolean required)
     Sets the 'required' property.

Field Detail
bindable
protected boolean bindable(Code)
protected storage for the 'bindable' property



defaultValue
protected String defaultValue(Code)
protected storage for the 'defaultValue' property



required
protected boolean required(Code)
protected storage for the 'required' property




Constructor Detail
AttributeDescriptor
public AttributeDescriptor()(Code)
Constructs an empty AttributeDescriptor



AttributeDescriptor
public AttributeDescriptor(String attributeName)(Code)
Constructs an AttributeDescriptor with the specified attributeName
Parameters:
  attributeName - The desired attribute name



AttributeDescriptor
public AttributeDescriptor(String attributeName, boolean required, String defaultValue)(Code)
Constructs an AttributeDescriptor with the specified attributeName, required state, and default value
Parameters:
  attributeName - The desired attribute name
Parameters:
  required - true if this is a required attribute, false if not
Parameters:
  defaultValue - The default value for this attribute (will not be persisted if theset value matches the default value)



AttributeDescriptor
public AttributeDescriptor(String attributeName, boolean required, String defaultValue, boolean bindable)(Code)
Constructs an AttributeDescriptor with the specified attributeName, required state, default value, and bindable state
Parameters:
  attributeName - The desired attribute name
Parameters:
  required - true if this is a required attribute, false if not
Parameters:
  defaultValue - The default value for this attribute (will not be persisted if theset value matches the default value)
Parameters:
  bindable - true if this property is 'bindable', meaning it can have a valueexpression set on it, or false if not




Method Detail
equals
public boolean equals(Object o)(Code)



getDefaultValue
public String getDefaultValue()(Code)
Gets the 'defaultValue' property. The default value is the value that this property has if it is not set at all - thus when the value is explicitly set to the default, the property setting is removed from the persistence. the 'defaultValue' property setting



isBindable
public boolean isBindable()(Code)
Gets the 'bindable' property. A 'bindable' property is one that may have a value binding expression as its value. true if this attribute should be bindable, false if not



isRequired
public boolean isRequired()(Code)
Gets the 'required' property. A required attribute is one that must have a setting in order to produce valid JSP. the current state of the 'required' property



setBindable
public void setBindable(boolean bindable)(Code)
Sets the 'bindable' property. A 'bindable' property is one that may have a value binding expression as its value.
Parameters:
  bindable - true if this attribute should be bindable, false ifnot



setDefaultValue
public void setDefaultValue(String defaultValue)(Code)
Sets the 'defaultValue' property. The default value is the value that this property has if it is not set at all - thus when the value is explicitly set to the default, the property setting is removed from the persistence.
Parameters:
  defaultValue - The default value for this attribute (will not be persisted if the setvalue matches the default value)



setRequired
public void setRequired(boolean required)(Code)
Sets the 'required' property. A required attribute is one that must have a setting in order to produce valid JSP.
Parameters:
  required - true if this attribute should be required, false ifnot



Methods inherited from java.beans.FeatureDescriptor
public java.util.Enumeration<String> attributeNames()(Code)(Java Doc)
public String getDisplayName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getShortDescription()(Code)(Java Doc)
public Object getValue(String attributeName)(Code)(Java Doc)
public boolean isExpert()(Code)(Java Doc)
public boolean isHidden()(Code)(Java Doc)
public boolean isPreferred()(Code)(Java Doc)
public void setDisplayName(String displayName)(Code)(Java Doc)
public void setExpert(boolean expert)(Code)(Java Doc)
public void setHidden(boolean hidden)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPreferred(boolean preferred)(Code)(Java Doc)
public void setShortDescription(String text)(Code)(Java Doc)
public void setValue(String attributeName, Object value)(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.