Java Doc for LiveUnit.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » insync » live » 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.insync.live 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.insync.live.LiveUnit

LiveUnit
public class LiveUnit implements Unit,DesignContext,FacesDesignContext(Code)

author:
   Carl Quinn

Inner Class :public static class ClipImage

Field Summary
final static  StringFlavorMime
    
 ContextMethodHelpercontextMethodHelper
    
protected  FileObjectfile
    
final static  DataFlavorflavor
    
protected  booleanhasResurectedSinceInstantiated
    
protected  booleanitemAffected
    
final protected  IdentityHashMapliveBeanHash
    
final protected  ArrayListliveBeanList
    
protected  FacesModelmodel
    
final protected static  ObjectnullDesignInfoMarker
     Marker object used to indicate that an entry in designInfos is null, since we cannot store null into a map.
final protected  SourceLiveRootrootContainer
    
protected  BeansUnitsourceUnit
    
 HashMapuserData
     User data managed and persisted by this context.

Constructor Summary
public  LiveUnit(FacesModel model, BeansUnit sourceUnit, FileObject file)
    

Method Summary
public  voidaddDesignContextListener(DesignContextListener listener)
    
public  StringaddResource(URL resource, boolean copy)
    
public  booleancanCreateBean(String type, DesignBean parent, Position pos)
    
public  booleancanCreateFacet(String facet, String type, DesignBean parent)
    
public  booleancanMoveBean(DesignBean lbean, DesignBean newParent, Position pos)
    
public  MapconvertCssStyleToMap(String cssStyle)
    
public  StringconvertMapToCssStyle(Map cssStyleMap)
    
public  TransferablecopyBeans(DesignBean[] beans)
    
public  DesignBeancreateBean(String type, DesignBean parent, Position pos)
    
protected  SourceDesignBeancreateBeanOrFacet(String type, DesignBean parent, String facet, Position pos)
     Creates a DesignBean given type, parent and facet spec.
public  booleancreateContextMethod(ContextMethod method)
    

Creates a new public method in the source code for this DesignContext.

protected  SourceDesignBeancreateDesignBean(SourceDesignBean.ClipImage image, DesignBean parent, Position pos)
     Creates a DesignBean given a clipboard image, parent and facet spec.
protected  SourceDesignBean[]createDesignBeans(ClipImage image, DesignBean parent, Position pos)
     Creates an array of DesignBeans given a clipboard image, parent and facet spec.
public  DesignBeancreateFacet(String facet, String type, DesignBean parent)
    
public  booleandeleteBean(DesignBean lbean)
    
public  voiddestroy()
    
public  voiddumpTo(PrintWriter w)
    
protected  voidfireBeanChanged(DesignBean bean)
     Fire a bean changed event to all of our listeners.
protected  voidfireBeanCreated(DesignBean bean)
     Fire a bean created event to all of our listeners.
protected  voidfireBeanDeleted(DesignBean bean)
     Fire a bean deleted event to all of our listeners.
protected  voidfireBeanInstanceNameChanged(DesignBean bean, String oldName)
     Fire a bean instance name changed event to all of our listeners.
protected  voidfireBeanMoved(DesignBean bean, DesignBean oldParent, Position pos)
     Fire a bean moved event to all of our listeners.
public  voidfireContextActivated()
     Fire a context activated event to all of our listeners.
 voidfireContextChanged()
     Fire a context changed event to all of our listeners.
public  voidfireContextDeactivated()
     Fire a context deactivated event to all of our listeners.
protected  voidfireEventChanged(DesignEvent event)
     Fire a property changed event to all of our listeners.
protected  voidfirePropertyChanged(DesignProperty prop, Object oldValue)
     Fire a property changed event to all of our listeners.
public static  voidflushCaches()
     Flush our design info cache, as well as the Introspector one.
protected  voidflushContextData()
     Flush our user data map to our underlying project item.
public static  voidflushFromCaches(Class clz)
    
public  DesignBeangetBeanByName(String name)
    
public  DesignBeangetBeanEquivalentTo(DesignBean lookFor)
    
public  DesignBeangetBeanForInstance(Object instance)
    
public  DesignBean[]getBeans()
    
public  ArrayListgetBeansList()
     Return a list of the DesignBeans.
public  DesignBean[]getBeansOfType(Class type)
    
public  BeansUnitgetBeansUnit()
    
public  StringgetBindingExpr(DesignBean toBean, String subExpr)
    
