Web host - Java Swing O Reilly This method is intended
Tuesday, July 31st, 2007Java Swing O Reilly This method is intended to be used when the manager is limited to holding a single edit (limit == 1). If the edit has been undone, it calls redo(), otherwise, it calls undo(). 18.1.6.8 Protected Methods These methods are used internally by the UndoManager to manage its list of edits. They provide support for ignoring insignificant edits and removing edits that are no longer accessible. protected UndoableEdit editToBeRedone() Returns the next edit to be redone. This is simply the last significant edit that was undone. Any insignificant edits are skipped. If there are no significant redoable edits available, this method returns null. protected UndoableEdit editToBeUndone() Returns the next edit to be undone. This is the last significant edit that was either redone or added. Any insignificant edits are skipped. If there are no significant undoable edits available, this method returns null. protected void trimEdits(int from, int to) Removes the specified range of edits from the manager (if from is greater than to, it does nothing). The die() method is called on each removed edit in reverse order (to down to from). If the insertion point was within the trimmed range, it is reset to the value of from. protected void trimForLimit() Reduces the number of edits to fit within the set limit for this manager. If the number of edits is not greater than limit, it does nothing. Otherwise, it removes edits from either end of the list (or both), trying to end up with equal numbers of undoable and redoable edits (or as close as possible). For example, if there are 10 edits, half of which had been undone, and limit is reduced to six, the first two undone edits (those that were undone first) and the first two edits added (those that would be undone last) are removed. This leaves six edits (the new limit), three of which have been undone. protected void redoTo(UndoableEdit edit) throws CannotRedoException Starts with the last undone edit and calls redo() on each edit in the list, stopping after it has called redo() on the input edit. An ArrayIndex-OutOfBoundsException will be thrown if the input edit is not found before reaching the end of the edit list. protected void undoTo(UndoableEdit edit) throws CannotUndoException Starts with the last redone or added edit and calls undo() on each edit in the list, stopping after it has called undo() on the input edit. An ArrayIndexOutOfBoundsException will be thrown if the input edit is not found before reaching the beginning of the edit list. 18.1.6.9 Other Methods public String toString() - 555 -
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.