T - тип данных узла дереваpublic static class ContextBuilder.ContextMenuBuilder<T> extends Object implements ContextMenu<T>
| Constructor and Description |
|---|
ContextMenuBuilder(ContextBuilder<T> cb) |
ContextMenuBuilder(ContextBuilder<T> cb,
boolean ctxmbld) |
| Modifier and Type | Method and Description |
|---|---|
Context<T> |
add()
Добавляет пункт меню
|
ContextMenu<T> |
call(xyz.cofe.collection.Func2<Object,TreeTableNodeBasic,T> callfn)
Указыает функцию вызываемую при нажатие на пункт меню
|
ContextMenu<T> |
call(xyz.cofe.common.Reciver<T> callfn)
Указыает функцию вызываемую при нажатие на пункт меню
|
ContextMenu<T> |
icon(Icon icon)
Указыает иконку отображаемую в пункте меню
|
Context<T> |
items(xyz.cofe.collection.Func2<Iterable<JMenuItem>,TreeTableNodeBasic,T> buildMenus)
Создает пункты меню для данного объекта
|
ContextMenu<T> |
label(String label)
Указыает текст отображаемый в пункте меню
|
public ContextMenuBuilder(ContextBuilder<T> cb)
public ContextMenuBuilder(ContextBuilder<T> cb, boolean ctxmbld)
public ContextMenu<T> label(String label)
ContextMenulabel in interface ContextMenu<T>label - текстpublic ContextMenu<T> icon(Icon icon)
ContextMenuicon in interface ContextMenu<T>icon - иконкаpublic ContextMenu<T> call(xyz.cofe.common.Reciver<T> callfn)
ContextMenucall in interface ContextMenu<T>callfn - функция обработчикpublic ContextMenu<T> call(xyz.cofe.collection.Func2<Object,TreeTableNodeBasic,T> callfn)
ContextMenucall in interface ContextMenu<T>callfn - функция обработчикpublic Context<T> add()
ContextMenuadd in interface ContextMenu<T>public Context<T> items(xyz.cofe.collection.Func2<Iterable<JMenuItem>,TreeTableNodeBasic,T> buildMenus)
ContextMenuitems in interface ContextMenu<T>buildMenus - функция вызваемая при создании контекстного менюCopyright © 2019. All rights reserved.