Search in sources :

Example 1 with MergedRecordsTableModel

use of com.revolsys.swing.map.layer.record.table.model.MergedRecordsTableModel in project com.revolsys.open by revolsys.

the class MergedNullValuePredicate method add.

public static void add(final RecordRowTable table) {
    final MergedRecordsTableModel model = table.getTableModel();
    final MergedNullValuePredicate predicate = new MergedNullValuePredicate(model);
    table.addHighlighter(new ColorHighlighter(predicate, WebColors.Yellow, WebColors.Black, WebColors.Orange, WebColors.Black));
}
Also used : ColorHighlighter(org.jdesktop.swingx.decorator.ColorHighlighter) MergedRecordsTableModel(com.revolsys.swing.map.layer.record.table.model.MergedRecordsTableModel)

Example 2 with MergedRecordsTableModel

use of com.revolsys.swing.map.layer.record.table.model.MergedRecordsTableModel in project com.revolsys.open by revolsys.

the class MergedValuePredicate method add.

public static void add(final RecordRowTable table) {
    final MergedRecordsTableModel model = table.getTableModel();
    final MergedValuePredicate predicate = new MergedValuePredicate(model);
    table.addHighlighter(new ColorHighlighter(predicate, WebColors.Moccasin, WebColors.DarkOrange, WebColors.DarkOrange, WebColors.Moccasin));
}
Also used : ColorHighlighter(org.jdesktop.swingx.decorator.ColorHighlighter) MergedRecordsTableModel(com.revolsys.swing.map.layer.record.table.model.MergedRecordsTableModel)

Example 3 with MergedRecordsTableModel

use of com.revolsys.swing.map.layer.record.table.model.MergedRecordsTableModel in project com.revolsys.open by revolsys.

the class MergedRecordPredicate method add.

public static void add(final RecordRowTable table) {
    final MergedRecordsTableModel model = table.getTableModel();
    final MergedRecordPredicate predicate = new MergedRecordPredicate(model);
    final Highlighter colors = new ColorHighlighter(predicate, WebColors.newAlpha(WebColors.Green, 64), WebColors.Black, WebColors.Green, WebColors.White);
    table.addHighlighter(colors);
}
Also used : ColorHighlighter(org.jdesktop.swingx.decorator.ColorHighlighter) MergedRecordsTableModel(com.revolsys.swing.map.layer.record.table.model.MergedRecordsTableModel) Highlighter(org.jdesktop.swingx.decorator.Highlighter) ColorHighlighter(org.jdesktop.swingx.decorator.ColorHighlighter)

Aggregations

MergedRecordsTableModel (com.revolsys.swing.map.layer.record.table.model.MergedRecordsTableModel)3 ColorHighlighter (org.jdesktop.swingx.decorator.ColorHighlighter)3 Highlighter (org.jdesktop.swingx.decorator.Highlighter)1