|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.widgets.MenuItem
org.formaria.swt.MenuItem
public class MenuItem
A wrapper for menu items
Copyright (c) Formaria Ltd.,
| Constructor Summary | |
|---|---|
MenuItem(Menu parent)
Create a new menuitem |
|
| Method Summary | |
|---|---|
protected void |
checkSubclass()
Suppress the subclassing exception |
java.lang.String |
getImageName()
Gets the name of the image being displayed. |
void |
setAction(java.lang.Object instance)
Set an action object |
void |
setImage(java.awt.Image img)
Set the image. |
void |
setImageName(java.lang.String imageUrl)
Set the image url |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.formaria.aria.TextHolder |
|---|
getText, setText |
| Constructor Detail |
|---|
public MenuItem(Menu parent)
parent - parent menu| Method Detail |
|---|
protected void checkSubclass()
public void setAction(java.lang.Object instance)
setAction in interface Actionableaction - the action objectpublic void setImageName(java.lang.String imageUrl)
setImageName in interface ImageHolderimageUrl - the relative image URLpublic void setImage(java.awt.Image img)
ImageHolder
setImage in interface ImageHolderimg - the new imagepublic java.lang.String getImageName()
ImageHolder
getImageName in interface ImageHolder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||