@Component(tag="combobox", widgetClass="Combobox", parentTag="*", childTag=@Component.ChildTag(value="comboitem")) public class Combobox extends BaseInputboxComponent<String> implements ISupportsModel<Comboitem>
BaseComponent.SubComponent| Constructor and Description |
|---|
Combobox() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
_toString(String value)
Converts a value to a string.
|
protected String |
_toValue(String value)
Converts a string value to this component's value type.
|
protected void |
_updateSelected(Comboitem item)
Update the selected item to the specified value.
|
protected void |
afterAddChild(BaseComponent child)
If the added item is marked as selected, set it as the selected item.
|
protected void |
afterRemoveChild(BaseComponent child)
If the removed item is selected, set the selected item to null.
|
void |
destroy()
Destroys this component.
|
boolean |
getAutoFilter() |
IModelAndView<Comboitem,?> |
getModelAndView()
Returns the model and view for this component.
|
int |
getSelectedIndex()
Returns the index of the currently selected item.
|
Comboitem |
getSelectedItem()
Returns the currently selected item, if any.
|
void |
setAutoFilter(boolean autoFilter) |
void |
setSelectedIndex(int index)
Sets the item at the specified index as selected.
|
void |
setSelectedItem(Comboitem item)
Sets the currently selected item.
|
getMaxLength, getMaxValue, getMinValue, getPattern, getPlaceholder, getSynchronized, isReadonly, isRequired, selectAll, selectRange, setMaxLength, setMaxValue, setMinValue, setPattern, setPlaceholder, setReadonly, setRequired, setSynchronized_getValue, _onChange, _setValue, _setValue, _toClient, clear, getValue, setValue_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, removeClass, removeMask, removeStyle, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bringToFront, defaultify, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeferredRendering, getModel, getModel, getModelAndView, getPaginator, getRenderer, getRenderer, setDeferredRendering, setModel, setRendererpublic Comboitem getSelectedItem()
public void setSelectedItem(Comboitem item)
item - The combo item to select, or null for no selection.public int getSelectedIndex()
public void setSelectedIndex(int index)
index - Index of the item to select, or -1 to clear the selection.protected void _updateSelected(Comboitem item)
item - Item to be selected.protected void afterAddChild(BaseComponent child)
afterAddChild in class BaseComponentchild - The new child.BaseComponent.afterAddChild(org.fujion.component.BaseComponent)protected void afterRemoveChild(BaseComponent child)
afterRemoveChild in class BaseUIComponentchild - The removed child.BaseUIComponent.afterRemoveChild(org.fujion.component.BaseComponent)@Component.PropertyGetter(value="autoFilter") public boolean getAutoFilter()
@Component.PropertySetter(value="autoFilter") public void setAutoFilter(boolean autoFilter)
protected String _toValue(String value)
BaseInputComponent_toValue in class BaseInputComponent<String>value - String value to convert.protected String _toString(String value)
BaseInputComponent_toString in class BaseInputComponent<String>value - The value to convert.public void destroy()
BaseComponentdestroy in class BaseComponentpublic IModelAndView<Comboitem,?> getModelAndView()
ISupportsModelgetModelAndView in interface ISupportsModel<Comboitem>Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.