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


java.lang.Object
   org.netbeans.modules.visualweb.insync.Model
      org.netbeans.modules.visualweb.insync.models.FacesModel

All known Subclasses:   org.netbeans.modules.visualweb.designer.jsf.JsfSupportProviderImpl,  org.netbeans.modules.visualweb.designer.jsf.DndSupport,
FacesModel
public class FacesModel extends Model (Code)
Representation of a complete JSF design-time model, including the composited insync units and netbeans wiring.
author:
   Tor Norbye
author:
   Carl Quinn

Inner Class :public static class FacesFactory implements Model.Factory
Inner Class :public static class BeansFactory implements Model.Factory
Inner Class :public interface JsfSupport
Inner Class :public interface JsfSupportProvider
Inner Class :public static class DummyJsfSupport implements JsfSupport

Field Summary
final public static  FacesModel[]EMPTY_ARRAY
    
static  String[]defaultEventSetNames
    
protected  FacesModelSetfacesModelSet
    
protected  booleanfirstSyncCompleted
    
protected  LiveUnitWrapperliveUnitWrapper
    
public static  booleanmanagedBeanIsPage
    
public static  StringmanagedBeanNames
    
public static  ClassmanagedBeanScannerTypes
    
public static  ManagedBean.ScopemanagedBeanScopes
    
protected  booleanreportMustBeAbstractPageSubclassError
    

Constructor Summary
 FacesModel(FacesModelSet owner, FileObject file)
    

Method Summary
public  voidaddXRefAccessors()
    
public  voidbeanCreated(DesignBean dbean)
     TODO - move to DesignerUtils! Give the bean's DesignInfo a chance to annotate the bean after it has been created.
public  voidbeanPasted(DesignBean dbean)
     Give the bean's DesignInfo a chance to annotate the bean after it has been pasted.
public  voidclearHtml()
    
public  booleancreateEventHandler(DesignEvent event)
     Open the handler method for a given event in the editor, generating the default if needed.
public  voiddestroy()
    
public  voidfileRenamed(String oldName, String newName, String ext, FileObject fo, boolean remove)
     When the file is renamed, the java class and other things may have changed in an unopened file.
public  voidflushImpl()
    
public  voidflushNonJavaUnitsImpl()
     Should only be used if you are certain this will not cause a problem.
final static  StringgetBasePathForJava(FileObject javaFile)
    
final static  StringgetBasePathForJsp(FileObject jspFile)
    
public  StringgetBeanName()
     Get the logical bean name for this model.
final public static  StringgetBeanNameForJava(FileObject javaFile)
    
final public static  StringgetBeanNameForJsp(FileObject jspFile)
    
public  BeansUnitgetBeansUnit()
     Get the beans Unit for this model.
public static  DesignEventgetDefaultEvent(DesignBean lbean)
    
public  ParserAnnotation[]getErrors()
    
static  intgetEventIndex(EventSetDescriptor[] eventSets, String eventSetName)
    
public static  FacesModelgetFacesModel(FileObject file)
    
public  FacesModelSetgetFacesModelSet()
     Return the FacesModelSet associated with this Model.
public  FacesPageUnitgetFacesUnit()
     Get the faces Unit for this model.
public  ElementgetHtmlBody()
    
public  org.w3c.dom.DocumentgetHtmlDom()
    
public  DocumentFragmentgetHtmlDomFragment()
     Return the HTML DOM associated with the source JSPX DOM returned by getDom .
public static  FacesModelgetInstance(FileObject file)
    
public static  FacesModelgetInstance(FileObject file, Class ofType)
    
public  FileObjectgetJavaFile()
     Get the FileObject for the Java file corresponding to this model.
public static  FileObjectgetJavaForJsp(FileObject file)
    
public  URIgetJavaResourceRelativeUri()
     Returns a URI object representing the project resource for the page I represent.
public  JavaUnitgetJavaUnit()
     Get the java Unit for this model.
public  JsfSupportgetJsfSupport()
    
public  org.w3c.dom.DocumentgetJspDom()
     Get the document associated with this webform.
final public static  FileObjectgetJspForJava(FileObject javaFile)
    
public synchronized  LiveUnitgetLiveUnit()
     Get the live Unit for this model.
public  ManagedBean.ScopegetManagedBeanEntryScope()
    
public  FileObjectgetMarkupFile()
     Retrieve the FileObject for the markup portion of this model.
public  URIgetMarkupResourceRelativeUri()
     Returns a URI object representing the project resource for the page I represent.
public  MarkupUnitgetMarkupUnit()
     Get the markup source Unit for this model.
public  DesignBeangetRootBean()
    
public  ManagedBean.ScopegetScope()
    
public  ManagedBean.ScopegetScope(JavaClass type)
    
public  UnitgetTopmostUnit()
    
