Spec-Zone.ru › OpenJDK 8

Класс DefaultStyledDocument.AttributeUndoableEdit

  • java.lang.Object
    • javax.swing.undo.AbstractUndoableEdit
      • javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
Все реализованные интерфейсы:
Serializable, UndoableEdit
Вложенный класс:
DefaultStyledDocument

public static class DefaultStyledDocument.AttributeUndoableEdit
extends AbstractUndoableEdit

Объект UndoableEdit, используемый для запоминания изменений атрибутов AttributeSet для элемента.

Поля

Модификатор и тип Поле и описание
protected AttributeSet copy
protected Element element
protected boolean isReplacing
protected AttributeSet newAttributes

Поля, унаследованные от класса javax.swing.undo.AbstractUndoableEdit

RedoName, UndoName

Конструкторы

Конструктор и описание
AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)

Методы

Модификатор и тип Метод и описание
void redo()

Повторяет изменение.

void undo()

Отменяет изменение.

Методы, унаследованные от класса javax.swing.undo.AbstractUndoableEdit

addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString

Методы, унаследованные от класса java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Поля

newAttributes

protected AttributeSet newAttributes

copy

protected AttributeSet copy

isReplacing

protected boolean isReplacing

element

protected Element element

Конструкторы

AttributeUndoableEdit

public AttributeUndoableEdit(Element element,
                             AttributeSet newAttributes,
                             boolean isReplacing)

Методы

redo

public void redo()
          throws CannotRedoException

Повторяет изменение.

Указано в:
redo в интерфейсе UndoableEdit
Переопределяет:
redo в классе AbstractUndoableEdit
Исключения:
CannotRedoException - если изменение нельзя повторить
См. также:
AbstractUndoableEdit.canRedo()

undo

public void undo()
          throws CannotUndoException

Отменяет изменение.

Указано в:
undo в интерфейсе UndoableEdit
Переопределяет:
undo в классе AbstractUndoableEdit
Исключения:
CannotUndoException - если изменение нельзя отменить
См. также:
AbstractUndoableEdit.canUndo()

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API