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


java.lang.Object
   org.netbeans.modules.form.ResourceSupport

ResourceSupport
public class ResourceSupport (Code)
This class manages resources of a form (i.e. property values stored externally as resources). It communicates with the app framework support via the ResourceService interface. It also takes care of the automatic internationalization backed by the i18n/form module.
author:
   Tomas Pavek


Field Summary
final static  intAUTO_I18N
    
final static  intAUTO_INJECTION
    
final static  intAUTO_OFF
    
final static  intAUTO_RESOURCING
    
final static  FormProperty.FilterCOPIED_PROPERTY_FILTER
    
final static  StringPROP_AUTO_RESOURCING
    
final static  StringPROP_AUTO_SET_COMPONENT_NAME
    
final static  StringPROP_FORM_BUNDLE
    

Constructor Summary
 ResourceSupport(FormModel formModel)
    

Method Summary
public static  voidcomponentRenamed(RADComponent metacomp, String oldName, String newName)
     Reacts on component's variable renaming.
 Node.Property[]createFormProperties()
    
public static  ResourcePanelcreateResourcePanel(FormProperty property, boolean force)
    
public static  ResourceValuefindResource(String key, FormProperty property)
    
public static  ResourceValuefindResource(FormModel formModel, String key, Class valueType)
    
public static  voidformMoved(FormModel formModel, FileObject oldFolder)
    
public static  voidformRenamed(FormModel formModel, String oldName)
    
static  StringgetDefaultKey(FormProperty prop, int type)
    
 StringgetDesignLocale()
    
public static  List<URL>getFilesForContentChangeBackup(FormModel formModel)
    
public static  List<URL>getFilesForFormMoveBackup(FormModel formModel, FileObject oldFolder)
    
Parameters:
  formModel -
Parameters:
  oldFolder - Resource files to be affected by moving the form.
public static  List<URL>getFilesForFormRenameBackup(FormModel formModel)
    
public static  StringgetInjectionCode(RADComponent metacomp, String compGenName)
    
static  String[]getPropertyAttrNames()
    
 voidinit()
    
public  booleanisDefaultInternationalizableProject()
    
public static  booleanisExcludedProperty(FormProperty prop)
     Returns whether the given property is excluded from automatic resourcing, i.e.
public static  booleanisInjectedProperty(FormProperty prop)
    
public static  booleanisPropertyForResourcing(FormProperty prop)
    
