Package org.omegat.util.gui
Class DataTableStyling.FancyRenderer<T extends javax.swing.JComponent>
- java.lang.Object
-
- org.omegat.util.gui.DataTableStyling.FancyRenderer<T>
-
- All Implemented Interfaces:
javax.swing.table.TableCellRenderer
- Direct Known Subclasses:
DataTableStyling.AlternatingHighlightRenderer
,DataTableStyling.PatternHighlightRenderer
- Enclosing class:
- DataTableStyling
public abstract static class DataTableStyling.FancyRenderer<T extends javax.swing.JComponent> extends java.lang.Object implements javax.swing.table.TableCellRenderer
-
-
Constructor Summary
Constructors Constructor Description FancyRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Component
getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
DataTableStyling.FancyRenderer<T>
setDoHighlight(boolean doHighlight)
DataTableStyling.FancyRenderer<T>
setFontStyle(int fontStyle)
DataTableStyling.FancyRenderer<T>
setNumberFormat(java.text.NumberFormat numberFormat)
-
-
-
Method Detail
-
setNumberFormat
public DataTableStyling.FancyRenderer<T> setNumberFormat(java.text.NumberFormat numberFormat)
-
setDoHighlight
public DataTableStyling.FancyRenderer<T> setDoHighlight(boolean doHighlight)
-
setFontStyle
public DataTableStyling.FancyRenderer<T> setFontStyle(int fontStyle)
-
getTableCellRendererComponent
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
- Specified by:
getTableCellRendererComponent
in interfacejavax.swing.table.TableCellRenderer
-
-