set_data


Description:

[ Version ( since = "5.2" ) ]
public void set_data (DataModel model, int[] cols_index)

Makes this display data stored in model (makes the combo widget refresh its list of values and display the values contained in the model).

A NULL model will make the combo empty and disassociate the previous model, if any.

if cols_index.length is 0, then all the columns of model will be displayed in this.

Parameters:

this

a Combo widget.

model

a DataModel object to get data from.

cols_index

an array of columns to be shown, its size must be cols_index.length

n_cols

number of columns in the model to be shown