public class DropDownHistoryModel extends java.lang.Object implements DropDownComponent.ScrollablePopupMenuModel
Modifier and Type | Class and 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 and 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 and Description |
---|
DropDownHistoryModel(DropDownComponent.ScrollablePopupMenu parent,
HistoryBrowserInterface historyBrowserInterface)
Creates the history pop up menu model.
|
Modifier and Type | Method and 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.ScrollablePopupMenuModel
public 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.ScrollablePopupMenuModel
public void processBeforeShowed()
DropDownComponent.ScrollablePopupMenuModel
processBeforeShowed
in interface DropDownComponent.ScrollablePopupMenuModel
public void processAfterShowed()
DropDownComponent.ScrollablePopupMenuModel
processAfterShowed
in interface DropDownComponent.ScrollablePopupMenuModel
Copyright © 2022 Apache Software Foundation. All Rights Reserved.