item.setForeground( c + 1, GUIResource.getInstance().getColorBlack() ); } else { item.setForeground( c + 1, GUIResource.getInstance().getColorBlue() );
item.setForeground( c + 1, GUIResource.getInstance().getColorBlack() ); } else { item.setForeground( c + 1, GUIResource.getInstance().getColorBlue() );
item.setForeground( c + 1, GUIResource.getInstance().getColorBlack() ); } else { item.setForeground( c + 1, GUIResource.getInstance().getColorBlue() );
item.setText( 2, meta.getMeasure().getFieldName() ); item.setForeground( Display.getCurrent().getSystemColor( SWT.COLOR_DARK_GREEN ) );
item.setForeground( Display.getCurrent().getSystemColor( SWT.COLOR_DARK_GREEN ) );
item.setForeground( colNr + 1, GUIResource.getInstance().getColorBlue() ); } else { item.setText( colNr + 1, string );
if ( showingBlueNullValues && string == null ) { string = "<null>"; item.setForeground( j - 2, GUIResource.getInstance().getColorBlue() ); } else { item.setForeground( j - 2, GUIResource.getInstance().getColorBlack() );
item.setForeground( GUIResource.getInstance().getColorBlack() ); if ( !item.getBackground().equals( GUIResource.getInstance().getColorRed() ) ) { item.setBackground(
@Override public void setForeground(int columnIndex, Color color) { item.setForeground(columnIndex, color); }
@Override public void setForeground(int columnIndex, Color color) { item.setForeground(columnIndex, color); }
public void setForeground(int columnIndex, Color color) { item.setForeground(columnIndex, color); }
protected void doUpdateItem(Widget item, Object element, boolean fullMap) { super.doUpdateItem(item, element, fullMap); if (((SearchResultViewEntry)element).isPotentialMatch()) { TableItem ti = (TableItem) item; ti.setForeground(fPotentialMatchFgColor); } }
@Override protected void doUpdateItem(Widget item, Object element, boolean fullMap) { super.doUpdateItem(item, element, fullMap); if (((SearchResultViewEntry)element).isPotentialMatch()) { TableItem ti = (TableItem) item; ti.setForeground(fPotentialMatchFgColor); } }
private void fillDashLine(TableItem item) { Rectangle bounds= item.getImageBounds(0); Rectangle area= fTable.getBounds(); boolean willHaveScrollBar= fExpectedItemCount + 1 > fNumberOfVisibleItems; item.setText(fDashLine.getText(area.width - bounds.x - bounds.width - fTableWidthDelta - (willHaveScrollBar ? fScrollbarWidth : 0))); item.setImage(fSeparatorIcon); item.setForeground(fDashLineColor); item.setData(fDashLine); }
private void fillDashLine(TableItem item) { Rectangle bounds= item.getImageBounds(0); Rectangle area= fTable.getBounds(); boolean willHaveScrollBar= fExpectedItemCount + 1 > fNumberOfVisibleItems; item.setText(fDashLine.getText(area.width - bounds.x - bounds.width - fTableWidthDelta - (willHaveScrollBar ? fScrollbarWidth : 0))); item.setImage(fSeparatorIcon); item.setForeground(fDashLineColor); item.setData(fDashLine); }
private void fillDashLine(TableItem item) { Rectangle bounds= item.getImageBounds(0); Rectangle area= fTable.getBounds(); boolean willHaveScrollBar= fExpectedItemCount + 1 > fNumberOfVisibleItems; item.setText(fDashLine.getText(area.width - bounds.x - bounds.width - fTableWidthDelta - (willHaveScrollBar ? fScrollbarWidth : 0))); item.setImage(fSeparatorIcon); item.setForeground(fDashLineColor); item.setData(fDashLine); }
private void fillDashLine(TableItem item) { Rectangle bounds= item.getImageBounds(0); Rectangle area= fTable.getBounds(); boolean willHaveScrollBar= fExpectedItemCount + 1 > fNumberOfVisibleItems; item.setText(fDashLine.getText(area.width - bounds.x - bounds.width - fTableWidthDelta - (willHaveScrollBar ? fScrollbarWidth : 0))); item.setImage(fSeparatorIcon); item.setForeground(fDashLineColor); item.setData(fDashLine); }
/** * Sets the foreground color of the Row 0 TableItem in column 1. */ void setCellForeground () { if (!instance.startup) { table1.getItem (0).setForeground (1, cellForegroundColor); } /* Set the foreground color item's image to match the foreground color of the cell. */ Color color = cellForegroundColor; if (color == null) color = table1.getItem (0).getForeground (1); TableItem item = colorAndFontTable.getItem(CELL_FOREGROUND_COLOR); Image oldImage = item.getImage(); if (oldImage != null) oldImage.dispose(); item.setImage (colorImage(color)); }
private void colorItems() { TableItem[] items = table.getItems(); for(int i = 0 ; i < items.length ; i++) { TableItem item = items[i]; Object object = item.getData(); if(!(object instanceof RulePreferenceData)) { return; } RulePreferenceData data = (RulePreferenceData)item.getData(); item.setBackground(new Color(Display.getDefault(),data.getBackgroundColor())); item.setForeground(new Color(Display.getDefault(),data.getForegroundColor())); } } }
private void setData(TableItem item) { int index= fTable.indexOf(item); TypeNameMatch type= getTypeInfo(index); if (type == DASH_LINE) { item.setData(fDashLine); fillDashLine(item); } else { item.setData(type); item.setImage(fImageManager.get(fLabelProvider.getImageDescriptor(type))); item.setText(fLabelProvider.getText( getTypeInfo(index - 1), type, getTypeInfo(index + 1))); item.setForeground(null); } }