Method Summary |
|
public void | addXRefAccessors() |
public void | beanCreated(DesignBean dbean) TODO - move to DesignerUtils!
Give the bean's DesignInfo a chance to annotate the bean after it has been created. |
public void | beanPasted(DesignBean dbean) Give the bean's DesignInfo a chance to annotate the bean after it has been pasted. |
public void | clearHtml() |
public boolean | createEventHandler(DesignEvent event) Open the handler method for a given event in the editor, generating the default if needed. |
public void | destroy() |
public void | fileRenamed(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 void | flushImpl() |
public void | flushNonJavaUnitsImpl() Should only be used if you are certain this will not cause a problem. |
final static String | getBasePathForJava(FileObject javaFile) |
final static String | getBasePathForJsp(FileObject jspFile) |
public String | getBeanName() Get the logical bean name for this model. |
final public static String | getBeanNameForJava(FileObject javaFile) |
final public static String | getBeanNameForJsp(FileObject jspFile) |
public BeansUnit | getBeansUnit() Get the beans Unit for this model. |
public static DesignEvent | getDefaultEvent(DesignBean lbean) |
public ParserAnnotation[] | getErrors() |
static int | getEventIndex(EventSetDescriptor[] eventSets, String eventSetName) |
public static FacesModel | getFacesModel(FileObject file) |
public FacesModelSet | getFacesModelSet() Return the FacesModelSet associated with this Model. |
public FacesPageUnit | getFacesUnit() Get the faces Unit for this model. |
public Element | getHtmlBody() |
public org.w3c.dom.Document | getHtmlDom() |
public DocumentFragment | getHtmlDomFragment() Return the HTML DOM associated with the source JSPX DOM
returned by
getDom . |
public static FacesModel | getInstance(FileObject file) |
public static FacesModel | getInstance(FileObject file, Class ofType) |
public FileObject | getJavaFile() Get the FileObject for the Java file corresponding to this model. |
public static FileObject | getJavaForJsp(FileObject file) |
public URI | getJavaResourceRelativeUri() Returns a URI object representing the project resource for the page I represent. |
public JavaUnit | getJavaUnit() Get the java Unit for this model. |
public JsfSupport | getJsfSupport() |
public org.w3c.dom.Document | getJspDom() Get the document associated with this webform. |
final public static FileObject | getJspForJava(FileObject javaFile) |
public synchronized LiveUnit | getLiveUnit() Get the live Unit for this model. |
public ManagedBean.Scope | getManagedBeanEntryScope() |
public FileObject | getMarkupFile() Retrieve the FileObject for the markup portion of this model. |
public URI | getMarkupResourceRelativeUri() Returns a URI object representing the project resource for the page I represent. |
public MarkupUnit | getMarkupUnit() Get the markup source Unit for this model. |
public DesignBean | getRootBean() |
public ManagedBean.Scope | getScope() |
public ManagedBean.Scope | getScope(JavaClass type) |
public Unit | getTopmostUnit() |
public UndoManager | getUndoManager() |
public static ArrayList | getVisibleEventsWithHandlerNames(DesignBean lbean) Return an Array with intermixed DesignEvent, String entries. |
public boolean | isActivated() |
public boolean | isBusted() |
public boolean | isInRequestScope() |
public boolean | isPageBean() |
public boolean | isValid() |
public boolean | isWriteLocked() |
public void | linkBeans(DesignBean target, DesignBean bean) Link the given bean to the given target bean. |
public void | openDefaultHandler() Open the default "handler" for the unit itself. |
public void | openDefaultHandler(DesignBean lbean) Open the default "handler" for a given bean. |
public void | openEventHandler(DesignEvent event) |
void | positionTheCursor(Method m, boolean inserted) Position the cursor in a blank line after the comment if the method is
newly inserted. |
public void | refresh(boolean deep) XXX Moved from designer/WebForm#refresh, the insync part. |
public void | refreshAndSyncNonPageBeans(boolean deep) |
void | refreshUnits(boolean immediate) |
public void | removeAllBeanElReferences(String oldname) |
public void | resetOwner() |
public void | saveUnits() |
public void | setActivated(boolean activated) Activate/deactive the DesignContext for this faces model. |
public void | sourceUnitSaved(SourceUnit unit) |
protected synchronized void | syncImpl() General, high-level synchronizing of this model with any potential changes in the document(s)
and updating related models. |
public void | updateAllBeanElReferences(String oldname, String newname) |
void | updateClassLoader(ClassLoader cl) Called from ModelSet to let us know when the project class loader changes. |
public UndoEvent | writeLock(String description) |
public void | writeUnlock(UndoEvent event) |