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 StringcurrentTextValueprotected StringcustomPromptprotected ListBoxValueslistBoxValuesprotected booleanquoteStringValuesprotected booleanshowCustomValues
-
Constructor Summary
Constructors Constructor Description ComboBox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddCustomValueToListBoxValues(String newValue, String oldValue)ListBoxValuesgetListBoxValues()StringgetValue()voidinit(ComboBoxView.ModelPresenter modelPresenter, org.gwtbootstrap3.client.ui.ValueListBox<String> listBox, org.gwtbootstrap3.client.ui.TextBox textBox, boolean quoteStringValues, String customPrompt, String placeholder)voidlistBoxValueChanged(String newValue)voidsetCurrentTextValue(String currentTextValue)voidsetListBoxValue(String value)voidsetListBoxValues(ListBoxValues listBoxValues)voidsetShowCustomValues(boolean showCustomValues)voidsetTextBoxValue(String value)voidtextBoxValueChanged(String newValue)voidupdateListBoxValues(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:
initin interfaceComboBoxView.ComboBoxPresenter
-
getValue
public String getValue()
- Specified by:
getValuein interfaceComboBoxView.ComboBoxPresenter
-
setListBoxValues
public void setListBoxValues(ListBoxValues listBoxValues)
- Specified by:
setListBoxValuesin interfaceComboBoxView.ComboBoxPresenter
-
setShowCustomValues
public void setShowCustomValues(boolean showCustomValues)
- Specified by:
setShowCustomValuesin interfaceComboBoxView.ComboBoxPresenter
-
setCurrentTextValue
public void setCurrentTextValue(String currentTextValue)
- Specified by:
setCurrentTextValuein interfaceComboBoxView.ComboBoxPresenter
-
getListBoxValues
public ListBoxValues getListBoxValues()
- Specified by:
getListBoxValuesin interfaceComboBoxView.ComboBoxPresenter
-
updateListBoxValues
public void updateListBoxValues(String listBoxValue)
- Specified by:
updateListBoxValuesin interfaceComboBoxView.ComboBoxPresenter
-
listBoxValueChanged
public void listBoxValueChanged(String newValue)
- Specified by:
listBoxValueChangedin interfaceComboBoxView.ComboBoxPresenter
-
textBoxValueChanged
public void textBoxValueChanged(String newValue)
- Specified by:
textBoxValueChangedin interfaceComboBoxView.ComboBoxPresenter
-
addCustomValueToListBoxValues
public String addCustomValueToListBoxValues(String newValue, String oldValue)
- Specified by:
addCustomValueToListBoxValuesin interfaceComboBoxView.ComboBoxPresenter
-
setTextBoxValue
public void setTextBoxValue(String value)
-
setListBoxValue
public void setListBoxValue(String value)
-
-