public  StringgetBindingExpr(DesignBean toBean)
    
public  ObjectgetContextData(String key)
    
public  longgetContextGeneration()
     Return the generation id for the current context. Each contextChanged will create a new generation of beans.
public  ContextMethodgetContextMethod(String methodName, Class[] parameterTypes)
     Returns a ContextMethod object describing the public method with the specified name and parameter types.
public  ContextMethod[]getContextMethods()
     Returns a set of ContextMethod objects describing the public methods declared on this DesignContext (source file).
public  ImagegetCssPreviewImage(String cssStyle, String[] cssStyleClasses, com.sun.rave.designtime.markup.MarkupDesignBean bean, int width, int height)
    
public static  Customizer2getCustomizer(String classname)
    
public  StringgetDescription()
    
public  DesignBeangetDesignBean(Bean bean)
     Get the DesignBean that is managing a given java source bean.
public  DesignContextListener[]getDesignContextListeners()
    
public  DesignInfogetDesignInfo(Class beanClass, ClassLoader classLoder)
     Get the DesignInfo for a bean, returning the same instance for the same class, with the exception that if a flushCaches() or flushFromCache() occurs.
public  StringgetDisplayName()
    
public  ParserAnnotation[]getErrors()
    
public  FacesContextgetFacesContext()
    
public  StringgetHelpKey()
    
public  ImagegetLargeIcon()
    
public  FacesModelgetModel()
    
public  DesignProjectgetProject()
    
public  StringgetReferenceName()
    
public  DesignBeangetRootContainer()
    
public  ImagegetSmallIcon()
    
public  BeansUnitgetSourceUnit()
    
public  StategetState()
    
protected  BeansDesignBeaninstantiateDesignBean(BeanInfo beanInfo, DesignInfo liveBeanInfo, SourceDesignBean parent, Object instance, Bean bean)
    