public  UndoManagergetUndoManager()
    
public static  ArrayListgetVisibleEventsWithHandlerNames(DesignBean lbean)
     Return an Array with intermixed DesignEvent, String entries.
public  booleanisActivated()
    
public  booleanisBusted()
    
public  booleanisInRequestScope()
    
public  booleanisPageBean()
    
public  booleanisValid()
    
public  booleanisWriteLocked()
    
public  voidlinkBeans(DesignBean target, DesignBean bean)
     Link the given bean to the given target bean.
public  voidopenDefaultHandler()
     Open the default "handler" for the unit itself.
public  voidopenDefaultHandler(DesignBean lbean)
     Open the default "handler" for a given bean.
public  voidopenEventHandler(DesignEvent event)
    
 voidpositionTheCursor(Method m, boolean inserted)
     Position the cursor in a blank line after the comment if the method is newly inserted.
public  voidrefresh(boolean deep)
     XXX Moved from designer/WebForm#refresh, the insync part.
public  voidrefreshAndSyncNonPageBeans(boolean deep)
    
 voidrefreshUnits(boolean immediate)
    
public  voidremoveAllBeanElReferences(String oldname)
    
public  voidresetOwner()
    
public  voidsaveUnits()
    
public  voidsetActivated(boolean activated)
     Activate/deactive the DesignContext for this faces model.
public  voidsourceUnitSaved(SourceUnit unit)
    
protected synchronized  voidsyncImpl()
     General, high-level synchronizing of this model with any potential changes in the document(s) and updating related models.
public  voidupdateAllBeanElReferences(String oldname, String newname)
    
 voidupdateClassLoader(ClassLoader cl)
     Called from ModelSet to let us know when the project class loader changes.
public  UndoEventwriteLock(String description)
    
public  voidwriteUnlock(UndoEvent event)
    

Field Detail
EMPTY_ARRAY
final public static FacesModel[] EMPTY_ARRAY(Code)



defaultEventSetNames
static String[] defaultEventSetNames(Code)



facesModelSet
protected FacesModelSet facesModelSet(Code)



firstSyncCompleted
protected boolean firstSyncCompleted(Code)



liveUnitWrapper
protected LiveUnitWrapper liveUnitWrapper(Code)



managedBeanIsPage
public static boolean managedBeanIsPage(Code)



managedBeanNames
public static String managedBeanNames(Code)



managedBeanScannerTypes
public static Class managedBeanScannerTypes(Code)



managedBeanScopes
public static ManagedBean.Scope managedBeanScopes(Code)



reportMustBeAbstractPageSubclassError
protected boolean reportMustBeAbstractPageSubclassError(Code)




Constructor Detail
FacesModel
FacesModel(FacesModelSet owner, FileObject file)(Code)
Creates a new instance of FacesModel
Parameters:
  owner - The owning ModelSet for this Model.
Parameters:
  file - The FileObject for either a page.jsp or a bean.java that is being modeled




Method Detail
addXRefAccessors
public void addXRefAccessors()(Code)



beanCreated
public void beanCreated(DesignBean dbean)(Code)
TODO - move to DesignerUtils! Give the bean's DesignInfo a chance to annotate the bean after it has been created. This should be called after the user has added the component to the webform, such as upon a drag and drop or double click gesture; it should not be called when code is creating beans such as on a webform resurrect.
Parameters:
  lbean - The recently created bean to be annotated



beanPasted
public void beanPasted(DesignBean dbean)(Code)
Give the bean's DesignInfo a chance to annotate the bean after it has been pasted. This should be called after the user has pasted the component intto the webform.
Parameters:
  lbean - The recently created bean to be annotated



clearHtml
public void clearHtml()(Code)



createEventHandler
public boolean createEventHandler(DesignEvent event)(Code)
Open the handler method for a given event in the editor, generating the default if needed.
Parameters:
  event -



destroy
public void destroy()(Code)



fileRenamed
public void fileRenamed(String oldName, String newName, String ext, FileObject fo, boolean remove)(Code)
When the file is renamed, the java class and other things may have changed in an unopened file. So it has to be synced when renamed. Needed when the document is not opened.



flushImpl
public void flushImpl()(Code)



flushNonJavaUnitsImpl
public void flushNonJavaUnitsImpl()(Code)
Should only be used if you are certain this will not cause a problem. At moment this is only used by refactoring mechanism. See the caller in ModelSet.plannedChange for more information.



getBasePathForJava
final static String getBasePathForJava(FileObject javaFile)(Code)
Return the relative path and filename base given a java project item



getBasePathForJsp
final static String getBasePathForJsp(FileObject jspFile)(Code)
Return the relative path and filename base given a jsp project item



getBeanName
public String getBeanName()(Code)
Get the logical bean name for this model. The logical bean name for this model.



