Module is.codion.swing.framework.ui
Class EntityComboBox.Selector
java.lang.Object
is.codion.swing.framework.ui.component.EntityComboBox.Selector
- Enclosing class:
EntityComboBox
Provides builders for selector fields.
-
Method Summary
Modifier and TypeMethodDescription<B extends TextFieldBuilder<NumberField<Integer>,Integer, B>>
TextFieldBuilder<NumberField<Integer>, Integer, B> integerField(Attribute<Integer> attribute) Creates aTextFieldBuilderreturning aNumberFieldwhich value is bound to the selected value in this combo box<B extends TextFieldBuilder<NumberField<Integer>,Integer, B>>
TextFieldBuilder<NumberField<Integer>, Integer, B> integerField(FilterComboBoxModel.ItemFinder<Entity, Integer> itemFinder) Creates aTextFieldBuilderreturning aNumberFieldwhich value is bound to the selected value in this combo box<B extends TextFieldBuilder<JTextField,String, B>>
TextFieldBuilder<JTextField, String, B> stringField(Attribute<String> attribute) Creates aTextFieldBuilderreturning a text field which value is bound to the selected value in this combo box<B extends TextFieldBuilder<JTextField,String, B>>
TextFieldBuilder<JTextField, String, B> stringField(FilterComboBoxModel.ItemFinder<Entity, String> itemFinder) Creates aTextFieldBuilderreturning a text field which value is bound to the selected value in this combo box
-
Method Details
-
integerField
public <B extends TextFieldBuilder<NumberField<Integer>,Integer, TextFieldBuilder<NumberField<Integer>,B>> Integer, integerFieldB> (Attribute<Integer> attribute) Creates aTextFieldBuilderreturning aNumberFieldwhich value is bound to the selected value in this combo box- Type Parameters:
B- the builder type- Parameters:
attribute- the attribute- Returns:
- a
NumberFieldbuilder bound to the selected value
-
integerField
public <B extends TextFieldBuilder<NumberField<Integer>,Integer, TextFieldBuilder<NumberField<Integer>,B>> Integer, integerFieldB> (FilterComboBoxModel.ItemFinder<Entity, Integer> itemFinder) Creates aTextFieldBuilderreturning aNumberFieldwhich value is bound to the selected value in this combo box- Type Parameters:
B- the builder type- Parameters:
itemFinder- responsible for finding the item to select by value- Returns:
- a
NumberFieldbuilder bound to the selected value
-
stringField
public <B extends TextFieldBuilder<JTextField,String, TextFieldBuilder<JTextField,B>> String, stringFieldB> (Attribute<String> attribute) Creates aTextFieldBuilderreturning a text field which value is bound to the selected value in this combo box- Type Parameters:
B- the builder type- Parameters:
attribute- the attribute- Returns:
- a
JTextFieldbuilder bound to the selected value
-
stringField
public <B extends TextFieldBuilder<JTextField,String, TextFieldBuilder<JTextField,B>> String, stringFieldB> (FilterComboBoxModel.ItemFinder<Entity, String> itemFinder) Creates aTextFieldBuilderreturning a text field which value is bound to the selected value in this combo box- Type Parameters:
B- the builder type- Parameters:
itemFinder- responsible for finding the item to select by value- Returns:
- a
JTextFieldbuilder bound to the selected value
-