public class GroupedCustomizationMenuContent.Group extends Object
CustomizationMenuContent
sConstructor and Description |
---|
Group(CustomizationMenuContent title)
Creates a new group using
title as title component. |
Modifier and Type | Method and Description |
---|---|
void |
add(CustomizationMenuContent item)
Adds
item to this group, there is no effect if the menu is currently showing. |
void |
add(int index,
CustomizationMenuContent item)
Adds
item to this group, there is no effect if the menu is currently showing. |
CustomizationMenuContent |
getItem(int index)
Gets the
index 'th item of this group. |
int |
getItemCount()
Gets the number of icons in this group
|
CustomizationMenuContent |
getTitle()
Gets the current title component.
|
void |
remove(CustomizationMenuContent item)
Removes
item from this group. |
void |
remove(int index)
Removes
index 'th item from this group. |
void |
setTitle(CustomizationMenuContent title)
Sets the title component.
|
public Group(CustomizationMenuContent title)
title
as title component.title
- a component shown at the top as header, can be null
public void setTitle(CustomizationMenuContent title)
title
- the new title, can be null
public CustomizationMenuContent getTitle()
null
public void add(CustomizationMenuContent item)
item
to this group, there is no effect if the menu is currently showing.item
- the item to add, not null
public void add(int index, CustomizationMenuContent item)
item
to this group, there is no effect if the menu is currently showing.index
- to location where to add item
item
- the item to add, not null
public void remove(CustomizationMenuContent item)
item
from this group. There is no effect it the menu is currently showing.item
- the item to removepublic void remove(int index)
index
'th item from this group. There is no effect it the menu is currently showing.index
- the index of the item to removepublic int getItemCount()
public CustomizationMenuContent getItem(int index)
index
'th item of this group.index
- the index of the itemindex