final class LensMenuDelegate extends java.lang.Object implements MenuDelegate, MenuItemDelegate
Constructor and Description |
---|
LensMenuDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
createMenu(java.lang.String title,
boolean enabled) |
boolean |
createMenuItem(java.lang.String title,
MenuItem.Callback callback,
int shortcutKey,
int shortcutModifiers,
Pixels pixels,
boolean enabled,
boolean checked) |
boolean |
insert(MenuDelegate menu,
int pos) |
boolean |
insert(MenuItemDelegate item,
int pos) |
boolean |
remove(MenuDelegate menu,
int pos) |
boolean |
remove(MenuItemDelegate item,
int pos) |
boolean |
setCallback(MenuItem.Callback callback) |
boolean |
setChecked(boolean checked) |
boolean |
setEnabled(boolean enabled) |
boolean |
setPixels(Pixels pixels) |
boolean |
setShortcut(int shortcutKey,
int shortcutModifiers) |
boolean |
setTitle(java.lang.String title) |
public boolean createMenu(java.lang.String title, boolean enabled)
createMenu
in interface MenuDelegate
public boolean setTitle(java.lang.String title)
setTitle
in interface MenuDelegate
setTitle
in interface MenuItemDelegate
public boolean setEnabled(boolean enabled)
setEnabled
in interface MenuDelegate
setEnabled
in interface MenuItemDelegate
public boolean insert(MenuDelegate menu, int pos)
insert
in interface MenuDelegate
public boolean insert(MenuItemDelegate item, int pos)
insert
in interface MenuDelegate
public boolean remove(MenuDelegate menu, int pos)
remove
in interface MenuDelegate
public boolean remove(MenuItemDelegate item, int pos)
remove
in interface MenuDelegate
public boolean createMenuItem(java.lang.String title, MenuItem.Callback callback, int shortcutKey, int shortcutModifiers, Pixels pixels, boolean enabled, boolean checked)
createMenuItem
in interface MenuItemDelegate
public boolean setCallback(MenuItem.Callback callback)
setCallback
in interface MenuItemDelegate
public boolean setShortcut(int shortcutKey, int shortcutModifiers)
setShortcut
in interface MenuItemDelegate
public boolean setPixels(Pixels pixels)
setPixels
in interface MenuDelegate
setPixels
in interface MenuItemDelegate
public boolean setChecked(boolean checked)
setChecked
in interface MenuItemDelegate