public static  booleanisCssPositionable(DesignBean bean)
     Return true iff the given component is positionable via CSS (e.g.
public static  booleanisTrayBean(DesignBean bean)
     Return true iff the given component should be shown in the tray.
Parameters:
  bean - The bean to be checked true iff the bean declares that it is a "tray" component!!CQ TODO: need a better name.
public  booleanisValidBindingTarget(DesignBean toBean)
    
public static  booleanisVisualBean(DesignBean bean)
     Return true iff the given component is visual.
public  booleanisWriteLocked()
    
public  booleanmoveBean(DesignBean lbean, DesignBean newParent, Position pos)
    
protected  SourceDesignBeannewDesignBean(Class beanClass, BeanInfo beanInfo, DesignInfo liveBeanInfo, DesignBean parent, String facet, Position pos, String instanceName)
    
protected  SourceDesignBeannewDesignBean(String type, DesignBean parent, String facet, Position pos, String instanceName)
    
public  DesignBean[]pasteBeans(Transferable persistData, DesignBean parent, Position pos)
    
protected  voidpopulateDesignBean(SourceDesignBean.ClipImage image)
    
public  voidreadLock()
    
public  voidreadUnlock()
    
public static  voidregisterCustomizer(String classname, Customizer2 lc)
    
protected  voidremoveBean(DesignBean lbean)
    
public  booleanremoveContextMethod(ContextMethod method)
    

Removes an existing method from the source code for this DesignContext.

public  voidremoveDesignContextListener(DesignContextListener listener)
    
public  booleanreorderBeanChidren(DesignBean parentBean, int[] perm)
    
public  voidresetFacesContextCurrentInstance()
    
public  ObjectresolveBindingExpr(String expr)
    
public  ResolveResultresolveBindingExprToBean(String expr)
    
public  URLresolveResource(String resource)
    
 voidresurrect()
    
public  voidsetContextData(String key, Object data)
    
public  voidsetFacesContextCurrentInstance()
    
public  booleansync()
    
public  StringtoString()
    
public  ContextMethodupdateContextMethod(ContextMethod method)
    

Updates an existing public method in the source code for this DesignContext.

public  voidwriteLock(UndoEvent event)
    
public  booleanwriteUnlock(UndoEvent event)
    

Field Detail
FlavorMime
final static String FlavorMime(Code)



contextMethodHelper
ContextMethodHelper contextMethodHelper(Code)



file
protected FileObject file(Code)



flavor
final static DataFlavor flavor(Code)



hasResurectedSinceInstantiated
protected boolean hasResurectedSinceInstantiated(Code)



itemAffected
protected boolean itemAffected(Code)



liveBeanHash
final protected IdentityHashMap liveBeanHash(Code)



liveBeanList
final protected ArrayList liveBeanList(Code)



model
protected FacesModel model(Code)



nullDesignInfoMarker
final protected static Object nullDesignInfoMarker(Code)
Marker object used to indicate that an entry in designInfos is null, since we cannot store null into a map.



rootContainer
final protected SourceLiveRoot rootContainer(Code)



sourceUnit
protected BeansUnit sourceUnit(Code)



userData
HashMap userData(Code)
User data managed and persisted by this context.




Constructor Detail
LiveUnit
public LiveUnit(FacesModel model, BeansUnit sourceUnit, FileObject file)(Code)
Construct an BeansUnit from an existing source file
Parameters:
  model -
Parameters:
  sourceUnit -
Parameters:
  file -




Method Detail
addDesignContextListener
public void addDesignContextListener(DesignContextListener listener)(Code)



addResource
public String addResource(URL resource, boolean copy) throws IOException(Code)



canCreateBean
public boolean canCreateBean(String type, DesignBean parent, Position pos)(Code)



canCreateFacet
public boolean canCreateFacet(String facet, String type, DesignBean parent)(Code)



canMoveBean
public boolean canMoveBean(DesignBean lbean, DesignBean newParent, Position pos)(Code)



convertCssStyleToMap
public Map convertCssStyleToMap(String cssStyle)(Code)



convertMapToCssStyle
public String convertMapToCssStyle(Map cssStyleMap)(Code)



copyBeans
public Transferable copyBeans(DesignBean[] beans)(Code)



createBean
public DesignBean createBean(String type, DesignBean parent, Position pos)(Code)



createBeanOrFacet
protected SourceDesignBean createBeanOrFacet(String type, DesignBean parent, String facet, Position pos)(Code)
Creates a DesignBean given type, parent and facet spec. Gathers needed info and calls newDesignBean within a write lock to do the work.
Parameters:
  type -
Parameters:
  parent -
Parameters:
  facet -
Parameters:
  pos -



createContextMethod
public boolean createContextMethod(ContextMethod method) throws IllegalArgumentException(Code)

Creates a new public method in the source code for this DesignContext. The passed ContextMethod must specify at least the designContext and methodName, and must not describe a method that already exists in the DesignContext source. To update an existing method, use the updateContextMethod() method. These methods are separated to help prevent accidental method overwriting. The following table details how the specified ContextMethod is used for this method:

designContext REQUIRED. Must match the DesignContext that is being called. This is essentially a safety precaution to help prevent accidental method overwriting.
methodName REQUIRED. Defines the method name.
parameterTypes Defines the parameter types. If null or an empty array is specified, the created method will have no arguments.
parameterNames Defines the parameter names. If null or an empty array is specified (or an array shorter than the parameterTypes array), default argument names will be used.
returnType Defines the return type. If null is specified, the created method will have a void return type.
throwsTypes Defines the throws clause types. If null is specified, the created method will have no throws clause.
bodySource Defines the method body Java source code. If null is specified, the method will have an empty body. If the value is non-null, this must represent valid (compilable) Java source code.
commentText Defines the comment text above the newly created method. If null is specified, no comment text will be included.


Parameters:
  method - A ContextMethod object representing the desired public method. true if the method was created successfully, or false ifit was not.
throws:
  IllegalArgumentException - If there was a syntax error in any of the ContextMethodsettings, or if the ContextMethod represents a method that already exists on thisDesignContext (updateContextMethod() must be used in this case to avoidaccidental method overwriting)



createDesignBean
protected SourceDesignBean createDesignBean(SourceDesignBean.ClipImage image, DesignBean parent, Position pos)(Code)
Creates a DesignBean given a clipboard image, parent and facet spec.
Parameters:
  image -
Parameters:
  parent -
Parameters:
  pos -



createDesignBeans
protected SourceDesignBean[] createDesignBeans(ClipImage image, DesignBean parent, Position pos)(Code)
Creates an array of DesignBeans given a clipboard image, parent and facet spec.
Parameters:
  image -
Parameters:
  parent -
Parameters:
  pos -



createFacet
public DesignBean createFacet(String facet, String type, DesignBean parent)(Code)



deleteBean
public boolean deleteBean(DesignBean lbean)(Code)



destroy
public void destroy()(Code)



dumpTo
public void dumpTo(PrintWriter w)(Code)



fireBeanChanged
protected void fireBeanChanged(DesignBean bean)(Code)
Fire a bean changed event to all of our listeners.
Parameters:
  bean - The recently changed bean.



fireBeanCreated
protected void fireBeanCreated(DesignBean bean)(Code)
Fire a bean created event to all of our listeners.
Parameters:
  bean - The newly created bean.



fireBeanDeleted
protected void fireBeanDeleted(DesignBean bean)(Code)
Fire a bean deleted event to all of our listeners.
Parameters:
  bean - The recently deleted bean.



fireBeanInstanceNameChanged
protected void fireBeanInstanceNameChanged(DesignBean bean, String oldName)(Code)
Fire a bean instance name changed event to all of our listeners.
Parameters:
  bean - The recently renamed bean.
Parameters:
  oldName - The prior name of the bean.



fireBeanMoved
protected void fireBeanMoved(DesignBean bean, DesignBean oldParent, Position pos)(Code)
Fire a bean moved event to all of our listeners.
Parameters:
  bean - The recently moved bean.
Parameters:
  oldParent - The bean's old parent.
Parameters:
  pos - The new position of the bean.



fireContextActivated
public void fireContextActivated()(Code)
Fire a context activated event to all of our listeners. This is public so that FacesModel can call this



fireContextChanged
void fireContextChanged()(Code)
Fire a context changed event to all of our listeners.



fireContextDeactivated
public void fireContextDeactivated()(Code)
Fire a context deactivated event to all of our listeners. This is public so that FacesModel can call this



fireEventChanged
protected void fireEventChanged(DesignEvent event)(Code)
Fire a property changed event to all of our listeners.
Parameters:
  event - The recently changed event.



firePropertyChanged
protected void firePropertyChanged(DesignProperty prop, Object oldValue)(Code)
Fire a property changed event to all of our listeners.
Parameters:
  prop - The recently changed property.



flushCaches
public static void flushCaches()(Code)
Flush our design info cache, as well as the Introspector one. Care must be taken when this is done, as their are dependencies on the getDesignInfo() call to always return the same instance. There is a slight disconnect here, that if the Introspector cache is flushed, we may not be :(



flushContextData
protected void flushContextData()(Code)
Flush our user data map to our underlying project item.



flushFromCaches
public static void flushFromCaches(Class clz)(Code)

See Also:   LiveUnit.flushCaches
Parameters:
  clz - Class object to be flushed.
throws:
  NullPointerException - If the Class object is null.



getBeanByName
public DesignBean getBeanByName(String name)(Code)



getBeanEquivalentTo
public DesignBean getBeanEquivalentTo(DesignBean lookFor)(Code)



getBeanForInstance
public DesignBean getBeanForInstance(Object instance)(Code)



getBeans
public DesignBean[] getBeans()(Code)



getBeansList
public ArrayList getBeansList()(Code)
Return a list of the DesignBeans. NOTE: This returns the original list used internally - do NOT muck with it! It is intended for internal functions needing to iterate over the array contents quickly.



getBeansOfType
public DesignBean[] getBeansOfType(Class type)(Code)



getBeansUnit
public BeansUnit getBeansUnit()(Code)



getBindingExpr
public String getBindingExpr(DesignBean toBean, String subExpr)(Code)



getBindingExpr
public String getBindingExpr(DesignBean toBean)(Code)



getContextData
public Object getContextData(String key)(Code)



getContextGeneration
public long getContextGeneration()(Code)
Return the generation id for the current context. Each contextChanged will create a new generation of beans. ContextListeners can use this generation id to coordinate changes; for example, two cooperating views can tell each other about the contextChanged() messages they receive to ensure that both have handled this contextChange before doing some particular action. This means that a listener may receive a contextChanged message multiple times, and by looking at the generation (and remembering which generation they most recently processed) they can avoid processing the same update more than once. The most recent generation we've notified ContextListenersof via contextChanged(DesignContext).



getContextMethod
public ContextMethod getContextMethod(String methodName, Class[] parameterTypes)(Code)
Returns a ContextMethod object describing the public method with the specified name and parameter types. Returns null if no public method exists on this DesignContext with the specified name and parameter types.
Parameters:
  methodName - The method name of the desired context method
Parameters:
  parameterTypes - The parameter types of the desired context method A ContextMethod object describing the requested method, or null if nomethod exists with the specified name and parameter types



getContextMethods
public ContextMethod[] getContextMethods()(Code)
Returns a set of ContextMethod objects describing the public methods declared on this DesignContext (source file). An array of ContextMethod objects, describing the public methods declared onthis DesignContext (source file)



getCssPreviewImage
public Image getCssPreviewImage(String cssStyle, String[] cssStyleClasses, com.sun.rave.designtime.markup.MarkupDesignBean bean, int width, int height)(Code)



getCustomizer
public static Customizer2 getCustomizer(String classname)(Code)

Parameters:
  classname -



getDescription
public String getDescription()(Code)



getDesignBean
public DesignBean getDesignBean(Bean bean)(Code)
Get the DesignBean that is managing a given java source bean. Note: this method is specific to BeansDesignBean the DesignBean that is managing a given java source bean.



getDesignContextListeners
public DesignContextListener[] getDesignContextListeners()(Code)



getDesignInfo
public DesignInfo getDesignInfo(Class beanClass, ClassLoader classLoder)(Code)
Get the DesignInfo for a bean, returning the same instance for the same class, with the exception that if a flushCaches() or flushFromCache() occurs. The code here is very similar to java.beans.Introspector



getDisplayName
public String getDisplayName()(Code)



getErrors
public ParserAnnotation[] getErrors()(Code)



getFacesContext
public FacesContext getFacesContext()(Code)



getHelpKey
public String getHelpKey()(Code)



getLargeIcon
public Image getLargeIcon()(Code)



getModel
public FacesModel getModel()(Code)



getProject
public DesignProject getProject()(Code)



getReferenceName
public String getReferenceName()(Code)



getRootContainer
public DesignBean getRootContainer()(Code)



getSmallIcon
public Image getSmallIcon()(Code)



getSourceUnit
public BeansUnit getSourceUnit()(Code)



getState
public State getState()(Code)



instantiateDesignBean
protected BeansDesignBean instantiateDesignBean(BeanInfo beanInfo, DesignInfo liveBeanInfo, SourceDesignBean parent, Object instance, Bean bean)(Code)



isCssPositionable
public static boolean isCssPositionable(DesignBean bean)(Code)
Return true iff the given component is positionable via CSS (e.g. using CSS2 CSS positioning via a style attribute). If a component does not specify a positioning attribute, then it is considered positionable iff it is a visual component (see isVisualBean());
See Also:   isVisualBean
Parameters:
  bean - The bean to be checked true iff the bean is "positionable"



isTrayBean
public static boolean isTrayBean(DesignBean bean)(Code)
Return true iff the given component should be shown in the tray.
Parameters:
  bean - The bean to be checked true iff the bean declares that it is a "tray" component!!CQ TODO: need a better name. What the heck is a tray?



isValidBindingTarget
public boolean isValidBindingTarget(DesignBean toBean)(Code)



isVisualBean
public static boolean isVisualBean(DesignBean bean)(Code)
Return true iff the given component is visual. A nonvisual bean that is a UIComponent will be still be rendered as part of the page (think of the stylesheet component for example), but it will appear in the tray and can not be manipulated as a visual component in the designer.
Parameters:
  bean - The bean to be checked true iff the bean is "visual"



isWriteLocked
public boolean isWriteLocked()(Code)



moveBean
public boolean moveBean(DesignBean lbean, DesignBean newParent, Position pos)(Code)



newDesignBean
protected SourceDesignBean newDesignBean(Class beanClass, BeanInfo beanInfo, DesignInfo liveBeanInfo, DesignBean parent, String facet, Position pos, String instanceName)(Code)
Perform the actual construction of the DesignBean implementation, including parent wiring for both the DesignBean hierarchy as well as the instance hierarchy
Parameters:
  beanClass -
Parameters:
  beanInfo -
Parameters:
  liveBeanInfo -
Parameters:
  parent -
Parameters:
  facet -
Parameters:
  pos -



newDesignBean
protected SourceDesignBean newDesignBean(String type, DesignBean parent, String facet, Position pos, String instanceName) throws ClassNotFoundException(Code)
Perform the actual construction of the DesignBean implementation, including parent wiring for both the DesignBean hierarchy as well as the instance hierarchy
Parameters:
  type -
Parameters:
  parent -
Parameters:
  facet -
Parameters:
  pos -
throws:
  ClassNotFoundException -



pasteBeans
public DesignBean[] pasteBeans(Transferable persistData, DesignBean parent, Position pos)(Code)



populateDesignBean
protected void populateDesignBean(SourceDesignBean.ClipImage image)(Code)
Populate the properties of a DesignBean given a clipboard image
Parameters:
  image -



readLock
public void readLock()(Code)



readUnlock
public void readUnlock()(Code)



registerCustomizer
public static void registerCustomizer(String classname, Customizer2 lc)(Code)

Parameters:
  classname -
Parameters:
  lc -



removeBean
protected void removeBean(DesignBean lbean)(Code)
Called during deletion to remove the bean from its parent & remove all the bean's persistence source
Parameters:
  lbean - The bean to remove from all containers.



removeContextMethod
public boolean removeContextMethod(ContextMethod method)(Code)

Removes an existing method from the source code for this DesignContext. The passed ContextMethod will be used to locate the desired method to remove using the designContext, methodName, and parameterTypes. No other portions of the ContextMethod are used. The following table details how the specified ContextMethod is used for this method:

designContext REQUIRED. Must match the DesignContext that is being called. This is essentially a safety precaution to help prevent accidental method removal.
methodName REQUIRED. Specifies the desired method name.
parameterTypes REQUIRED. Specifies the desired method's parameter types (if it has any). If null or an empty array is specified, the desired method is assumed to have zero arguments.
parameterNames Ignored.
returnType Ignored.
throwsTypes Ignored.
bodySource Ignored.
commentText Ignored.


Parameters:
  method - A ContextMethod object defining the method to be removed true if the method was successfully removed
exception:
  IllegalArgumentException - if the specified ContextMethod does not exist or is notpublic on this DesignContext



removeDesignContextListener
public void removeDesignContextListener(DesignContextListener listener)(Code)



reorderBeanChidren
public boolean reorderBeanChidren(DesignBean parentBean, int[] perm)(Code)



resetFacesContextCurrentInstance
public void resetFacesContextCurrentInstance()(Code)



resolveBindingExpr
public Object resolveBindingExpr(String expr)(Code)



resolveBindingExprToBean
public ResolveResult resolveBindingExprToBean(String expr)(Code)



resolveResource
public URL resolveResource(String resource)(Code)



resurrect
void resurrect()(Code)
Rebuild the entire live bean tree from underlying source beans



setContextData
public void setContextData(String key, Object data)(Code)



setFacesContextCurrentInstance
public void setFacesContextCurrentInstance()(Code)



sync
public boolean sync()(Code)



toString
public String toString()(Code)



updateContextMethod
public ContextMethod updateContextMethod(ContextMethod method) throws IllegalArgumentException(Code)

Updates an existing public method in the source code for this DesignContext. The passed ContextMethod will be used to locate the desired public method to update using the designContext, methodName, and parameterTypes. This method may only be used to update the parameterNames, returnType, throwsTypes, bodySource, or commentText. Any other changes actually constitute the creation of a new method, as they alter the method signature. To create a new method, the createContextMethod() method should be used. These operations are separated to help prevent accidental method overwriting. The following table details how the specified ContextMethod is used for this method:

designContext REQUIRED. Must match the DesignContext that is being called. This is essentially a safety precaution to help prevent accidental method overwriting.
methodName REQUIRED. Specifies the desired method name.
parameterTypes REQUIRED. Specifies the desired method's parameter types (if it has any). If null or an empty array is specified, the desired method is assumed to have zero arguments.
parameterNames Defines the parameter names. If null or an empty array is specified (or an array shorter than the parameterTypes array), default argument names will be used.
returnType Defines the method's return type. If null is specified, the method is assumed to have a void return type.
throwsTypes Defines the throws clause types. If null is specified, the resulting method will have no throws clause.
bodySource Defines the method body Java source code. If null is specified, the resulting method body will be empty. If the value is non-null, this must represent valid (compilable) Java source code. Note that a method with a non-void return type must return a value.
commentText Defines the comment text above the newly created method. If null is specified, no comment text will be included.


Parameters:
  method - The desired ContextMethod representing the method to be updated The resulting ContextMethod object (including any updates from the process)
throws:
  IllegalArgumentException - If there was a syntax error in any of the ContextMethodsettings, or if the ContextMethod does not exist in this DesignContext.



writeLock
public void writeLock(UndoEvent event)(Code)



writeUnlock
public boolean writeUnlock(UndoEvent event)(Code)



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.