Class DefaultWidgetCaptionWrapper

    • Constructor Detail

      • DefaultWidgetCaptionWrapper

        public DefaultWidgetCaptionWrapper​(WidgetCaptionEventListener containerListener,
                                           boolean focused,
                                           boolean minimized,
                                           boolean maximized,
                                           boolean collapsed)
    • Method Detail

      • hideContainerControls

        public void hideContainerControls​(int controls)
        Description copied from interface: WidgetCaptionWrapper
        Call this in your renderer method to hide standard controls from the container, e.g. if you want to render buttons to control minimizing and maximizing of the widget and thus don't need the minimize/maximize buttons of a window/panel/... you could use

        hideContainerControls(WidgetCaptionWrapper.CONTROL_MINIMIZE | WidgetCaptionWrapper.CONTROL_MAXIMIZE)

        Specified by:
        hideContainerControls in interface WidgetCaptionWrapper
      • getHiddenContainerControls

        public int getHiddenContainerControls()
      • sendEvent

        public void sendEvent​(java.lang.String eventName,
                              boolean state)
      • notifyContainerListener

        protected void notifyContainerListener​(java.lang.String eventName)
      • setFocused

        public void setFocused​(boolean focused)
        Description copied from interface: WidgetCaptionWrapper
        Sets the focus to (or selects) the current widget within it's widgetchildren container.
        Specified by:
        setFocused in interface WidgetCaptionWrapper
      • close

        public void close()
        Description copied from interface: WidgetCaptionWrapper
        Closes the container (this usually means that the related widget instance is removed).
        Specified by:
        close in interface WidgetCaptionWrapper
      • setMaximizable

        public void setMaximizable​(boolean maximizable)
      • setMinimizable

        public void setMinimizable​(boolean minimizable)
      • setClosable

        public void setClosable​(boolean closable)
      • setCollapsible

        public void setCollapsible​(boolean collapsible)