public class ComboBox extends FormControl
drawingShape, formElement, mElement, mFormProperties| Modifier and Type | Method and Description |
|---|---|
void |
addItem(String item)
Add a list item to this combo box.
|
void |
addItems(String[] items)
Add a group of list items to this combo box
|
String |
getCurrentValue()
Get the current value of this control, it override the default value.
|
String |
getDataField()
Get the data field referenced by this combo box
|
ArrayList<String> |
getEntries()
Get the list entries if they are initiated through a list of string.
|
boolean |
getFormDropdown()
Get the visibility of the drop-down list
|
String |
getId()
Get the control id.
|
static ComboBox |
getInstanceOf(FormComboboxElement element)
Get an instance of combo box by an instance of FormComboboxElement, while searching the
document content to make a bind with the DrawControl which already reference to this check box.
|
String |
getListSource()
Get the source of this data list.
|
FormTypeDefinition.FormListSourceType |
getListSourceType()
Get the source type of the data list.
|
String |
getName()
Get the control name.
|
static Iterator<FormControl> |
getSimpleIterator(Form container)
Get a simple iterator for combo boxes.
|
String |
getValue()
Get the default value of this control.
|
void |
setControlImplementation(String controlImpl)
Set the implementation of this control.
|
void |
setCurrentValue(String currentValue)
Set the current value of this control, it override the default value.
|
void |
setDataField(String dataField)
Set the data field referenced by this combo box
|
void |
setFormDropdown(boolean isDropDown)
Set the visibility of the drop-down list
|
void |
setId(String id)
Set the control id.
|
void |
setListSource(String listSource)
Set the source of this data list.
|
void |
setListSourceType(FormTypeDefinition.FormListSourceType type)
Set the source type of the data list.
|
void |
setName(String name)
Set the control name.
|
void |
setValue(String defaultValue)
Set the default value of this control, it will be override by current value.
|
getDrawControl, getOdfElement, getRectangle, remove, setAnchorType, setFormProperty, setRectanglegetComponentByElement, getOwnerDocument, registerComponent, unregisterComponentpublic static ComboBox getInstanceOf(FormComboboxElement element)
element - - an instance of FormComboboxElementpublic void setControlImplementation(String controlImpl)
FormControlsetControlImplementation in class FormControlcontrolImpl - - the implementation description of this controlpublic String getId()
FormControlgetId in class FormControlpublic void setId(String id)
FormControlsetId in class FormControlid - -the control id.public String getName()
FormControlgetName in class FormControlpublic void setName(String name)
FormControlsetName in class FormControlname - - the control name.public void setFormDropdown(boolean isDropDown)
isDropDown - - specify if the drop-down list is visiblepublic boolean getFormDropdown()
public void addItem(String item)
item - - a list itempublic void addItems(String[] items)
items - -a group of list itemspublic ArrayList<String> getEntries()
public void setListSourceType(FormTypeDefinition.FormListSourceType type)
type - - the source type of this listpublic FormTypeDefinition.FormListSourceType getListSourceType()
public void setListSource(String listSource)
listSource - - the source of this data list.public String getListSource()
public void setDataField(String dataField)
dataField - - the data field referenced by this combo boxpublic String getDataField()
public void setValue(String defaultValue)
value - - default valuepublic String getValue()
public void setCurrentValue(String currentValue)
currentValue - - current valuepublic String getCurrentValue()
public static Iterator<FormControl> getSimpleIterator(Form container)
container - - an instance of form where to traverse the combo boxes sCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.