## org.das2.jythoncompletion.DefaultCompletionItem

Completion item which will insert text when accepted.

## DefaultCompletionItem( String text, int offset, String complete, String label, String link, int sortPriority, javax.swing.ImageIcon icon )

## DefaultCompletionItem( String text, int offset, String complete, String label, String link )

## createDocumentationTask

createDocumentationTask( ) → org.das2.jythoncompletion.support.CompletionTask

### Returns:

org.das2.jythoncompletion.support.CompletionTask
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## createToolTipTask

createToolTipTask( ) → org.das2.jythoncompletion.support.CompletionTask

### Returns:

org.das2.jythoncompletion.support.CompletionTask
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## defaultAction

defaultAction( javax.swing.text.JTextComponent jTextComponent ) → void

### Parameters

jTextComponent - a JTextComponent

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## error

error( String message ) → org.das2.jythoncompletion.DefaultCompletionItem

### Parameters

message - a String

### Returns:

org.das2.jythoncompletion.DefaultCompletionItem
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getComplete

getComplete( ) → String

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getInsertPrefix

getInsertPrefix( ) → java.lang.CharSequence

### Returns:

java.lang.CharSequence
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getPreferredWidth

getPreferredWidth( java.awt.Graphics graphics, java.awt.Font font ) → int

### Parameters

graphics - a Graphics
font - a Font

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getSortPriority

getSortPriority( ) → int

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getSortText

getSortText( ) → java.lang.CharSequence

### Returns:

java.lang.CharSequence
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## instantSubstitution

instantSubstitution( javax.swing.text.JTextComponent jTextComponent ) → boolean

### Parameters

jTextComponent - a JTextComponent

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## processKeyEvent

processKeyEvent( java.awt.event.KeyEvent keyEvent ) → void

### Parameters

keyEvent - a KeyEvent

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## render

render( java.awt.Graphics graphics, java.awt.Font font, java.awt.Color color, java.awt.Color color0, int i, int i0, boolean b ) → void

### Parameters

graphics - a Graphics
font - a Font
color - a Color
color0 - a Color
i - an int
i0 - an int
b - a boolean

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setReferenceOnly

setReferenceOnly( boolean ref ) → void

### Parameters

ref - a boolean

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]