getBeanNameForJava
final public static String getBeanNameForJava(FileObject javaFile)(Code)
Return the logical bean name of a jsp/java pair given a java project item



getBeanNameForJsp
final public static String getBeanNameForJsp(FileObject jspFile)(Code)
Return the logical bean name of a jsp/java pair given a jsp project item



getBeansUnit
public BeansUnit getBeansUnit()(Code)
Get the beans Unit for this model. The beans Unit for this model.



getDefaultEvent
public static DesignEvent getDefaultEvent(DesignBean lbean)(Code)
Return the default DesignEvent for the given bean
Parameters:
  lbean - The bean to look up event handler names for



getErrors
public ParserAnnotation[] getErrors()(Code)
Return the errors that are present on this model



getEventIndex
static int getEventIndex(EventSetDescriptor[] eventSets, String eventSetName)(Code)
Return the event index for the first event in an eventSet identifed by name
Parameters:
  eventSets -
Parameters:
  eventSetName -



getFacesModel
public static FacesModel getFacesModel(FileObject file)(Code)



getFacesModelSet
public FacesModelSet getFacesModelSet()(Code)
Return the FacesModelSet associated with this Model. This is a typed version of getOwner();



getFacesUnit
public FacesPageUnit getFacesUnit()(Code)
Get the faces Unit for this model. The faces Unit for this model.



getHtmlBody
public Element getHtmlBody()(Code)
Return the <body> element associated with the rendered HTML document



getHtmlDom
public org.w3c.dom.Document getHtmlDom()(Code)



getHtmlDomFragment
public DocumentFragment getHtmlDomFragment()(Code)
Return the HTML DOM associated with the source JSPX DOM returned by getDom . A DocumentFragment which represents an HTML rendered,JavaScript mutated, <f:verbatim>/<ui:tag> expandedview of the source DOM.



getInstance
public static FacesModel getInstance(FileObject file)(Code)



getInstance
public static FacesModel getInstance(FileObject file, Class ofType)(Code)



getJavaFile
public FileObject getJavaFile()(Code)
Get the FileObject for the Java file corresponding to this model. The Java file's FileObject.



getJavaForJsp
public static FileObject getJavaForJsp(FileObject file)(Code)
Return the project item for the java half of a jsp/java pair given a jsp project item



getJavaResourceRelativeUri
public URI getJavaResourceRelativeUri()(Code)
Returns a URI object representing the project resource for the page I represent. web/Page1.jsp



getJavaUnit
public JavaUnit getJavaUnit()(Code)
Get the java Unit for this model. The java Unit for this model.



getJsfSupport
public JsfSupport getJsfSupport()(Code)



getJspDom
public org.w3c.dom.Document getJspDom()(Code)
Get the document associated with this webform.



getJspForJava
final public static FileObject getJspForJava(FileObject javaFile)(Code)
Return the project item for the jsp half of a jsp/java pair given a java file object



getLiveUnit
public synchronized LiveUnit getLiveUnit()(Code)
Get the live Unit for this model. The live Unit for this model.



getManagedBeanEntryScope
public ManagedBean.Scope getManagedBeanEntryScope()(Code)



getMarkupFile
public FileObject getMarkupFile()(Code)
Retrieve the FileObject for the markup portion of this model. The FileObject for the markup portion of this model.



getMarkupResourceRelativeUri
public URI getMarkupResourceRelativeUri()(Code)
Returns a URI object representing the project resource for the page I represent. web/Page1.jsp



getMarkupUnit
public MarkupUnit getMarkupUnit()(Code)
Get the markup source Unit for this model. The markup source Unit for this model.



getRootBean
public DesignBean getRootBean()(Code)
Retrieve the DesignBeanContainer that holds the non-visual "tray" beans



getScope
public ManagedBean.Scope getScope()(Code)



getScope
public ManagedBean.Scope getScope(JavaClass type)(Code)



getTopmostUnit
public Unit getTopmostUnit()(Code)
Get the topmost Unit for this model



getUndoManager
public UndoManager getUndoManager()(Code)



getVisibleEventsWithHandlerNames
public static ArrayList getVisibleEventsWithHandlerNames(DesignBean lbean)(Code)
Return an Array with intermixed DesignEvent, String entries. Any hidden events will not be included.
Parameters:
  lbean - The bean to look up event handler method names for



isActivated
public boolean isActivated()(Code)
Return whether the given unit is activated



isBusted
public boolean isBusted()(Code)
Return whether or not this model has errors



isInRequestScope
public boolean isInRequestScope()(Code)



isPageBean
public boolean isPageBean()(Code)



isValid
public boolean isValid()(Code)



isWriteLocked
public boolean isWriteLocked()(Code)



