org.apache.batik.apps.svgbrowser
public class DropDownHistoryModel extends Object implements DropDownComponent.ScrollablePopupMenuModel
Nested Class Summary | |
---|---|
static class | DropDownHistoryModel.RedoPopUpMenuModel
The redo pop up menu model. |
static class | DropDownHistoryModel.UndoPopUpMenuModel
The undo pop up menu model. |
Field Summary | |
---|---|
protected HistoryBrowserInterface | historyBrowserInterface
The history browser interface. |
protected ArrayList | items
Scrollable popup menu items. |
protected DropDownComponent.ScrollablePopupMenu | parent
The parent scrollable popup menu. |
Constructor Summary | |
---|---|
DropDownHistoryModel(DropDownComponent.ScrollablePopupMenu parent, HistoryBrowserInterface historyBrowserInterface)
Creates the history pop up menu model.
|
Method Summary | |
---|---|
protected void | addItem(DropDownComponent.ScrollablePopupMenuItem item, String details)
Adds the ScrollablePopupMenuItem to the item list and to the parent.
|
protected void | clearAllScrollablePopupMenuItems(String details)
Removes all scrollable popup menu items from the items list and from
the parent pop up menu.
|
DropDownComponent.ScrollablePopupMenuItem | createItem(String itemName)
Creates the ScrollablePopupMenuItem with the specific name.
|
String | getFooterText()
Gets the footer text.
|
void | processAfterShowed() |
void | processBeforeShowed() |
void | processItemClicked()
Processes click on the pop up menu item. |
protected boolean | removeFirstScrollablePopupMenuItem(String details)
Removes the first scrollable popup menu item from the items list and
from the parent pop up menu.
|
protected void | removeItem(DropDownComponent.ScrollablePopupMenuItem item, String details)
Removes the ScrollablePopupMenuItem from the item list and from the
parent. |
protected boolean | removeLastScrollablePopupMenuItem(String details)
Removes the last scrollable popup menu item from the items list and
from the parent pop up menu.
|
Parameters: parent The parent ScrollablePopupMenu historyBrowserInterface The historyBrowserInterface. Used to update the parent pop up menu when the HistoryBrowser fires the events
Parameters: item The item to add details The details for the 'itemsWereAdded' event
Parameters: details The details for the event
Parameters: itemName the name of the item
Returns: the item
Returns: footer text
Parameters: details The details for the 'itemsWereRemoved' event
Returns: True if item was successfully removed
Parameters: item The item to remove details The details for the 'itemsWereRemoved' event
Parameters: details The details for the 'itemsWereRemoved' event
Returns: True if item was successfully removed