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


java.lang.Object
   com.sun.rave.propertyeditors.domains.Domain
      com.sun.rave.propertyeditors.domains.AttachedDomain
         com.sun.rave.propertyeditors.domains.EditableDomain

All known Subclasses:   com.sun.rave.propertyeditors.domains.HtmlFrameTargetsDomain,  com.sun.rave.propertyeditors.domains.CharacterSetsDomain,  com.sun.rave.propertyeditors.domains.DateFormatPatternsDomain,  com.sun.rave.propertyeditors.domains.MimeTypesDomain,
EditableDomain
abstract public class EditableDomain extends AttachedDomain (Code)
Specialized domain which may be extended by the addition and re-ordering of elements. Added elements and information about order are stored in one of three contexts: the design context, the project context, or the IDE context. By default, an editable domain contains only its pre-defined elements in their pre-defined order. Any changes made are "permanent" within the context defined by the domain. A storage context must be specified when an instance of this class is created.

Editable domains impose the restriction that their elements must all contain values of the same final type. This is in part to facilitate user editing of values in the IDE, in part to make storage of elements more predictable. A value class must be specified when an instance of this class is created. Elements added whose value is not of this type will be rejected.

Nota Bene: Currently only the following value classes will be stored correctly, due to limitations in the design-time support for data storage:

  • java.lang.String
  • java.lang.Integer
  • java.util.Date

Inner Class :abstract static class StorageProxy
Inner Class :static class StringStorageProxy extends StorageProxy
Inner Class :static class IntegerStorageProxy extends StorageProxy
Inner Class :static class DateStorageProxy extends StorageProxy

Field Summary
protected static  intDESIGN_CONTEXT_STORAGE
    
protected static  intIDE_STORAGE
    
protected static  intPROJECT_STORAGE
    
protected  ArrayListelements
    

Constructor Summary
protected  EditableDomain(int storageScope)
     Creates a new instance of ExtensibleDomain, for elements whose values are of type java.lang.String, for which elements will be stored in the scope specified.
protected  EditableDomain(int storageScope, Class elementValueClass)
     Creates a new instance of ExtensibleDomain, for elements whose values are of the class specified, and for which elements will be stored in the scope specified.

Method Summary
public  voidaddElement(Element element)
     Add an element to the end of this domain's list of elements.
public  voidaddElementAt(int index, Element element)
     Add an element to this domain at the index specified.
static  voidappendEncoded(StringBuffer buffer, String str)
     Utility method to encode a string by escaping "=", "," and "%" using HTTP-style escape sequences.
static  Stringdecode(String str)
     Utility method to decode a string by unescaping "=", "," and "%".
public  ElementgetElementAt(int index)
     Returns the element at the index specified.
public  ClassgetElementValueClass()
     Returns the class of all element values in this domain.
public  Element[]getElements()
     Returns an array of the elements currently contained in this domain.
public  intgetSize()
     Returns the number of elements currently in this domain.
 voidrefreshStorageProxy()
    
public  ElementremoveElementAt(int index)
     Remove the element at the index specified, and return it.
public  voidsetDesignProperty(DesignProperty designProperty)
     Set the DesignProperty with which this domain is associated, and check for a previously stored proxy for this domain's elements.
public  ElementsetElementAt(int index, Element element)
     Replace the element at the index specified with the element specified.

Field Detail
DESIGN_CONTEXT_STORAGE
protected static int DESIGN_CONTEXT_STORAGE(Code)



IDE_STORAGE
protected static int IDE_STORAGE(Code)



PROJECT_STORAGE
protected static int PROJECT_STORAGE(Code)



elements
protected ArrayList elements(Code)




Constructor Detail
EditableDomain
protected EditableDomain(int storageScope)(Code)
Creates a new instance of ExtensibleDomain, for elements whose values are of type java.lang.String, for which elements will be stored in the scope specified. If the storage scope constant is not recognized, storage will default to the design context.



EditableDomain
protected EditableDomain(int storageScope, Class elementValueClass)(Code)
Creates a new instance of ExtensibleDomain, for elements whose values are of the class specified, and for which elements will be stored in the scope specified. If the storage scope constant is not recognized, storage will default to the design context.




Method Detail
addElement
public void addElement(Element element)(Code)
Add an element to the end of this domain's list of elements.



addElementAt
public void addElementAt(int index, Element element)(Code)
Add an element to this domain at the index specified. Elements at this and subsequent indexes are all shifted "down" one to make room for the new element.



appendEncoded
static void appendEncoded(StringBuffer buffer, String str)(Code)
Utility method to encode a string by escaping "=", "," and "%" using HTTP-style escape sequences.



decode
static String decode(String str)(Code)
Utility method to decode a string by unescaping "=", "," and "%".



getElementAt
public Element getElementAt(int index)(Code)
Returns the element at the index specified. If the index is out of bounds or no element exists at the index specified, returns null.



getElementValueClass
public Class getElementValueClass()(Code)
Returns the class of all element values in this domain. Normally, a domain may contain elements of any value. Editable domains require that their elements' values be all of the same type.



getElements
public Element[] getElements()(Code)
Returns an array of the elements currently contained in this domain.



getSize
public int getSize()(Code)
Returns the number of elements currently in this domain.



refreshStorageProxy
void refreshStorageProxy()(Code)



removeElementAt
public Element removeElementAt(int index)(Code)
Remove the element at the index specified, and return it. Subsequent elements are shifted "up" one to vill the void. Returns null if there is no element at the index specified, or if the index is out of bounds.



setDesignProperty
public void setDesignProperty(DesignProperty designProperty)(Code)
Set the DesignProperty with which this domain is associated, and check for a previously stored proxy for this domain's elements. If one is found, then update this domain's elements to reflect what was found in storage.
Parameters:
  designProperty - The new associated DesignProperty



setElementAt
public Element setElementAt(int index, Element element)(Code)
Replace the element at the index specified with the element specified. Returns the element previously at the index specified, null if there wasn't one.



Fields inherited from com.sun.rave.propertyeditors.domains.AttachedDomain
protected DesignProperty designProperty(Code)(Java Doc)

Methods inherited from com.sun.rave.propertyeditors.domains.AttachedDomain
public DesignProperty getDesignProperty()(Code)(Java Doc)
public void setDesignProperty(DesignProperty designProperty)(Code)(Java Doc)

Fields inherited from com.sun.rave.propertyeditors.domains.Domain
final static Bundle bundle(Code)(Java Doc)

Methods inherited from com.sun.rave.propertyeditors.domains.Domain
public String getDisplayName()(Code)(Java Doc)
public Element getElementAt(int index)(Code)(Java Doc)
abstract public Element[] getElements()(Code)(Java Doc)
public int getIndexOf(Element element)(Code)(Java Doc)
public String getPropertyHelpId()(Code)(Java Doc)
public int getSize()(Code)(Java Doc)
public boolean isRequired()(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.