linkBeans
public void linkBeans(DesignBean target, DesignBean bean)(Code)
Link the given bean to the given target bean. It is assumed that the bean has agreed to the link in advance via DesignInfo.canLink().
Parameters:
  target - The bean to be linked to
Parameters:
  bean - The bean to link



openDefaultHandler
public void openDefaultHandler()(Code)
Open the default "handler" for the unit itself. This is invoked for example when the user double clicks on the document itself, not on any of the components on the page.



openDefaultHandler
public void openDefaultHandler(DesignBean lbean)(Code)
Open the default "handler" for a given bean. If no event handler is available for this bean, it will open the default handler for a parent instead. If no such parent is found, it will show the declaration for the given bean.
Parameters:
  lbean - The bean to open a handler for



openEventHandler
public void openEventHandler(DesignEvent event)(Code)



positionTheCursor
void positionTheCursor(Method m, boolean inserted)(Code)
Position the cursor in a blank line after the comment if the method is newly inserted. Otherwise cursor is placed at the beginning of the first statement
Parameters:
  Method - boolean indicates if the method is newly added



refresh
public void refresh(boolean deep)(Code)
XXX Moved from designer/WebForm#refresh, the insync part. Refreshes the model



refreshAndSyncNonPageBeans
public void refreshAndSyncNonPageBeans(boolean deep)(Code)



refreshUnits
void refreshUnits(boolean immediate)(Code)



removeAllBeanElReferences
public void removeAllBeanElReferences(String oldname)(Code)

Parameters:
  oldname -



resetOwner
public void resetOwner()(Code)



saveUnits
public void saveUnits()(Code)



setActivated
public void setActivated(boolean activated)(Code)
Activate/deactive the DesignContext for this faces model.



sourceUnitSaved
public void sourceUnitSaved(SourceUnit unit)(Code)



syncImpl
protected synchronized void syncImpl()(Code)
General, high-level synchronizing of this model with any potential changes in the document(s) and updating related models.
See Also:   org.netbeans.modules.visualweb.insync.Model.sync



updateAllBeanElReferences
public void updateAllBeanElReferences(String oldname, String newname)(Code)

Parameters:
  oldname -
Parameters:
  newname -



updateClassLoader
void updateClassLoader(ClassLoader cl)(Code)
Called from ModelSet to let us know when the project class loader changes. Pass the new loader down to the java and bean units if we have them.
Parameters:
  cl - The new classloader.



writeLock
public UndoEvent writeLock(String description)(Code)



writeUnlock
public void writeUnlock(UndoEvent event)(Code)



Fields inherited from org.netbeans.modules.visualweb.insync.Model
final public static boolean CHECK_CIRCULAR_SYNC(Code)(Java Doc)
final public static Model[] EMPTY_ARRAY(Code)(Java Doc)
protected FileObject file(Code)(Java Doc)
protected boolean needSyncing(Code)(Java Doc)
protected ModelSet owner(Code)(Java Doc)
protected Exception syncInProgress(Code)(Java Doc)
protected UndoManager undoManager(Code)(Java Doc)

Methods inherited from org.netbeans.modules.visualweb.insync.Model
protected void beginMdrTransation()(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
protected void endMdrTransaction()(Code)(Java Doc)
public void fileRenamed(String oldName, String newName, String ext, FileObject file, boolean remove)(Code)(Java Doc)
public void fireModelChanged()(Code)(Java Doc)
public void flush()(Code)(Java Doc)
abstract public void flushImpl()(Code)(Java Doc)
public void flushNonJavaUnits()(Code)(Java Doc)
abstract public void flushNonJavaUnitsImpl()(Code)(Java Doc)
abstract public ParserAnnotation[] getErrors()(Code)(Java Doc)
public FileObject getFile()(Code)(Java Doc)
protected static Model getInstance(FileObject file, Class modelSetType, boolean forceCreate)(Code)(Java Doc)
protected static Model getModel(FileObject file)(Code)(Java Doc)
public ModelSet getOwner()(Code)(Java Doc)
public Project getProject()(Code)(Java Doc)
public UndoManager getUndoManager()(Code)(Java Doc)
public FileObject getWebFolder()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
abstract public boolean isWriteLocked()(Code)(Java Doc)
public void resetOwner()(Code)(Java Doc)
abstract public void saveUnits()(Code)(Java Doc)
public void sourceUnitModelDirtied(SourceUnit unit)(Code)(Java Doc)
public void sourceUnitSaved(SourceUnit unit)(Code)(Java Doc)
public void sourceUnitSourceDirtied(SourceUnit unit)(Code)(Java Doc)
public void sync()(Code)(Java Doc)
abstract protected void syncImpl()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void toString(StringBuffer buffer)(Code)(Java Doc)
abstract public UndoEvent writeLock(String description)(Code)(Java Doc)
abstract public void writeUnlock(UndoEvent event)(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.