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, selected
actionCommand, actionListener, autoScrolls
enabled, 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, setSelected
addActionListener, getActionCommand, setActionCommand, setAutoscrolls
add, addComponent, getComponent, getComponentCount, getComponents, getSubcomponentHeight, getSubcomponentWidth, insertComponent, remove, removeAll
addMouseListener, getCSSstyle, getHeight, getName, getParent, getText, getWidth, isEnabled, isVisible, newID, repaint, setBackground, setEnabled, setMinimumSize, setName, setParent, setPreferredSize, setText, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addActionListener, addMouseListener, getActionCommand, getComponent, getComponentCount, getComponents, getName, getParent, getText, isEnabled, remove, removeAll, setActionCommand, setAutoscrolls, setEnabled, setName, setText
public 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 AbstractButton
private java.lang.String htmlLabel()