DropDownComponent.ScrollablePopupMenuModelDropDownHistoryModel.RedoPopUpMenuModel, DropDownHistoryModel.UndoPopUpMenuModelpublic class DropDownHistoryModel extends java.lang.Object implements DropDownComponent.ScrollablePopupMenuModel
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DropDownHistoryModel.RedoPopUpMenuModel |
The redo pop up menu model.
|
static class |
DropDownHistoryModel.UndoPopUpMenuModel |
The undo pop up menu model.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected HistoryBrowserInterface |
historyBrowserInterface |
The history browser interface.
|
protected java.util.ArrayList |
items |
Scrollable popup menu items.
|
protected DropDownComponent.ScrollablePopupMenu |
parent |
The parent scrollable popup menu.
|
| Constructor | Description |
|---|---|
DropDownHistoryModel(DropDownComponent.ScrollablePopupMenu parent,
HistoryBrowserInterface historyBrowserInterface) |
Creates the history pop up menu model.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addItem(DropDownComponent.ScrollablePopupMenuItem item,
java.lang.String details) |
Adds the ScrollablePopupMenuItem to the item list and to the parent.
|
protected void |
clearAllScrollablePopupMenuItems(java.lang.String details) |
Removes all scrollable popup menu items from the items list and from
the parent pop up menu.
|
DropDownComponent.ScrollablePopupMenuItem |
createItem(java.lang.String itemName) |
Creates the ScrollablePopupMenuItem with the specific name.
|
java.lang.String |
getFooterText() |
Gets the footer text.
|
void |
processAfterShowed() |
Processes the showing of the pop up menu.
|
void |
processBeforeShowed() |
Processes the showing of the pop up menu.
|
void |
processItemClicked() |
Processes click on the pop up menu item.
|
protected boolean |
removeFirstScrollablePopupMenuItem(java.lang.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,
java.lang.String details) |
Removes the ScrollablePopupMenuItem from the item list and from the
parent.
|
protected boolean |
removeLastScrollablePopupMenuItem(java.lang.String details) |
Removes the last scrollable popup menu item from the items list and
from the parent pop up menu.
|
protected java.util.ArrayList items
protected HistoryBrowserInterface historyBrowserInterface
protected DropDownComponent.ScrollablePopupMenu parent
public DropDownHistoryModel(DropDownComponent.ScrollablePopupMenu parent, HistoryBrowserInterface historyBrowserInterface)
parent - The parent ScrollablePopupMenuhistoryBrowserInterface - The historyBrowserInterface. Used to update the parent pop
up menu when the HistoryBrowser fires the eventspublic java.lang.String getFooterText()
getFooterText in interface DropDownComponent.ScrollablePopupMenuModelpublic DropDownComponent.ScrollablePopupMenuItem createItem(java.lang.String itemName)
itemName - the name of the itemprotected void addItem(DropDownComponent.ScrollablePopupMenuItem item, java.lang.String details)
item - The item to adddetails - The details for the 'itemsWereAdded' eventprotected void removeItem(DropDownComponent.ScrollablePopupMenuItem item, java.lang.String details)
item - The item to removedetails - The details for the 'itemsWereRemoved' eventprotected boolean removeLastScrollablePopupMenuItem(java.lang.String details)
details - The details for the 'itemsWereRemoved' eventprotected boolean removeFirstScrollablePopupMenuItem(java.lang.String details)
details - The details for the 'itemsWereRemoved' eventprotected void clearAllScrollablePopupMenuItems(java.lang.String details)
details - The details for the eventpublic void processItemClicked()
processItemClicked in interface DropDownComponent.ScrollablePopupMenuModelpublic void processBeforeShowed()
DropDownComponent.ScrollablePopupMenuModelprocessBeforeShowed in interface DropDownComponent.ScrollablePopupMenuModelpublic void processAfterShowed()
DropDownComponent.ScrollablePopupMenuModelprocessAfterShowed in interface DropDownComponent.ScrollablePopupMenuModelCopyright ? 2018 Apache Software Foundation. All Rights Reserved.