public static  booleanisResourceableProperty(FormProperty prop)
     true if the property is capable of holding resource values (i.e.
public static  voidloadInjectedResources(RADComponent metacomp)
    
public static  ObjectmakeResource(Object value, FormProperty property)
     Converts given value to a resource.
 voidprepareNewForm()
     Prepares a newly created form.
public  booleanprojectUsesResources()
    
public  booleanprojectWantsUseResources()
    
public static  voidsetExcludedProperty(FormProperty prop, boolean excl)
    
public static  voidswitchComponentToResources(RADComponent metacomp)
     Changes all component's modified properties to resources or i18n.
public static  voidupdateStoredValue(Object oldValue, Object newValue, FormProperty property)
     Reacts on a change in a resourced/internationalized property value. Makes sure that added/changed/removed value is updated in the properties file.

Field Detail
AUTO_I18N
final static int AUTO_I18N(Code)



AUTO_INJECTION
final static int AUTO_INJECTION(Code)



AUTO_OFF
final static int AUTO_OFF(Code)



AUTO_RESOURCING
final static int AUTO_RESOURCING(Code)



COPIED_PROPERTY_FILTER
final static FormProperty.Filter COPIED_PROPERTY_FILTER(Code)



PROP_AUTO_RESOURCING
final static String PROP_AUTO_RESOURCING(Code)



PROP_AUTO_SET_COMPONENT_NAME
final static String PROP_AUTO_SET_COMPONENT_NAME(Code)



PROP_FORM_BUNDLE
final static String PROP_FORM_BUNDLE(Code)




Constructor Detail
ResourceSupport
ResourceSupport(FormModel formModel)(Code)




Method Detail
componentRenamed
public static void componentRenamed(RADComponent metacomp, String oldName, String newName)(Code)
Reacts on component's variable renaming. All automatically created keys that use the name of the component will be changed to the new name. Also the 'name' property of visual components is updated.



createFormProperties
Node.Property[] createFormProperties()(Code)



createResourcePanel
public static ResourcePanel createResourcePanel(FormProperty property, boolean force)(Code)



findResource
public static ResourceValue findResource(String key, FormProperty property)(Code)



findResource
public static ResourceValue findResource(FormModel formModel, String key, Class valueType)(Code)



formMoved
public static void formMoved(FormModel formModel, FileObject oldFolder)(Code)



formRenamed
public static void formRenamed(FormModel formModel, String oldName)(Code)



getDefaultKey
static String getDefaultKey(FormProperty prop, int type)(Code)



getDesignLocale
String getDesignLocale()(Code)



getFilesForContentChangeBackup
public static List<URL> getFilesForContentChangeBackup(FormModel formModel)(Code)

Parameters:
  formModel - Resource files to be affected by a change inside the form (e.g.by renaming a component).



getFilesForFormMoveBackup
public static List<URL> getFilesForFormMoveBackup(FormModel formModel, FileObject oldFolder)(Code)

Parameters:
  formModel -
Parameters:
  oldFolder - Resource files to be affected by moving the form. URL of annon-existing file indicates the file will be created.



getFilesForFormRenameBackup
public static List<URL> getFilesForFormRenameBackup(FormModel formModel)(Code)

Parameters:
  formModel - Resource files to be affected by renaming a form class.



getInjectionCode
public static String getInjectionCode(RADComponent metacomp, String compGenName)(Code)



getPropertyAttrNames
static String[] getPropertyAttrNames()(Code)



init
void init()(Code)



isDefaultInternationalizableProject
public boolean isDefaultInternationalizableProject()(Code)



isExcludedProperty
public static boolean isExcludedProperty(FormProperty prop)(Code)
Returns whether the given property is excluded from automatic resourcing, i.e. marked as it should intentionally hold a plain value. This can happen when the user explicitly chooses not to use resource for given property value, or there can be properties excluded by default (e.g. 'name' property of components). NOTE: This method is usaful only for properties that can be resourced, it should not be called for properties that can't hold resource values.
See Also:   isResourceableProperty true if the property is marked as excluded from automaticresourcing (i.e. is expected to hold a plain value)



isInjectedProperty
public static boolean isInjectedProperty(FormProperty prop)(Code)



isPropertyForResourcing
public static boolean isPropertyForResourcing(FormProperty prop)(Code)
true if the property should be resourced if there is a chance to



isResourceableProperty
public static boolean isResourceableProperty(FormProperty prop)(Code)
true if the property is capable of holding resource values (i.e. FormDesignValue)



loadInjectedResources
public static void loadInjectedResources(RADComponent metacomp)(Code)



makeResource
public static Object makeResource(Object value, FormProperty property)(Code)
Converts given value to a resource. Called always when a component property is being set. This method is not called during undo/redo.
Parameters:
  value - new value being set to the property (can be FormProperty.ValueWithEditor)
Parameters:
  property - the property to which the value is going to be set (stillcontains the previous value)



prepareNewForm
void prepareNewForm()(Code)
Prepares a newly created form.



projectUsesResources
public boolean projectUsesResources()(Code)



projectWantsUseResources
public boolean projectWantsUseResources()(Code)



setExcludedProperty
public static void setExcludedProperty(FormProperty prop, boolean excl)(Code)



switchComponentToResources
public static void switchComponentToResources(RADComponent metacomp)(Code)
Changes all component's modified properties to resources or i18n. Called when a copy of a component is created. This method is not called during undo/redo.



updateStoredValue
public static void updateStoredValue(Object oldValue, Object newValue, FormProperty property)(Code)
Reacts on a change in a resourced/internationalized property value. Makes sure that added/changed/removed value is updated in the properties file. (This method is called only for component properties, so it must scan the value for nested properties.)



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.