Package org.apache.batik.apps.svgbrowser
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
public static class DropDownHistoryModel.UndoPopUpMenuModel extends DropDownHistoryModel
The undo pop up menu model.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.batik.apps.svgbrowser.DropDownHistoryModel
DropDownHistoryModel.RedoPopUpMenuModel, DropDownHistoryModel.UndoPopUpMenuModel
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
UNDO_FOOTER_TEXT
The undo footer text.protected static java.lang.String
UNDO_TOOLTIP_PREFIX
The prefix for the last undoable command.-
Fields inherited from class org.apache.batik.apps.svgbrowser.DropDownHistoryModel
historyBrowserInterface, items, parent
-
-
Constructor Summary
Constructors Constructor Description UndoPopUpMenuModel(DropDownComponent.ScrollablePopupMenu parent, HistoryBrowserInterface historyBrowserInterface)
Creates the unod pop up menu model
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFooterText()
Gets the footer text.private void
init()
Initializes this model.void
processItemClicked()
Processes click on the pop up menu item.-
Methods inherited from class org.apache.batik.apps.svgbrowser.DropDownHistoryModel
addItem, clearAllScrollablePopupMenuItems, createItem, processAfterShowed, processBeforeShowed, removeFirstScrollablePopupMenuItem, removeItem, removeLastScrollablePopupMenuItem
-
-
-
-
Constructor Detail
-
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 Detail
-
init
private void init()
Initializes this model. Adds the listeners to the history browser.
-
getFooterText
public java.lang.String getFooterText()
Description copied from class:DropDownHistoryModel
Gets the footer text.- Specified by:
getFooterText
in interfaceDropDownComponent.ScrollablePopupMenuModel
- Overrides:
getFooterText
in classDropDownHistoryModel
- Returns:
- footer text
-
processItemClicked
public void processItemClicked()
Description copied from class:DropDownHistoryModel
Processes click on the pop up menu item.- Specified by:
processItemClicked
in interfaceDropDownComponent.ScrollablePopupMenuModel
- Overrides:
processItemClicked
in classDropDownHistoryModel
-
-