@Override public Font getFont(MyModel element, int columnIndex) { if (element.counter % 2 == 0) { return registry.getBold(Display.getCurrent().getSystemFont().getFontData()[0].getName()); } return null; }
public void updateSummaryLabel(int candidateCnt, String orgUserName) { if (lblSummary != null) { lblSummary.setText("Found " + candidateCnt + " deployment candidates"); FontRegistry registry = new FontRegistry(); Font boldFont = registry.getBold(Display.getCurrent().getSystemFont().getFontData()[0].getName()); lblSummary.setFont(boldFont); lblSummary.update(); } }
public Font getFont(Object element, int columnIndex) { if (columnIndex == 0) { return registry.getBold(Display.getCurrent().getSystemFont().getFontData()[0].getName()); } return null; }