Package org.omegat.util.gui
Class DataTableStyling
- java.lang.Object
-
- org.omegat.util.gui.DataTableStyling
-
public final class DataTableStyling extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataTableStyling.AlternatingHighlightRenderer
static class
DataTableStyling.FancyRenderer<T extends javax.swing.JComponent>
static class
DataTableStyling.PatternHighlightRenderer
-
Field Summary
Fields Modifier and Type Field Description static java.awt.Color
COLOR_ALTERNATING_HILITE
static java.awt.Color
COLOR_SELECTION_BG
static java.awt.Color
COLOR_SELECTION_FG
static java.awt.Color
COLOR_STANDARD_BG
static java.awt.Color
COLOR_STANDARD_FG
static int
FONT_NO_CHANGE
static int
LINE_SPACING
static java.text.DecimalFormat
NUMBER_FORMAT
static javax.swing.border.Border
TABLE_FOCUS_BORDER
static javax.swing.border.Border
TABLE_NO_FOCUS_BORDER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
applyColors(javax.swing.JTable table)
static void
applyFont(javax.swing.JTable table, java.awt.Font font)
static javax.swing.table.TableCellRenderer
getHeaderTextCellRenderer()
static javax.swing.table.TableCellRenderer
getNumberCellRenderer()
static javax.swing.table.TableCellRenderer
getTextCellRenderer()
-
-
-
Field Detail
-
COLOR_STANDARD_FG
public static final java.awt.Color COLOR_STANDARD_FG
-
COLOR_STANDARD_BG
public static final java.awt.Color COLOR_STANDARD_BG
-
COLOR_SELECTION_FG
public static final java.awt.Color COLOR_SELECTION_FG
-
COLOR_SELECTION_BG
public static final java.awt.Color COLOR_SELECTION_BG
-
COLOR_ALTERNATING_HILITE
public static final java.awt.Color COLOR_ALTERNATING_HILITE
-
TABLE_FOCUS_BORDER
public static final javax.swing.border.Border TABLE_FOCUS_BORDER
-
TABLE_NO_FOCUS_BORDER
public static final javax.swing.border.Border TABLE_NO_FOCUS_BORDER
-
NUMBER_FORMAT
public static final java.text.DecimalFormat NUMBER_FORMAT
-
FONT_NO_CHANGE
public static final int FONT_NO_CHANGE
- See Also:
- Constant Field Values
-
LINE_SPACING
public static final int LINE_SPACING
- See Also:
- Constant Field Values
-
-
Method Detail
-
applyColors
public static void applyColors(javax.swing.JTable table)
-
applyFont
public static void applyFont(javax.swing.JTable table, java.awt.Font font)
-
getNumberCellRenderer
public static javax.swing.table.TableCellRenderer getNumberCellRenderer()
-
getTextCellRenderer
public static javax.swing.table.TableCellRenderer getTextCellRenderer()
-
getHeaderTextCellRenderer
public static javax.swing.table.TableCellRenderer getHeaderTextCellRenderer()
-
-