caretRowBgColor = globalScheme.getColor(DataGridTextAttributesKeys.CARET_ROW_BACKGROUND);
deletedData = TextAttributesUtil.getSimpleTextAttributes(DataGridTextAttributesKeys.DELETED_DATA);
errorData = TextAttributesUtil.getSimpleTextAttributes(DataGridTextAttributesKeys.ERROR_DATA);
modifiedData = TextAttributesUtil.getSimpleTextAttributes(DataGridTextAttributesKeys.MODIFIED_DATA);
modifiedDataAtCaretRow = new SimpleTextAttributes(caretRowBgColor, modifiedData.getFgColor(), null, modifiedData.getFontStyle());
plainData = TextAttributesUtil.getSimpleTextAttributes(DataGridTextAttributesKeys.PLAIN_DATA);
plainDataModified = new SimpleTextAttributes(
nvln(modifiedData.getBgColor(), plainData.getBgColor()),
nvln(modifiedData.getFgColor(), plainData.getFgColor()), null,
modifiedData.getFontStyle());
plainDataAtCaretRow = new SimpleTextAttributes(caretRowBgColor, plainData.getFgColor(), null, plainData.getFontStyle());
plainDataAtCaretRowModified = new SimpleTextAttributes(
caretRowBgColor,
nvln(modifiedData.getFgColor(), plainData.getFgColor()), null,
modifiedData.getFontStyle());
readonlyData = TextAttributesUtil.getSimpleTextAttributes(DataGridTextAttributesKeys.READONLY_DATA);
readonlyDataModified = new SimpleTextAttributes(
nvln(modifiedData.getBgColor(), readonlyData.getBgColor()),
nvln(modifiedData.getFgColor(), readonlyData.getFgColor()), null,
modifiedData.getFontStyle());
readonlyDataAtCaretRow = new SimpleTextAttributes(caretRowBgColor, readonlyData.getFgColor(), null, readonlyData.getFontStyle());
readonlyDataAtCaretRowModified = new SimpleTextAttributes(
caretRowBgColor,
nvln(modifiedData.getFgColor(), readonlyData.getFgColor()), null,
modifiedData.getFontStyle());
loadingData = TextAttributesUtil.getSimpleTextAttributes(DataGridTextAttributesKeys.LOADING_DATA);
loadingDataAtCaretRow = new SimpleTextAttributes(caretRowBgColor, loadingData.getFgColor(), null, loadingData.getFontStyle());
primaryKey= TextAttributesUtil.getSimpleTextAttributes(DataGridTextAttributesKeys.PRIMARY_KEY);
primaryKeyModified = new SimpleTextAttributes(
nvln(modifiedData.getBgColor(), primaryKey.getBgColor()),
nvln(modifiedData.getFgColor(), primaryKey.getFgColor()), null,
modifiedData.getStyle());
primaryKeyAtCaretRow = new SimpleTextAttributes(caretRowBgColor, primaryKey.getFgColor(), null, primaryKey.getStyle());
primaryKeyAtCaretRowModified = new SimpleTextAttributes(
caretRowBgColor,
nvln(modifiedData.getFgColor(), primaryKey.getFgColor()), null,
modifiedData.getStyle());
foreignKey = TextAttributesUtil.getSimpleTextAttributes(DataGridTextAttributesKeys.FOREIGN_KEY);
foreignKeyModified = new SimpleTextAttributes(
nvln(modifiedData.getBgColor(), foreignKey.getBgColor()),
nvln(modifiedData.getFgColor(), foreignKey.getFgColor()), null,
modifiedData.getStyle());
foreignKeyAtCaretRow = new SimpleTextAttributes(caretRowBgColor, foreignKey.getFgColor(), null, foreignKey.getStyle());
foreignKeyAtCaretRowModified = new SimpleTextAttributes(
caretRowBgColor,
nvln(modifiedData.getFgColor(), foreignKey.getFgColor()), null,
modifiedData.getStyle());
selection = TextAttributesUtil.getSimpleTextAttributes(DataGridTextAttributesKeys.SELECTION);