Package com.hybris.cockpitng.util
Class WidgetSlotUtils
- java.lang.Object
-
- com.hybris.cockpitng.util.WidgetSlotUtils
-
public final class WidgetSlotUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.zkoss.zk.ui.ComponentcreateCaption(Widgetslot slot, java.lang.String fallbackTitle, DefaultWidgetCaptionWrapper callback)Creates caption based on the child widget's title for its parent widget.
-
-
-
Method Detail
-
createCaption
public static org.zkoss.zk.ui.Component createCaption(Widgetslot slot, java.lang.String fallbackTitle, DefaultWidgetCaptionWrapper callback)
Creates caption based on the child widget's title for its parent widget. This implementation supports collapsible container aware widgets.- Parameters:
slot- Widget to listen for title changes.fallbackTitle- Title to be used for the case the embedded widget slot does not provide any title.- Returns:
- Caption component with the updated title for the parent widget.
- See Also:
WidgetCaptionRenderer
-
-