当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
CompletionQuery.DefaultResultItem (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor.ext
Class CompletionQuery.DefaultResultItem
java.lang.Object
org.netbeans.editor.ext.CompletionQuery.AbstractResultItem
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
foreColor
protected Color foreColor
- Color used for painting text of non-selected item
CompletionQuery.DefaultResultItem
public CompletionQuery.DefaultResultItem(String text,
Color foreColor)
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