Class LegacyPaint

    • Constructor Detail

      • LegacyPaint

        public LegacyPaint()
    • Method Detail

      • paint

        public static void paint​(Component component,
                                 PaintTarget target)
                          throws PaintException

        Paints the Paintable into a UIDL stream. This method creates the UIDL sequence describing it and outputs it to the given UIDL stream.

        It is called when the contents of the component should be painted in response to the component first being shown or having been altered so that its visual representation is changed.

        Do not override this to paint your component. Override #paintContent(PaintTarget) instead.

        Parameters:
        target - the target UIDL stream where the component should paint itself to.
        Throws:
        PaintException - if the paint operation failed.