|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.apps.svgbrowser.DropDownHistoryModel
public class DropDownHistoryModel
The history scrollable popup menu model. Used for undo / redo drop down components.
| 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()
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(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayList items
protected HistoryBrowserInterface historyBrowserInterface
protected DropDownComponent.ScrollablePopupMenu parent
| Constructor Detail |
|---|
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 events| Method Detail |
|---|
public String getFooterText()
getFooterText in interface DropDownComponent.ScrollablePopupMenuModelpublic DropDownComponent.ScrollablePopupMenuItem createItem(String itemName)
itemName - the name of the item
protected void addItem(DropDownComponent.ScrollablePopupMenuItem item,
String details)
item - The item to adddetails - The details for the 'itemsWereAdded' event
protected void removeItem(DropDownComponent.ScrollablePopupMenuItem item,
String details)
item - The item to removedetails - The details for the 'itemsWereRemoved' eventprotected boolean removeLastScrollablePopupMenuItem(String details)
details - The details for the 'itemsWereRemoved' event
protected boolean removeFirstScrollablePopupMenuItem(String details)
details - The details for the 'itemsWereRemoved' event
protected void clearAllScrollablePopupMenuItems(String details)
details - The details for the eventpublic void processItemClicked()
processItemClicked in interface DropDownComponent.ScrollablePopupMenuModelpublic void processBeforeShowed()
DropDownComponent.ScrollablePopupMenuModel
processBeforeShowed in interface DropDownComponent.ScrollablePopupMenuModelpublic void processAfterShowed()
DropDownComponent.ScrollablePopupMenuModel
processAfterShowed in interface DropDownComponent.ScrollablePopupMenuModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||