public static class DataTableStyling.PatternHighlightRenderer extends DataTableStyling.FancyRenderer<javax.swing.JTextPane>
Constructor and Description |
---|
PatternHighlightRenderer(boolean lineWrapEnabled)
Create a new PatternHighlightRenderer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyValue(java.lang.String value) |
protected javax.swing.JTextPane |
getComponent() |
DataTableStyling.PatternHighlightRenderer |
setPattern(java.util.regex.Pattern pattern) |
getTableCellRendererComponent, setDoHighlight, setFontStyle, setNumberFormat, transformValue
public PatternHighlightRenderer(boolean lineWrapEnabled)
Disable line wrap when using this as a single-line renderer. This is because this renderer uses a
JTextPane
as its rendering component, and the default JTextPane wrapping results in words simply
disappearing when used as a single-line renderer.
lineWrapEnabled
- Whether to allow line wrappingpublic DataTableStyling.PatternHighlightRenderer setPattern(java.util.regex.Pattern pattern)
protected javax.swing.JTextPane getComponent()
getComponent
in class DataTableStyling.FancyRenderer<javax.swing.JTextPane>
protected void applyValue(java.lang.String value)
applyValue
in class DataTableStyling.FancyRenderer<javax.swing.JTextPane>