use of com.revolsys.swing.map.layer.record.table.model.LayerRecordTableModel in project com.revolsys.open by revolsys.
the class FormAllFieldsModifiedPredicate method add.
public static void add(final LayerRecordForm form, final BaseJTable table) {
final LayerRecordTableModel model = table.getTableModel();
final FormAllFieldsModifiedPredicate predicate = new FormAllFieldsModifiedPredicate(form, model);
table.addHighlighter(new ColorHighlighter(new AndHighlightPredicate(predicate, HighlightPredicate.EVEN), WebColors.newAlpha(WebColors.YellowGreen, 127), WebColors.Black, WebColors.LimeGreen, Color.WHITE));
table.addHighlighter(new ColorHighlighter(new AndHighlightPredicate(predicate, HighlightPredicate.ODD), WebColors.YellowGreen, WebColors.Black, WebColors.Green, Color.WHITE));
}
use of com.revolsys.swing.map.layer.record.table.model.LayerRecordTableModel in project com.revolsys.open by revolsys.
the class FormAllFieldsErrorPredicate method add.
public static void add(final LayerRecordForm form, final BaseJTable table) {
final LayerRecordTableModel model = table.getTableModel();
final FormAllFieldsErrorPredicate predicate = new FormAllFieldsErrorPredicate(form, model);
addErrorHighlighters(table, predicate);
}
Aggregations