|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComboBoxBindingBuilder
Describes a binding builder that holds a ComboBoxModel that can be bound to combo boxes.
Examples:
binder.bind(countryComboBoxModel).to(countryCombo); binder.bind(countryComboBoxModel).to(countryFilterCombo, "none");
Method Summary | |
---|---|
void |
to(JComboBox comboBox)
Binds this builder's ComboBoxModel to the given combo box. |
void |
to(JComboBox comboBox,
String nullElementText)
Binds this builder's ComboBoxModel to the given combo box where null values are mapped to a special null element
that is displayed using the given nullElementText . |
Method Detail |
---|
void to(JComboBox comboBox)
Example:
binder.bind(countryComboBoxModel).to(countryCombo);
comboBox
- the combo box where the combo box model is set
as both data and selection model.
NullPointerException
- if comboBox
is null
void to(JComboBox comboBox, String nullElementText)
null
values are mapped to a special null element
that is displayed using the given nullElementText
.
Example:
binder.bind(countryComboBoxModel).to(countryCombo, "---");
comboBox
- the combo box where the combo box model is set
as both data and selection model.nullElementText
- the text that represents the null
value
in the combo box
NullPointerException
- if comboBox
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |