Interface IJCWidgetTextRenderer

  • All Superinterfaces:
    org.openide.util.Lookup.Provider

    public interface IJCWidgetTextRenderer
    extends org.openide.util.Lookup.Provider
    Provides an information how to update JTextField to display some value. This information is returned as instance of IJCWidgetTextRenderer.TextFormatInfo.
    • Field Detail

      • MAX_TEXT_LENGTH

        static final int MAX_TEXT_LENGTH
        Maximal number of characters text renderers should try to display.
        See Also:
        Constant Field Values
    • Method Detail

      • getExportNumberFormatPattern

        java.lang.String getExportNumberFormatPattern()
        Gets formatting pattern for integer and float renderers for export. This pattern can be used e.g. in {@link DecimalFormat#DecimalFormat(java.lang.String). Returns null for other renderers or if formatting is not needed.
        Returns:
        formatting pattern for integer and float renderers or null
      • isMultiLine

        boolean isMultiLine()
        Returns:
        whether this renderer is able to render multi-line text
      • getLookup

        org.openide.util.Lookup getLookup()
        Returned lookup can be used by widget to delegate printing if JRPrintable instance is found there.
        Specified by:
        getLookup in interface org.openide.util.Lookup.Provider
        Returns:
        renderer's lookup providing additional functionality.