public class ComboBoxSupport<C extends JComboBox & MasterDetailComponent<C>> extends FormularComponentSupport<C>
Modifier and Type | Field and Description |
---|---|
protected MasterDetailComponent.DetailHandler |
detailHandler |
protected Object |
savedValue |
component, dataField, filterOperator, readOnly, validators
Constructor and Description |
---|
ComboBoxSupport(C comboBox) |
addValidator, getColumnName, getDataField, getDataFields, getFilterOperator, getFirstDataField, getFormattedFormularValue, getFormularName, getSingleValue, getValidators, getValuesForDataFields, hasDataField, isReadOnly, removeValidator, setDataField, setFilterOperator, setFormularValue, setReadOnly, validateState, validateState, verify
protected Object savedValue
protected MasterDetailComponent.DetailHandler detailHandler
public ComboBoxSupport(C comboBox)
public static void setComboBoxRowConverter(ComboBoxRowConverter comboBoxRowConverter)
public static ComboBoxRowConverter getComboBoxRowConverter()
public static void setComboBoxModelWrapperLookup(ComboBoxModelWrapperLookup comboBoxModelWrapperLookup)
public static ComboBoxModelWrapperLookup getComboBoxModelWrapperLookup()
public boolean isMultiSelect()
public void setFormularValue(VirtualTable vt, Map<String,Object> record)
public void setValue(VirtualTable vt, Map<String,Object> value)
public Object getFormularValue()
public void saveState()
public void restoreState()
public boolean hasStateChanged()
public final ItemListOwner getItemListOwner()
public final ItemList getItemList()
public VirtualTable getVirtualTable()
public VirtualTable.VirtualTableRow getSelectedVirtualTableRow()
public void setSelectedVirtualTableRow(VirtualTable.VirtualTableRow row)
public void refresh()
public void clearModel()
public void addValueChangeListener(FormularComponent.ValueChangeListener l)
public void setDetailHandler(MasterDetailComponent.DetailHandler detailHandler)
public int getSelectedModelIndex(int superIndex)
superIndex
- the view index to get the modelindex from.XdevComboBox.getSelectedModelIndex()
public void setSelectedModelIndex(int index)
index
- the modelindex to convert to view selection index.XdevComboBox.setSelectedModelIndex(int)
public void setSelectedData(Object o)
o
- the object to select.XdevComboBox.setSelectedData(Object)
public int modelToView(int index)
index
- the model indexCopyright © 2003–2021 XDEV Software. All rights reserved.