Package org.omegat.util.gui
Class DataTableStyling.PatternHighlightRenderer
- java.lang.Object
-
- org.omegat.util.gui.DataTableStyling.FancyRenderer<javax.swing.JTextPane>
-
- org.omegat.util.gui.DataTableStyling.PatternHighlightRenderer
-
- All Implemented Interfaces:
javax.swing.table.TableCellRenderer
- Enclosing class:
- DataTableStyling
public static class DataTableStyling.PatternHighlightRenderer extends DataTableStyling.FancyRenderer<javax.swing.JTextPane>
-
-
Constructor Summary
Constructors Constructor Description PatternHighlightRenderer(boolean lineWrapEnabled)
Create a new PatternHighlightRenderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTableStyling.PatternHighlightRenderer
setPattern(java.util.regex.Pattern pattern)
-
Methods inherited from class org.omegat.util.gui.DataTableStyling.FancyRenderer
getTableCellRendererComponent, setDoHighlight, setFontStyle, setNumberFormat
-
-
-
-
Constructor Detail
-
PatternHighlightRenderer
public PatternHighlightRenderer(boolean lineWrapEnabled)
Create a new PatternHighlightRenderer.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.- Parameters:
lineWrapEnabled
- Whether to allow line wrapping- See Also:
- Bug #862
-
-
Method Detail
-
setPattern
public DataTableStyling.PatternHighlightRenderer setPattern(java.util.regex.Pattern pattern)
-
-