/* * XCItem.java * * Created on August 9, 2001, 12:09 PM */ package org.netbeans.xmlsupport.completion; import java.awt.Color; /** This class carries information of possible inserts directly to the underlying * text based completion support. */ public class XCItem { public String displayName; public javax.swing.Icon icon; public Color foreground; public Color background; public Color selectionForeground; public Color selectionBackground; /** Default constructor */ public XCItem(){} /** Creates new XCItem * @param displayName The string value that will be displayed in the completion window and will hence * be the replacement text if selected. * @param icon The icon that will be displayed for this element. * @param foreground The foreground color of the text * @param background The background color of the text * @param selectionForeground The foreground color of the selected text * @param selectionBackground The background color of the selected text */ public XCItem(String displayName, javax.swing.Icon icon, Color foreground, Color background, Color selectionForeground, Color selectionBackground) { this.displayName = displayName; this.icon = icon; this.foreground = foreground; this.background = background; this.selectionForeground = selectionForeground; this.selectionBackground = selectionBackground; } }