Top Fields Constructors Methods
org.jabref.gui.groups

pack-priv Class UndoableMoveGroup

extends AbstractUndoableJabRefEdit
Class Inheritance
Imports
java.util.List, .Objects, org.jabref.gui.undo.AbstractUndoableJabRefEdit, org.jabref.logic.l10n.Localization, org.jabref.model.groups.GroupTreeNode

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final List<Integer>
private final List<Integer>
private final GroupTreeNodeViewModel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public void
redo()

Overrides javax.swing.undo.AbstractUndoableEdit.redo.

Implements javax.swing.undo.UndoableEdit.redo.

Throws CannotRedoException if canRedo returns false.

public void
undo()

Overrides javax.swing.undo.AbstractUndoableEdit.undo.

Implements javax.swing.undo.UndoableEdit.undo.

Throws CannotUndoException if canUndo returns false.

Inherited from org.jabref.gui.undo.AbstractUndoableJabRefEdit:
getRedoPresentationNamegetUndoPresentationName

Field Detail

newChildIndexback to summary
private final int newChildIndex
oldChildIndexback to summary
private final int oldChildIndex
pathToNewParentback to summary
private final List<Integer> pathToNewParent
pathToOldParentback to summary
private final List<Integer> pathToOldParent
rootback to summary
private final GroupTreeNodeViewModel root

Constructor Detail

UndoableMoveGroupback to summary
public UndoableMoveGroup(GroupTreeNodeViewModel root, MoveGroupChange moveChange)

Method Detail

getPresentationNameback to summary
public String getPresentationName()

Overrides javax.swing.undo.AbstractUndoableEdit.getPresentationName.

Implements javax.swing.undo.UndoableEdit.getPresentationName.

Doc from javax.swing.undo.AbstractUndoableEdit.getPresentationName.

This default implementation returns "". Used by getUndoPresentationName and getRedoPresentationName to construct the strings they return. Subclasses should override to return an appropriate description of the operation this edit represents.

Returns:String

the empty string ""

Annotations
@Override
redoback to summary
public void redo()

Overrides javax.swing.undo.AbstractUndoableEdit.redo.

Implements javax.swing.undo.UndoableEdit.redo.

Doc from javax.swing.undo.AbstractUndoableEdit.redo.

Throws CannotRedoException if canRedo returns false. Sets hasBeenDone to true. Subclasses should override to redo the operation represented by this edit. Override should begin with a call to super.

Annotations
@Override
undoback to summary
public void undo()

Overrides javax.swing.undo.AbstractUndoableEdit.undo.

Implements javax.swing.undo.UndoableEdit.undo.

Doc from javax.swing.undo.AbstractUndoableEdit.undo.

Throws CannotUndoException if canUndo returns false. Sets hasBeenDone to false. Subclasses should override to undo the operation represented by this edit. Override should begin with a call to super.

Annotations
@Override