beginUpdate();
The beginUpdate method disables rendering of the component used for object displaying.
To resume component rerendering, use the MetabaseObjectsView.endUpdate method.
To execute the example, the page must contain NavigatorBox component named navbox (see Example of Creating the NavigatorBox Component).
// Get object view view = navbox.getObjectsView(); // Disable tree rerendering view.beginUpdate(); // Remove selected object from the list obj = view.getFocusedObject(); view.deleteObject(obj.getKey());
Resume tree rerendering:
// Resume tree rerendering view.endUpdate();
After executing the example the object is removed from the list only after executing the endUpdate method.
See also: