Java Swing (Web site template) O Reilly Decrements updateLevel. If updateLevel
Java Swing O Reilly Decrements updateLevel. If updateLevel is now 0, it calls end() on the CompoundEditand then calls _postEdit() to deliver the edit to the support object’s listeners. protected CompoundEdit createCompoundEdit() Returns a new CompoundEdit. A subclass could override this method to return a different CompoundEdit implementation if desired. Figure 18.11 shows how to use beginUpdate() and endUpdate(). We add a total of four edits to the support object. Notice that the first endUpdate() call does nothing but decrement the current level. The next endUpdate(), which brings the level to zero, causes the composite edit containing the four added edits to be fired. Figure 18.11. Using beginUpdate() and endUpdate() 18.1.9.6 Other Methods public String toString() Returns a String representation of the support object including the current updateLevel, and String representations of the listener vector and CompoundEdit. 18.1.9.7 Using Undoable Edit Support Earlier in this chapter, we created a simple undoable toggle button class. To keep that example simple, we allowed only a single listener to be added to the button. In this example (just a new - 573 -
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.