Package com.im.ijc.core.api.renderers
Interface IJCWidgetTextRenderer
-
- All Superinterfaces:
org.openide.util.Lookup.Provider
public interface IJCWidgetTextRenderer extends org.openide.util.Lookup.Provider
Provides an information how to updateJTextField
to display some value. This information is returned as instance ofIJCWidgetTextRenderer.TextFormatInfo
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IJCWidgetTextRenderer.TextFormatInfo
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_TEXT_LENGTH
Maximal number of characters text renderers should try to display.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getExportNumberFormatPattern()
Gets formatting pattern for integer and float renderers for export.org.openide.util.Lookup
getLookup()
Returned lookup can be used by widget to delegate printing ifJRPrintable
instance is found there.IJCWidgetTextRenderer.TextFormatInfo
getTextFormatInfo(java.lang.Object value)
boolean
isMultiLine()
-
-
-
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
-
getTextFormatInfo
IJCWidgetTextRenderer.TextFormatInfo getTextFormatInfo(java.lang.Object value)
-
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). Returnsnull
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 ifJRPrintable
instance is found there.- Specified by:
getLookup
in interfaceorg.openide.util.Lookup.Provider
- Returns:
- renderer's lookup providing additional functionality.
-
-