Package org.jbpm.designer.client.util
Class ComboBox
- java.lang.Object
-
- org.jbpm.designer.client.util.ComboBox
-
- All Implemented Interfaces:
ComboBoxView.ComboBoxPresenter
public class ComboBox extends Object implements ComboBoxView.ComboBoxPresenter
-
-
Field Summary
Fields Modifier and Type Field Description protected String
currentTextValue
protected String
customPrompt
protected ListBoxValues
listBoxValues
protected boolean
quoteStringValues
protected boolean
showCustomValues
-
Constructor Summary
Constructors Constructor Description ComboBox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addCustomValueToListBoxValues(String newValue, String oldValue)
ListBoxValues
getListBoxValues()
String
getValue()
void
init(ComboBoxView.ModelPresenter modelPresenter, org.gwtbootstrap3.client.ui.ValueListBox<String> listBox, org.gwtbootstrap3.client.ui.TextBox textBox, boolean quoteStringValues, String customPrompt, String placeholder)
void
listBoxValueChanged(String newValue)
void
setCurrentTextValue(String currentTextValue)
void
setListBoxValue(String value)
void
setListBoxValues(ListBoxValues listBoxValues)
void
setShowCustomValues(boolean showCustomValues)
void
setTextBoxValue(String value)
void
textBoxValueChanged(String newValue)
void
updateListBoxValues(String listBoxValue)
-
-
-
Field Detail
-
listBoxValues
protected ListBoxValues listBoxValues
-
showCustomValues
protected boolean showCustomValues
-
currentTextValue
protected String currentTextValue
-
quoteStringValues
protected boolean quoteStringValues
-
customPrompt
protected String customPrompt
-
-
Method Detail
-
init
public void init(ComboBoxView.ModelPresenter modelPresenter, org.gwtbootstrap3.client.ui.ValueListBox<String> listBox, org.gwtbootstrap3.client.ui.TextBox textBox, boolean quoteStringValues, String customPrompt, String placeholder)
- Specified by:
init
in interfaceComboBoxView.ComboBoxPresenter
-
getValue
public String getValue()
- Specified by:
getValue
in interfaceComboBoxView.ComboBoxPresenter
-
setListBoxValues
public void setListBoxValues(ListBoxValues listBoxValues)
- Specified by:
setListBoxValues
in interfaceComboBoxView.ComboBoxPresenter
-
setShowCustomValues
public void setShowCustomValues(boolean showCustomValues)
- Specified by:
setShowCustomValues
in interfaceComboBoxView.ComboBoxPresenter
-
setCurrentTextValue
public void setCurrentTextValue(String currentTextValue)
- Specified by:
setCurrentTextValue
in interfaceComboBoxView.ComboBoxPresenter
-
getListBoxValues
public ListBoxValues getListBoxValues()
- Specified by:
getListBoxValues
in interfaceComboBoxView.ComboBoxPresenter
-
updateListBoxValues
public void updateListBoxValues(String listBoxValue)
- Specified by:
updateListBoxValues
in interfaceComboBoxView.ComboBoxPresenter
-
listBoxValueChanged
public void listBoxValueChanged(String newValue)
- Specified by:
listBoxValueChanged
in interfaceComboBoxView.ComboBoxPresenter
-
textBoxValueChanged
public void textBoxValueChanged(String newValue)
- Specified by:
textBoxValueChanged
in interfaceComboBoxView.ComboBoxPresenter
-
addCustomValueToListBoxValues
public String addCustomValueToListBoxValues(String newValue, String oldValue)
- Specified by:
addCustomValueToListBoxValues
in interfaceComboBoxView.ComboBoxPresenter
-
setTextBoxValue
public void setTextBoxValue(String value)
-
setListBoxValue
public void setListBoxValue(String value)
-
-