public class UIInitializerContext<U extends JAXXObject> extends Object
Created on 09/12/2020.
| Modifier and Type | Class and Description |
|---|---|
static class |
UIInitializerContext.Init
Created on 09/12/2020.
|
| Constructor and Description |
|---|
UIInitializerContext(U ui,
Class<?>... types) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDoNotBlockComponentId(String editor) |
void |
addFocusComponent(String name,
JComponent editor) |
void |
addFocusComponents(String name,
Collection<JComponent> collection) |
UIInitializerContext<U> |
apply(Runnable consumer) |
void |
check(UIInitializerContext.Init initState) |
void |
checkFirstPass() |
void |
checkSecondPass() |
static com.google.common.collect.ArrayListMultimap<Class<?>,Object> |
components(JAXXObject ui) |
<C> Stream<C> |
getComponents(Class<C> componentType) |
com.google.common.collect.ImmutableSet<Class<?>> |
getComponentsToKeep() |
com.google.common.collect.ImmutableList<Object> |
getDependencies() |
com.google.common.collect.ImmutableSet<String> |
getDoNotBlockComponentIds() |
com.google.common.collect.ArrayListMultimap<String,JComponent> |
getFocusComponents() |
com.google.common.collect.ArrayListMultimap<Class<?>,Object> |
getKeptComponents() |
String |
getPrefix() |
<C> Stream<C> |
getSubComponents(Class<C> componentType,
Set<Class<?>> componentTypes) |
<C> Set<Class<?>> |
getSubComponentsTypes(Class<C> componentType) |
U |
getUi() |
com.google.common.collect.ArrayListMultimap<Class<?>,Object> |
init() |
static <O> List<O> |
loadComponents(Class<O> type,
com.google.common.collect.ArrayListMultimap<Class<?>,Object> components) |
<C> UIInitializerContext<U> |
onComponents(Class<C> componentType,
boolean keep,
Consumer<C> consumer) |
<C> UIInitializerContext<U> |
onComponents(Class<C> componentType,
Consumer<C> consumer) |
static <O> Stream<O> |
onComponents(Class<O> type,
com.google.common.collect.ArrayListMultimap<Class<?>,Object> components) |
<C> UIInitializerContext<U> |
onSubComponents(Class<C> componentType,
boolean keep,
Consumer<C> consumer) |
<C> UIInitializerContext<U> |
onSubComponents(Class<C> componentType,
Consumer<C> consumer) |
void |
registerDependencies(Object... dependencies) |
UIInitializerContext<U> |
startFirstPass() |
UIInitializerContext<U> |
startSecondPass() |
public static com.google.common.collect.ArrayListMultimap<Class<?>,Object> components(JAXXObject ui)
public static <O> Stream<O> onComponents(Class<O> type, com.google.common.collect.ArrayListMultimap<Class<?>,Object> components)
public static <O> List<O> loadComponents(Class<O> type, com.google.common.collect.ArrayListMultimap<Class<?>,Object> components)
public U getUi()
public String getPrefix()
public void registerDependencies(Object... dependencies)
public void addDoNotBlockComponentId(String editor)
public com.google.common.collect.ImmutableSet<String> getDoNotBlockComponentIds()
public com.google.common.collect.ImmutableList<Object> getDependencies()
public com.google.common.collect.ArrayListMultimap<String,JComponent> getFocusComponents()
public com.google.common.collect.ImmutableSet<Class<?>> getComponentsToKeep()
public void addFocusComponents(String name, Collection<JComponent> collection)
public void addFocusComponent(String name, JComponent editor)
public UIInitializerContext<U> startFirstPass()
public UIInitializerContext<U> startSecondPass()
public <C> UIInitializerContext<U> onComponents(Class<C> componentType, boolean keep, Consumer<C> consumer)
public <C> UIInitializerContext<U> onComponents(Class<C> componentType, Consumer<C> consumer)
public <C> UIInitializerContext<U> onSubComponents(Class<C> componentType, boolean keep, Consumer<C> consumer)
public <C> UIInitializerContext<U> onSubComponents(Class<C> componentType, Consumer<C> consumer)
public void checkFirstPass()
public void checkSecondPass()
public void check(UIInitializerContext.Init initState)
public <C> Stream<C> getSubComponents(Class<C> componentType, Set<Class<?>> componentTypes)
public UIInitializerContext<U> apply(Runnable consumer)
Copyright © 2008–2020 Ultreia.io. All rights reserved.