FvInputComponent Use a JComboBox as input component.
Example using classic instanciation
var input : FvComboInput = new FvComboInput( ); input.setListData( [ "january", "february" ] ); FvInputComponentDialog.show( input, "Choose your month", this, _onInputResult );
Example using static create() instanciation
var combo : JComboBox = new JComboBox( [ "january", "february" ] ); var input : FvSliderInput = FvComboInput.create( combo ); FvInputComponentDialog.show( input, "Choose your year", this, _onInputResult );
new FvComboInput()static public function create(combobox:JComboBox):FvComboInput
Creates and returns a FvComboInput with passed-in combobox
component.
public function setModel(model:ListModel):VoidSets the list model to provide the data to combobox.
public function setListData(data:Array):Voidset a array to be the list data, but array is not a List Model. So when the array content was changed, you should call updateListView to update the JList(the list for combo box).But this is not a good way, its slow. So suggest you to create a ListMode eg. VectorListMode, When you modify ListMode, it will automatic update JList.
public function getContainer():ComponentReturns JCombobox component to add into a FvInputComponentDialog dialog.
getContainer() in fvaswing.components.input.FvInputComponent