Java Swing O Reilly Creates a (Web hosting ecommerce) new support
Java Swing O Reilly Creates a new support object, which will use the given object as the source for any events it fires. 18.1.9.4 UndoableEditEvent/Listener Support Methods The following methods allow an undo-capable object to use an UndoableEditSupport object to manage event listeners. public synchronized void addUndoableEditListener(UndoableEditListener l) Adds the given listener to a list of listeners to be notified of new UndoableEdits. public synchronized void removeUndoableEditListener(UndoableEditListener l) Removes the specified listener. public synchronized void postEdit(UndoableEdit e) If updateLevel is 0, this method uses _postEdit() to send an UndoableEditEvent to all added listeners. If updateLevel is not 0, this method adds the input edit to a CompoundEditto be fired later. See the beginUpdate() and endUpdate() methods for more details on the use of the CompoundEdit. protected void _postEdit(UndoableEdit e) This protected method is used by postEdit() and endUpdate(). It creates a new UndoableEditEvent containing the input edit and sends it to all registered listeners by calling undoableEditHappened() on each. 18.1.9.5 Nested Edit Support The following methods allow the UndoableEditSupport class to consolidate multiple edits into a single CompoundEdit, to be fired after a series of edits have been added. To use these methods, the object using the support object first calls beginUpdate(). Each subsequent postEdit() call will cause the input edit to be added to a single CompoundEdit. When endUpdate() is called, an UndoableEditEvent containing the CompoundEdit is fired. If multiple beginUpdate() calls are made, the support object keeps track of the level of nesting using the updateLevel property. Only when the number of endUpdate() calls matches the number of beginUpdate() calls is the CompoundEdit finally fired. Regardless of how many times beginUpdate() is called, only a single CompoundEdit is created. public synchronized void beginUpdate() Indicates that subsequent postEdit() calls should result in the input edit being added to a CompoundEdit. This method increments updateLevel and, if the updateLevel is 0, creates a new Compound-Edit. public synchronized void endUpdate() - 572 -
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.