public class ContextBuilder<T> extends Object implements Context<T>, AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
ContextBuilder.ContextMenuBuilder<T> |
| Constructor and Description |
|---|
ContextBuilder(BaseObjectBrowser ob,
Class<T> cls) |
| Modifier and Type | Method and Description |
|---|---|
AutoCloseable |
apply()
Применяет настройки для указанного контекста
|
void |
close() |
Context<T> |
followable(Func1<Boolean,T> followableFn) |
Context<T> |
follower(NodesExtracter<T,Object> followerFn) |
Context<T> |
follower(NodesExtracter<T,Object> followerFn,
Followable<T> followable)
Указывает функцию "следования" узла и проверки возможности "следования"
|
Context<T> |
format(Func1<TreeTableNodeFormat,T> fmtfn)
Указывает функцию форматириования
|
Class<T> |
getContextClass() |
Context<T> |
icon(Func1<Icon,T> iconFun)
Указывает иконку для типа объекта
|
Context<T> |
icon(Icon ico)
Указывает иконку для типа объекта
|
ContextMenu<T> |
menu()
Указание контекстного меню
|
ContextMenu<T> |
menu(boolean matchSoft)
Указание контекстного меню
|
Context<T> |
naming(Func1<String,T> nameFn)
Указывает функцию именования узла
|
public ContextBuilder(BaseObjectBrowser ob, Class<T> cls)
public Context<T> naming(Func1<String,T> nameFn)
Contextpublic Context<T> follower(NodesExtracter<T,Object> followerFn, Followable<T> followable)
Contextpublic Context<T> follower(NodesExtracter<T,Object> followerFn)
public Context<T> format(Func1<TreeTableNodeFormat,T> fmtfn)
Contextpublic Context<T> icon(Func1<Icon,T> iconFun)
Contextpublic Context<T> icon(Icon ico)
Contextpublic ContextMenu<T> menu()
Contextpublic ContextMenu<T> menu(boolean matchSoft)
Contextpublic AutoCloseable apply()
Contextpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2018. All rights reserved.