public class MenuContainer extends MenuItem
| Modifier and Type | Class and Description |
|---|---|
static class |
MenuContainer.Children
Дочерние пункты меню
|
static class |
MenuContainer.ItemAddedEvent
Событие изменения структуры дочерних элементов
|
static class |
MenuContainer.ItemRemovedEvent
Событие изменения структуры дочерних элементов
|
static class |
MenuContainer.MenuContainerEvent
Событие изменения структуры дочерних элементов
|
MenuItem.PropertyChangedEvent| Modifier and Type | Field and Description |
|---|---|
protected xyz.cofe.collection.list.SimpleListAdapter<MenuItem> |
adapter
Подписчик изменения списка дочерних меню.
|
protected Icon |
icon |
protected String |
text |
menuListener, propertiesListeners| Constructor and Description |
|---|
MenuContainer()
Конструктор
|
MenuContainer(MenuContainer parent,
String text)
Конструктор
|
MenuContainer(String text)
Конструктор
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assignParentToChild(MenuItem child)
Назначение свойство parent для укзанного дочернего пункта
|
MenuContainer.Children |
getChildren()
Дочерние пункты меню
|
Icon |
getIcon()
Указывает иконку пункта меню
|
String |
getText()
Указывает текст пункта меню
|
void |
setIcon(Icon icon)
Указывает иконку пункта меню
|
void |
setText(String text)
Указывает текст пункта меню
|
actionsOf, actionsOf, addChild, addChild, addMenuListener, addPropertyChangeListener, clearChildren, clearChildren, filteredActionsOf, filteredActionsOf, findById, findMenuItemById, fireMenuEvent, firePropertyChanged, getId, getParent, getPath, getPropertyChangeListeners, iterable, menuIdPredicate, pathof, removeChild, removeChild, removeMenuListener, removePropertyChangeListener, setId, setParent, single, targetedActionsOf, targetedActionsOfprotected xyz.cofe.collection.list.SimpleListAdapter<MenuItem> adapter
protected String text
protected Icon icon
public MenuContainer()
public MenuContainer(String text)
text - Отображаемый текст менюpublic MenuContainer(MenuContainer parent, String text)
parent - Родительский пункт менюtext - Отображаемый текст менюpublic MenuContainer.Children getChildren()
protected void assignParentToChild(MenuItem child)
child - дочерний пункт менюpublic Icon getIcon()
public void setIcon(Icon icon)
icon - Иконкаpublic String getText()
public void setText(String text)
text - Текст пункта менюCopyright © 2019. All rights reserved.