|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.binding.binder.ComboBoxBindingBuilderImpl
public class ComboBoxBindingBuilderImpl
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");
| Constructor Summary | |
|---|---|
ComboBoxBindingBuilderImpl(ComboBoxModel comboBoxModel)
Creates a ComboBoxBindingBuilderImpl for the given combo box model. |
|
| Method Summary | |
|---|---|
protected ComboBoxModel |
getComboBoxModel()
|
void |
to(JComboBox comboBox)
Binds this builder's ComboBoxModel to the given combo box. |
void |
to(JComboBox comboBox,
String nullText)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComboBoxBindingBuilderImpl(ComboBoxModel comboBoxModel)
comboBoxModel - provides both the data and the selection
NullPointerException - if comboBoxModel is null| Method Detail |
|---|
public void to(JComboBox comboBox)
ComboBoxBindingBuilder
Example:
binder.bind(countryComboBoxModel).to(countryCombo);
to in interface ComboBoxBindingBuildercomboBox - the combo box where the combo box model is set
as both data and selection model.
public void to(JComboBox comboBox,
String nullText)
ComboBoxBindingBuildernull values are mapped to a special null element
that is displayed using the given nullElementText.
Example:
binder.bind(countryComboBoxModel).to(countryCombo, "---");
to in interface ComboBoxBindingBuildercomboBox - the combo box where the combo box model is set
as both data and selection model.nullText - the text that represents the null value
in the combo boxprotected final ComboBoxModel getComboBoxModel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||