Specifies the new text to set for a menu entry @param text the new text to set
(final String text)
| 265 | * @param text the new text to set |
| 266 | */ |
| 267 | public |
| 268 | void setText(final String text) { |
| 269 | this.text = text; |
| 270 | |
| 271 | if (peer != null) { |
| 272 | ((MenuItemPeer) peer).setText(this); |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * Specifies the new image to set for a menu entry, NULL to delete the image. |