| java.lang.Object org.netbeans.modules.visualweb.designer.jsf.DomSynchronizer
Method Summary | |
public void | beanChanged(DesignBean designBean) | public void | beanContextActivated(DesignBean designBean) | public void | beanContextDeactivated(DesignBean designBean) | public void | beanCreated(DesignBean designBean) | public void | beanDeleted(DesignBean designBean) | public void | beanMoved(DesignBean designBean, DesignBean oldParent, Position pos) | public void | contextActivated(DesignContext context) | public void | contextChanged(DesignContext context) | public void | contextDeactivated(DesignContext context) | public DocumentFragment | createSourceFragment(MarkupDesignBean bean) Given a bean in the DOM, duplicate its associated node tree and return this in a new
DocumentFragment. | public void | eventChanged(DesignEvent event) | public DesignBean | getCommonAncestor(DesignBean a, DesignBean b) Given two DesignBeans known to not be different and known to not be ancestors or descendants
of each other, return a common ancestor DesignBean parent to both beans. | public void | handleEvent(org.w3c.dom.events.Event e) | public void | instanceNameChanged(DesignBean designBean, String oldInstanceName) | public boolean | isBelow(DesignBean child, DesignBean parent) Check whether the given child is below the given parent. | public boolean | isUpdatePending() | public void | propertyChanged(DesignProperty prop, Object oldValue) | public void | requestChange(MarkupDesignBean bean)
Plan to change the given bean. | public void | requestDelete(MarkupDesignBean bean)
Plan to remove the given bean. | public void | requestInsert(MarkupDesignBean bean)
Plan to insert the given bean. | public void | requestRefresh() Schedule a request to refresh the whole HTML DOM - this needs to be done after a synch() for
example. | public void | requestTextUpdate(MarkupDesignBean bean)
The given bean has either had text inserted as a child, or has had its existing text
changed. | public void | run() | public void | setSuspended(MarkupDesignBean markupDesignBean, boolean suspend) Impl UpdateSuspender . | public void | setUpdatesSuspended(MarkupDesignBean bean, boolean suspend)
Add the ability to turn off updates for a while. | public void | unregisterDomListeners() | public void | updateDomListeners() The underlying DOM which manages the document content has changed. |
DomSynchronizer | public DomSynchronizer(JsfForm jsfForm)(Code) | | Create a new DomSynchronizer for the given webform
|
beanContextActivated | public void beanContextActivated(DesignBean designBean)(Code) | | |
beanContextDeactivated | public void beanContextDeactivated(DesignBean designBean)(Code) | | |
createSourceFragment | public DocumentFragment createSourceFragment(MarkupDesignBean bean)(Code) | | Given a bean in the DOM, duplicate its associated node tree and return this in a new
DocumentFragment. Additionally, the returned fragment will be marked as the source nodes
for the render fragment.
|
getCommonAncestor | public DesignBean getCommonAncestor(DesignBean a, DesignBean b)(Code) | | Given two DesignBeans known to not be different and known to not be ancestors or descendants
of each other, return a common ancestor DesignBean parent to both beans.
Parameters: a - A DesignBean to locate a common ancestor with b for Parameters: b - A DesignBean to locate a common ancestor with a for A common ancestor of a and b |
isBelow | public boolean isBelow(DesignBean child, DesignBean parent)(Code) | | Check whether the given child is below the given parent.
Parameters: child - The assumed child Parameters: parent - The assumed parent true iff child is the same as parent or a descendant of the parent |
isUpdatePending | public boolean isUpdatePending()(Code) | | Return true iff any type of change is pending
|
requestChange | public void requestChange(MarkupDesignBean bean)(Code) | |
Plan to change the given bean. This schedules a request to change this bean, unless one is
already pending; if it is, and the pending request includes the given bean position do
nothing, if it does not but this request would cover the pending one, change the request,
and if they are independent, leave both requests in place.
NOTE: This method must be run on the event dispatch thread!
|
requestDelete | public void requestDelete(MarkupDesignBean bean)(Code) | |
Plan to remove the given bean. This schedules a request to remove this bean.
NOTE: This method must be run on the event dispatch thread!
|
requestInsert | public void requestInsert(MarkupDesignBean bean)(Code) | |
Plan to insert the given bean. This schedules a request to insert this bean, unless this
needs to be coalesced with an existing pending event.
NOTE: This method must be run on the event dispatch thread!
|
requestRefresh | public void requestRefresh()(Code) | | Schedule a request to refresh the whole HTML DOM - this needs to be done after a synch() for
example. This will coalesce existing events if necessary.
|
requestTextUpdate | public void requestTextUpdate(MarkupDesignBean bean)(Code) | |
The given bean has either had text inserted as a child, or has had its existing text
changed. Either way the text needs to be reflown. This should be called when we listen for
the JSP DOM and see a change in nodes of the types Node.TEXT_NODE, Node.CDATA_SECTION_NODE
or Node.ENTITY_REFERENCE_NODE.
Parameters: bean - The bean whose text child has been modified |
run | public void run()(Code) | | Process pending changes
|
setSuspended | public void setSuspended(MarkupDesignBean markupDesignBean, boolean suspend)(Code) | | Impl UpdateSuspender .
|
setUpdatesSuspended | public void setUpdatesSuspended(MarkupDesignBean bean, boolean suspend)(Code) | |
Add the ability to turn off updates for a while. When the suspend parameter is true, suspend
all updates to the DOM until the method is called again turning off the suspend.
NOTE:: While updates are suspended, modifying any non-markup beans will NOT cause a
global refresh (which is usually the case since we don't know how a non-markup bean will
markup beans since there's no association map). When updates are suspended we're assuming
that any non-markup beans we are notified of are associated with the markup bean whose
updates are suspended.
NOTE:: Calls to the batch facility CANNOT be nested!
|
unregisterDomListeners | public void unregisterDomListeners()(Code) | | |
updateDomListeners | public void updateDomListeners()(Code) | | The underlying DOM which manages the document content has changed. This might for example
happen if the document source is edited and reparsed.
|
|
|