UltraLightClient Code Community
[ start | index | login ]
Overview > Searchable ComboBox

Searchable ComboBox

Belongs to following categories: Extension, ULC6.0, ULC6.1,

Project Home
Downloads

Purpose

This extension provides developers with the ULCSearchableComboBox component. This class extends ULCComboBox and allows selection from the drop-down list of an item that matches the string typed by the user. The ComboBox gives visual feedback if none of the items in the drop-down list match the string being typed by the user.

ULCSearchableComboBox

Resources

How to use

The following shows a sample use of the ULCSearchableComboBox component:

...

List list = new ArrayList(); list.add("ULCLabel"); list.add("ULCTextField"); list.add("ULCAbstractButton"); list.add("ULCButton"); list.add("ULCButtonGroup"); list.add("ULCCheckBox"); list.add("ULCDesktopPane"); ULCSearchableComboBox searchableComboBox = new ULCSearchableComboBox(list);

...

How it is implemented

The UISearchableComboBox class serves as a proxy to the ULCSearchableComboBox class on the server side. It acts as a KeyListener to the JTextField editor of the underlying JComboBox. On each key stroke, the string in the editor is matched with the strings in the drop-down item list and the first matching string is selected.

Compatibility

The described functionality has been developed and tested using JDK 1.4.2_05 and ULC 6.1.1.

Project Links

Project Home
Downloads

Author

>>prajakta

no comments | post comment
labels
Category:Extension
Category:ULC6.0
Category:ULC6.1
attachments
Created by prajakta. Last edited by sandro, 3 years and 90 days ago. Viewed 8,793 times. #11
[diff] [history] [edit] [rdf]




news




RSS News Feed:

RSS Feed

snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt