public final class WidgetTreeUIUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.zkoss.zk.ui.Component |
getFirstWidgetChild(org.zkoss.zk.ui.Component component) |
static Widgetchildren |
getParentWidgetchildren(org.zkoss.zk.ui.Component comp) |
static WidgetContainer |
getParentWidgetContainer(org.zkoss.zk.ui.Component comp)
Returns the first parent component being an instance of
WidgetContainer, i.e. |
static Widgetslot |
getParentWidgetslot(org.zkoss.zk.ui.Component comp) |
static Widget |
getVisibleWidget(Widgetslot parent,
String childSlotId,
Predicate<Widget> visibilityCheck)
Gets a visible widget on slot with provided id.
|
static List<Widget> |
getVisibleWidgets(Widgetslot widgetslot,
Predicate<Widget> visibilityCheck)
Returns a list of widgets that are children of the given widget slot that are visible according to
visibilityCheck method. |
static void |
updateRootWidget(Widgetslot widgetComp,
boolean resetWidget) |
public static WidgetContainer getParentWidgetContainer(org.zkoss.zk.ui.Component comp)
WidgetContainer, i.e. either a Widgetslot or
a Widgetchildren, whatever comes first.public static Widgetslot getParentWidgetslot(org.zkoss.zk.ui.Component comp)
public static Widgetchildren getParentWidgetchildren(org.zkoss.zk.ui.Component comp)
public static org.zkoss.zk.ui.Component getFirstWidgetChild(org.zkoss.zk.ui.Component component)
public static void updateRootWidget(Widgetslot widgetComp, boolean resetWidget)
public static Widget getVisibleWidget(Widgetslot parent, String childSlotId, Predicate<Widget> visibilityCheck)
parent - parent slotchildSlotId - id of slot to be checkedvisibilityCheck - a predicate to check whether a widget is visiblepublic static List<Widget> getVisibleWidgets(Widgetslot widgetslot, Predicate<Widget> visibilityCheck)
visibilityCheck method.widgetslot - Widgetslot for which the visible widgets should be foundList of WidgetCopyright © 2018. All rights reserved.