if (getCurrentObject().getClsId() == 160) {//for currency object
PatternHighlighter pattern = new PatternHighlighter();
int columnIndex = -1;
for (int i = 0; i < objectTable.getColumnCount(false); i++) {
TableColumnExt tce = objectTable.getColumnExt(i);
String ccTitle = ObjectUtil.findColumnTxt(160, "C", "C");
if (ccTitle.equals(tce.getTitle())) {
columnIndex = i;
break;
}
}
if (columnIndex != -1) {
String lc = CurrencyPlugin.getInstance().getLc();
String regularExpr = lc;
pattern.setPattern(regularExpr, columnIndex);
pattern.setBackground(Color.BLUE);
pattern.setForeground(Color.WHITE);
highlighters.addHighlighter(pattern);
}
} else if (getCurrentObject().getClsId() == 140) {//for ruser object
PatternHighlighter pattern = new PatternHighlighter();
int columnIndex = -1;
for (int i = 0; i < objectTable.getColumnCount(false); i++) {
TableColumnExt tce = objectTable.getColumnExt(i);
String ccTitle = ObjectUtil.findColumnTxt(140, "RUSER", "RUSER");
if (ccTitle.equals(tce.getTitle())) {
columnIndex = i;
break;
}
}
if (columnIndex != -1) {
String regularExpr = GlobalValueManager.getValue("SESSION.LOGINUSER");
pattern.setPattern(regularExpr, columnIndex);
pattern.setBackground(Color.BLUE);
pattern.setForeground(Color.WHITE);
highlighters.addHighlighter(pattern);
}
} else if (getCurrentObject().getClsId() == 120) {//for at object
PatternHighlighter pattern = new PatternHighlighter();
int columnIndex = -1;
for (int i = 0; i < objectTable.getColumnCount(false); i++) {
TableColumnExt tce = objectTable.getColumnExt(i);
String ccTitle = ObjectUtil.findColumnTxt(120, "AT", "AT");
if (ccTitle.equals(tce.getTitle())) {
columnIndex = i;
break;
}
}
if (columnIndex != -1) {