1 19 20 package org.netbeans.spi.editor.completion; 21 22 import java.awt.Color ; 23 import java.awt.Font ; 24 import java.awt.Graphics ; 25 import java.awt.event.KeyEvent ; 26 import javax.swing.text.JTextComponent ; 27 28 35 36 public interface CompletionItem { 37 38 46 void defaultAction(JTextComponent component); 47 48 59 void processKeyEvent(KeyEvent evt); 60 61 70 int getPreferredWidth(Graphics g, Font defaultFont); 71 72 84 void render(Graphics g, Font defaultFont, Color defaultColor, 85 Color backgroundColor, int width, int height, boolean selected); 86 87 91 CompletionTask createDocumentationTask(); 92 93 97 CompletionTask createToolTipTask(); 98 99 117 boolean instantSubstitution(JTextComponent component); 118 119 123 int getSortPriority(); 124 125 128 CharSequence getSortText(); 129 130 153 CharSequence getInsertPrefix(); 154 155 } 156 | Popular Tags |