use of org.compiere.swing.CCheckBoxMenuItem in project adempiere by adempiere.
the class AppsAction method getMenuItem.
// getButton
/**
* Return MenuItem
* @return MenuItem
*/
public JMenuItem getMenuItem() {
if (m_menu == null) {
if (m_toggle) {
m_menu = new CCheckBoxMenuItem(this);
m_menu.setSelectedIcon(m_smallPressed);
} else
m_menu = new CMenuItem(this);
m_menu.setAccelerator(m_accelerator);
m_menu.setActionCommand(m_action);
}
return m_menu;
}
Aggregations