Removes this menu entry from the menu and releases all system resources associated with this menu entry.
()
| 83 | * Removes this menu entry from the menu and releases all system resources associated with this menu entry. |
| 84 | */ |
| 85 | public |
| 86 | void remove() { |
| 87 | if (peer != null) { |
| 88 | peer.remove(); |
| 89 | |
| 90 | this.parent = null; |
| 91 | peer = null; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | |
| 96 | @Override |