public class CockpitComponentsUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CockpitComponentsUtils.BeanResolver
Static interface class to resove bean ids.
|
| Constructor and Description |
|---|
CockpitComponentsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends org.zkoss.zk.ui.Component> |
findClosestComponent(org.zkoss.zk.ui.Component component,
Class<T> parentComponentType,
String parentSclass)
Finds closes component of given type and sclass.
|
static String |
getLabel(EditorContext<?> editorContext,
WidgetInstanceManager wim,
String key,
Object... args) |
protected static String |
getLabel(String key,
Object[] args,
BiFunction<String,Object[],String>... providers) |
static String |
getLabel(WidgetInstanceManager wim,
String key,
Object... args) |
public static String getLabel(WidgetInstanceManager wim, String key, Object... args)
public static String getLabel(EditorContext<?> editorContext, WidgetInstanceManager wim, String key, Object... args)
protected static String getLabel(String key, Object[] args, BiFunction<String,Object[],String>... providers)
public static <T extends org.zkoss.zk.ui.Component> Optional<T> findClosestComponent(org.zkoss.zk.ui.Component component, Class<T> parentComponentType, String parentSclass)
component - given component and all its ancestors will be scanned.parentComponentType - type of parent component to be found.parentSclass - searched parentSclass without ., if empty then first window will be returned no matter parentSclass.Copyright © 2018. All rights reserved.