Class DropDownHistoryModel.UndoPopUpMenuModel
java.lang.Object
org.apache.batik.apps.svgbrowser.DropDownHistoryModel
org.apache.batik.apps.svgbrowser.DropDownHistoryModel.UndoPopUpMenuModel
- All Implemented Interfaces:
DropDownComponent.ScrollablePopupMenuModel
- Enclosing class:
DropDownHistoryModel
The undo pop up menu model.
- Version:
- $Id$
-
Nested Class Summary
Nested classes/interfaces inherited from class DropDownHistoryModel
DropDownHistoryModel.RedoPopUpMenuModel, DropDownHistoryModel.UndoPopUpMenuModel -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static StringThe undo footer text.protected static StringThe prefix for the last undoable command.Fields inherited from class DropDownHistoryModel
historyBrowserInterface, items, parent -
Constructor Summary
ConstructorsConstructorDescriptionUndoPopUpMenuModel(DropDownComponent.ScrollablePopupMenu parent, HistoryBrowserInterface historyBrowserInterface) Creates the unod pop up menu model -
Method Summary
Modifier and TypeMethodDescriptionGets the footer text.private voidinit()Initializes this model.voidProcesses click on the pop up menu item.
-
Field Details
-
UNDO_FOOTER_TEXT
The undo footer text. Used for the footer item. -
UNDO_TOOLTIP_PREFIX
The prefix for the last undoable command. E.g. (Undo change selection)
-
-
Constructor Details
-
UndoPopUpMenuModel
public UndoPopUpMenuModel(DropDownComponent.ScrollablePopupMenu parent, HistoryBrowserInterface historyBrowserInterface) Creates the unod pop up menu model- Parameters:
parent- The parent scrollable popup menuhistoryBrowserInterface- the historyBrowserInterface
-
-
Method Details
-
init
private void init()Initializes this model. Adds the listeners to the history browser. -
processItemClicked
public void processItemClicked()Description copied from class:DropDownHistoryModelProcesses click on the pop up menu item.- Specified by:
processItemClickedin interfaceDropDownComponent.ScrollablePopupMenuModel- Overrides:
processItemClickedin classDropDownHistoryModel
-