站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

CompletionQuery.DefaultResultItem (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor.ext
Class CompletionQuery.DefaultResultItem

java.lang.Object
  extended by org.netbeans.editor.ext.CompletionQuery.AbstractResultItem
      extended by org.netbeans.editor.ext.CompletionQuery.DefaultResultItem
All Implemented Interfaces:
CompletionQuery.ResultItem
Enclosing interface:
CompletionQuery

public static class CompletionQuery.DefaultResultItem
extends CompletionQuery.AbstractResultItem


Field Summary
protected  Color foreColor
          Color used for painting text of non-selected item
 
Fields inherited from class org.netbeans.editor.ext.CompletionQuery.AbstractResultItem
text
 
Constructor Summary
CompletionQuery.DefaultResultItem(String text, Color foreColor)
           
 
Method Summary
 Component getPaintComponent(JList list, boolean isSelected, boolean cellHasFocus)
          Prepare proper component for painting value of this.
 
Methods inherited from class org.netbeans.editor.ext.CompletionQuery.AbstractResultItem
getItemText, substituteCommonText, substituteText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

foreColor

protected Color foreColor
Color used for painting text of non-selected item

Constructor Detail

CompletionQuery.DefaultResultItem

public CompletionQuery.DefaultResultItem(String text,
                                         Color foreColor)
Method Detail

getPaintComponent

public Component getPaintComponent(JList list,
                                   boolean isSelected,
                                   boolean cellHasFocus)
Description copied from interface: CompletionQuery.ResultItem
Prepare proper component for painting value of this.

isSelected - tells if this item is just selected, for using proper color scheme.
cellHasFocus - tells it this item is just focused.
Returns:
the component usable for painting this value

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.