Class 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.Component createCaption​(Widgetslot slot, java.lang.String fallbackTitle, DefaultWidgetCaptionWrapper callback)
      Creates caption based on the child widget's title for its parent widget.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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