Creates a new instance of Bookmarks @param toAdd
(BookmarkItem toAdd)
| 72 | * @param toAdd |
| 73 | */ |
| 74 | public Bookmarks(BookmarkItem toAdd) { |
| 75 | super(null, false); |
| 76 | loadBookmarks(); |
| 77 | |
| 78 | if (getItemCount() == 0 && toAdd == null) { |
| 79 | new ConferenceForm(); |
| 80 | return; |
| 81 | } |
| 82 | |
| 83 | this.toAdd = toAdd; |
| 84 | |
| 85 | if (toAdd != null) { |
| 86 | addBookmark(); |
| 87 | } |
| 88 | |
| 89 | mainbar = new MainBar(2, null, SR.MS_BOOKMARKS + " (" + getItemCount() + ") ", false);//for title updating after "add bookmark" |
| 90 | |
| 91 | enableListWrapping(true); |
| 92 | show(); |
| 93 | } |
| 94 | |
| 95 | public void commandState() { |
| 96 | menuCommands.removeAllElements(); |
nothing calls this directly
no test coverage detected