net.sf.doolin.gui.swing
Class CompletionSupport<E>

java.lang.Object
  extended by net.sf.doolin.gui.swing.CompletionSupport<E>
Type Parameters:
E - Type of item in the combo box

public class CompletionSupport<E>
extends Object

Support class for the auto-completion of JComboBox.

Author:
Damien Coraboeuf

Constructor Summary
CompletionSupport()
           
 
Method Summary
 String getFilterMode()
          Gets the filter mode as defined as constants in TextMatcherEditor .
 Format getFormat()
          Gets the format used for items
 ca.odell.glazedlists.TextFilterator<E> getOrCreateTextFilterator()
          Returns the filter used by the combo box to convert items to text and creates it if needed
 ca.odell.glazedlists.TextFilterator<E> getTextFilterator()
          Gets the filter used by the combo box to convert items to text
 boolean isStrict()
          Checks if the auto-completion does not accept new entries
 void setFilterMode(String filterMode)
          Sets the filter mode as defined as constants in TextMatcherEditor
 void setFormat(Format format)
          Sets the format used for item
 void setStrict(boolean strict)
          Sets if the auto-completion does not accept new entries
 void setTextFilterator(ca.odell.glazedlists.TextFilterator<E> textFilterator)
          Sets the filter used by the combo box to convert items to text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompletionSupport

public CompletionSupport()
Method Detail

getFormat

public Format getFormat()
Gets the format used for items

Returns:
Format

setFormat

public void setFormat(Format format)
Sets the format used for item

Parameters:
format - Format

isStrict

public boolean isStrict()
Checks if the auto-completion does not accept new entries

Returns:
true if the auto-completion does not accept new entries

setStrict

public void setStrict(boolean strict)
Sets if the auto-completion does not accept new entries

Parameters:
strict - true if the auto-completion does not accept new entries

getFilterMode

public String getFilterMode()
Gets the filter mode as defined as constants in TextMatcherEditor .

Returns:
Filter mode

setFilterMode

public void setFilterMode(String filterMode)
Sets the filter mode as defined as constants in TextMatcherEditor

Parameters:
filterMode - Filter mode

getTextFilterator

public ca.odell.glazedlists.TextFilterator<E> getTextFilterator()
Gets the filter used by the combo box to convert items to text

Returns:
Filter

setTextFilterator

public void setTextFilterator(ca.odell.glazedlists.TextFilterator<E> textFilterator)
Sets the filter used by the combo box to convert items to text

Parameters:
textFilterator - Filter

getOrCreateTextFilterator

public ca.odell.glazedlists.TextFilterator<E> getOrCreateTextFilterator()
Returns the filter used by the combo box to convert items to text and creates it if needed

Returns:
Filter


Copyright © 2011. All Rights Reserved.