public class JMenuItem extends AbstractButton
| Modifier and Type | Field and Description |
|---|---|
int |
btnType |
static int |
TYPE_BUTTON |
static int |
TYPE_CHECKBOX |
static int |
TYPE_MENU |
static int |
TYPE_RADIO |
static int |
TYPE_SEPARATOR |
applet, htmlName, itemListener, selectedactionCommand, actionListener, autoScrollsenabled, height, id, minHeight, minWidth, mouseListener, name, parent, renderHeight, renderWidth, text, width| Constructor and Description |
|---|
JMenuItem(java.lang.String text) |
JMenuItem(java.lang.String type,
int i) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getHtmlDisabled() |
private java.lang.String |
htmlLabel() |
java.lang.String |
toHTML() |
add, addItemListener, getIcon, getMenuHTML, getPopupMenu, getTopPopupMenu, htmlMenuOpener, init, insert, isSelected, setIcon, setSelectedaddActionListener, getActionCommand, setActionCommand, setAutoscrollsadd, addComponent, getComponent, getComponentCount, getComponents, getSubcomponentHeight, getSubcomponentWidth, insertComponent, remove, removeAlladdMouseListener, getCSSstyle, getHeight, getName, getParent, getText, getWidth, isEnabled, isVisible, newID, repaint, setBackground, setEnabled, setMinimumSize, setName, setParent, setPreferredSize, setText, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddActionListener, addMouseListener, getActionCommand, getComponent, getComponentCount, getComponents, getName, getParent, getText, isEnabled, remove, removeAll, setActionCommand, setAutoscrolls, setEnabled, setName, setTextpublic final int btnType
public static final int TYPE_SEPARATOR
public static final int TYPE_BUTTON
public static final int TYPE_CHECKBOX
public static final int TYPE_RADIO
public static final int TYPE_MENU
public JMenuItem(java.lang.String text)
public JMenuItem(java.lang.String type,
int i)
protected java.lang.String getHtmlDisabled()
getHtmlDisabled in class AbstractButtonprivate java.lang.String htmlLabel()