Interface Button.DataRenderer

    • Method Detail

      • render

        void render​(java.lang.Object data,
                    Button button,
                    boolean highlighted)
        Prepares the renderer for layout or paint.
        Parameters:
        data - The data to render, or null if called to calculate preferred height for skins that assume a fixed renderer height.
        button - The host component.
        highlighted - If true, the item is highlighted.
      • toString

        java.lang.String toString​(java.lang.Object data)
        Converts button data to a string representation.
        Parameters:
        data - The button's data.
        Returns:
        The data's string representation, or null if the data does not have a string representation.

        Note that this method may be called often during keyboard navigation, so implementations should avoid unnecessary string allocations.