Package ej.mwt

Interface Widget.WidgetListener

  • Enclosing class:
    Widget

    public static interface Widget.WidgetListener
    Listener for widget events.
    • Method Detail

      • createNewWidget

        void createNewWidget​(Widget widget)
        Method called when the widget is instantiated.
        Parameters:
        widget - the reference of the newly instantiated widget.
      • onAttached

        void onAttached​(Widget widget)
        Method called when the widget is attached to the Desktop's widget hierarchy.
        Parameters:
        widget - the reference of the attached widget.
      • onDetached

        void onDetached​(Widget widget)
        Method called when the widget is detached to the Desktop's widget hierarchy.
        Parameters:
        widget - the reference of the detached widget.
      • onShown

        void onShown​(Widget widget)
        Method called when the widget is shown.
        Parameters:
        widget - the reference of the shown widget.
      • onHidden

        void onHidden​(Widget widget)
        Method called when the widget is hidden.
        Parameters:
        widget - the reference of the hidden widget.
      • updateStyleStart

        void updateStyleStart​(Widget widget)
        Method called at the beginning of the widget's style update.
        Parameters:
        widget - the reference of the widget which style is updated.
      • updateStyleStop

        void updateStyleStop​(Widget widget)
        Method called at the end of the widget's style update.
        Parameters:
        widget - the reference of the widget which style is updated.
      • computeOptimalSizeStart

        void computeOptimalSizeStart​(Widget widget)
        Method called at the beginning of the widget's optimal size computing.
        Parameters:
        widget - the reference of the widget which optimal size is computed.
      • computeOptimalSizeStop

        void computeOptimalSizeStop​(Widget widget)
        Method called at the end of the widget's optimal size computing.
        Parameters:
        widget - the reference of the widget which optimal size is computed.
      • layOutStart

        void layOutStart​(Widget widget)
        Method called at the beginning of the widget's layout.
        Parameters:
        widget - the reference of the laid out widget.
      • layOutStop

        void layOutStop​(Widget widget)
        Method called at the end of the widget's layout.
        Parameters:
        widget - the reference of the laid out widget.
      • renderStart

        void renderStart​(Widget widget)
        Method called at the beginning of the widget's rendering.
        Parameters:
        widget - the reference of the rendered widget.
      • renderStop

        void renderStop​(Widget widget)
        Method called at the end of the widget's rendering.
        Parameters:
        widget - the reference of the rendered widget.