KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > viewers > model > provisional > ILabelUpdate


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.viewers.model.provisional;
12
13 import org.eclipse.jface.resource.ImageDescriptor;
14 import org.eclipse.swt.graphics.FontData;
15 import org.eclipse.swt.graphics.RGB;
16
17 /**
18  * Context sensitive label update request for an element.
19  * <p>
20  * Clients are not intended to implement this interface.
21  * </p>
22  * @since 3.3
23  */

24 public interface ILabelUpdate extends IViewerUpdate {
25         
26     /**
27      * Returns the id's of the visible columns in presentation order,
28      * or <code>null</code> if none.
29      *
30      * @return column id's or <code>null</code>
31      */

32     public String JavaDoc[] getColumnIds();
33
34     /**
35      * Sets the text of the label of the specified column. Cannot be <code>null</code>.
36      *
37      * @param text
38      * @param columnIndex column index (0 when no columns)
39      */

40     public void setLabel(String JavaDoc text, int columnIndex);
41     
42     /**
43      * Sets the font of the label.
44      *
45      * @param fontData
46      * @param columnIndex column index (0 when no columns)
47      */

48     public void setFontData(FontData fontData, int columnIndex);
49     
50     /**
51      * Sets the image of the label.
52      *
53      * @param image
54      * @param columnIndex column index (0 when no columns)
55      */

56     public void setImageDescriptor(ImageDescriptor image, int columnIndex);
57     
58     /**
59      * Sets the foreground color of the label.
60      *
61      * @param foreground
62      * @param columnIndex column index (0 when no columns)
63      */

64     public void setForeground(RGB foreground, int columnIndex);
65     
66     /**
67      * Sets the background color of the label.
68      *
69      * @param background
70      * @param columnIndex column index (0 when no columns)
71      */

72     public void setBackground(RGB background, int columnIndex);
73 }
74
Popular Tags