Revision 8488 trunk/libraries/libUI/src/org/gvsig/gui/beans/comboBoxItemsSeeker/JComboBoxItemsSeekerConfigurable.java

View differences:

JComboBoxItemsSeekerConfigurable.java
136 136
 * Other functionality:
137 137
 *     - Similar functionality as JComboBox:
138 138
 *         + Select an item from the inner popup using the mouse
139
 *         + Show items/items that match in the inner popup
139
 *         + Show item/items that match in the inner popup
140 140
 *         + Similar edition operations: Right, left, ...
141 141
 *         + ...
142 142
 *     - With the keyboard the user can do the same operations as with the "edition popup menu" :
......
157 157
 *     - If the model of the component has lot of items, this could work slowly.
158 158
 *     - If the model has repeated items -> set true the flag 'allowedRepeatedItems', this will use the 'ComboBoxItemsSeekerConfigurableModel' model,
159 159
 *         and will work more slowly than the 'ComboBoxSingularItemsSeekerConfigurableModel' model; more as more items had the model.
160
 *     - It's possible that some combination of configuration would be unmanageable.
160 161
 *     - It's possible that some configuration or some operation fail !!  
161 162
 *
162 163
 * @author Pablo Piqueras Bartolom? (p_queras@hotmail.com)
......
220 221
	// END LISTENERS
221 222
	
222 223
	// EDITOR DOCUMENT REFERENCE
223
	private PlainDocumentSeeker document;
224
	private PlainDocumentTextFormatter document;
224 225
	// END EDITOR DOCUMENT REFERENCE
225 226
	
226 227
	// OTHER FLAGS
......
1334 1335
	 */
1335 1336
	private void configureDocument() {
1336 1337
		// Creates the document of the editor of this component
1337
        document = new PlainDocumentSeeker();
1338
        document = new PlainDocumentTextFormatter();
1338 1339
        document.setJComboBoxItemsSeekerDynamicReference(this);
1339 1340
        
1340 1341
		// Defines and add a Document listener for changes on the document of the editor of this component
......
2069 2070
	
2070 2071
	/**
2071 2072
	 * Inner class that inherits of the class PlainDocument, and is used for manipulate the text that has the document of the editor of this component
2072
	 * This class is also optimized for items seek, and changes the color of the text if can.
2073
	 * This class is also optimized for items seek, changes the color of the text or sets highlight if it's needed.
2073 2074
	 * 
2074 2075
	 * @author Pablo Piqueras Bartolom? (p_queras@hotmail.com)
2075 2076
	 */
2076
	private class PlainDocumentSeeker extends PlainDocument{
2077
	private class PlainDocumentTextFormatter extends PlainDocument {
2077 2078
		private static final long serialVersionUID = 4158213349939840209L;
2078 2079
		private JComboBoxItemsSeekerConfigurable comboBoxReference;		
2079 2080

  
2080 2081
		/**
2081 2082
		 * Default Constructor
2082 2083
		 */
2083
		public PlainDocumentSeeker() {
2084
		public PlainDocumentTextFormatter() {
2084 2085
			super();
2085 2086
			this.initialize();
2086 2087
		}

Also available in: Unified diff