Wednesday, January 14, 2009

Auto Complete Input Resources

There are a couple of customized components available, such as
The last one from Hillel Coren seems very nice and suitable for my project.

Input with PopUp or PopUpInput

I recently has to use a pop-up input, which behavior similar to PopUpButton. But PopUpButton name is not editable. ComboBox has the simliar thing but popup do not support UIComponent. So I create a new custom component called PopUpInput. It has the following features:
  • popup can be any UIComponent;
  • because of TextInput, name is editable;
  • customized drop-down arrow icon;
  • can extend the function to save the input text to list.
Click here for demo and source file.
However, this an alpha version of this component, some filters such as drop shadow applied on popup do not transform smoothly as same as popup itself. Also, popup does not do drop down effect when the first time is opened. Let's call it version 0.1. I will update it later as I finish my Java study.