public interface PopupMenuGroup
Modifier and Type | Method and Description |
---|---|
PopupMenuGroup |
expandGroup(ChoicePicker picker)
Expands group or sub group from this menu, which satisfies the rules given in
picker param. |
PopupMenuGroup |
expandGroup(int index)
Expands group or sub group from this menu, which index equals the given
index param. |
PopupMenuGroup |
expandGroup(String header)
Expands group or sub group from this menu, which text representation matches the given
header param. |
void |
selectItem(ChoicePicker picker)
Selects the menu item from this menu or menu group according to the rules defined in the
picker param. |
void |
selectItem(int index)
Selects the menu item from this menu or menu group according to its index in the list of all menu items.
|
void |
selectItem(String header)
Selects the menu item from this menu or menu group according to the exact match of its text representation with passed
header param. |
void selectItem(ChoicePicker picker)
picker
param.
Opens menu or sub menu from visible menu, if it is not visible.picker
- for defining the rules by which the item will be selectedIllegalArgumentException
- if there is no such element which satisfies the rules given by picker
void selectItem(String header)
header
param.
Opens menu or sub menu from visible menu, if it is not visible.header
- text representation of the menu item to be selectedIllegalArgumentException
- if there is no such element with text representation matching the given header
void selectItem(int index)
index
- zero based index of the item to be selectedIllegalArgumentException
- if there is no such element with index index
PopupMenuGroup expandGroup(ChoicePicker picker)
picker
param.
Opens menu or sub menu from visible menu, if it is not visible.picker
- object to define which group should be expandedIllegalArgumentException
- if there is no such element which satisfies the rules given by picker
PopupMenuGroup expandGroup(String header)
header
param.
Opens menu or sub menu from visible menu, if it is not visible.header
- the header of the group which should be expandedIllegalArgumentException
- if there is no such element with text representation matching the given header
PopupMenuGroup expandGroup(int index)
index
param.
Opens menu or sub menu from visible menu, if it is not visible.index
- zero based index of the group to expandIllegalArgumentException
- if there is no such element with index index
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.