borland Packages Class Hierarchy internetbeans Package
java.lang.Object +----com.borland.internetbeans.IxComponent +----com.borland.internetbeans.AbstractIxDataWidget +----com.borland.internetbeans.AbstractIxControl +----com.borland.internetbeans.AbstractIxList +----com.borland.internetbeans.IxComboBox +----com.borland.internetbeans.IxListBox
Variables Properties Methods
Implements ColumnAware, DataSetAware, Renderable, Serializable, Cloneable
Base class for SELECT controls: comboboxes and listboxes.
If the control is tied to a DataSet column with a picklist, that list of options is automatically populated from the first column of that picklist.
protected static final String MULTIPLE_ATTRIBUTE = "multiple"Name of MULTIPLE attribute, which allows or prevents multiple selection in a listbox.
protected static final String SIZE_ATTRIBUTE = "size"Name of SIZE attribute, which indicates the height of the control. Comboboxes are always size 1.
public static final String TAG_NAME = "select"Tag name for this type of element.
public void setDisplayList(List newItems) public void setDisplayList(String[] newItems)Use a
List
as display values for list, instead of the strings in the list model.
public int getItemCount()Returns number of items in list model.
public ListModel getModel() public void setModel(ListModel aModel)List model that contains options from which to choose.
public void setOptions(List newItems) public void setOptions(String[] newItems)Use an array of strings as the list model.
newItems
public IxComponent getRenderDelegate()Called by
PageProducer
; do not call directly. Automatically builds picklist from DataSet column, if one is specified.
public int getSize() public void setSize(int newSize)Height of list.
protected void assembleElementBody(OutputWrapper outWrap)Generates the OPTION elements that comprise the list from which to choose.
outWrap
protected void assembleTagAttributes(OutputWrapper outWrap)Generates the NAME and VALUE atributes via
AbstractIxControl.assembleTagAttributes
then the MULTIPLE and SIZE attributes.
outWrap
protected String[] getClosureTags()SELECT elements require a matching end tag. As a precaution, other form control tag names and the FORM tag name itself are included in case the source markup is malformed.
protected String getElementType()Returns the tag name "select".
public Object getItemAt(int index)Returns a single item in the list model.
index
protected boolean isElementEmpty()SELECT elements are never empty.
protected boolean isMultiple()Whether the list allows multiple selection (listbox) or not (combobox).
public void mergeBody(ParseUnit[] units, int beginIndex, int endIndex)Called by
PageProducer
; do not call directly. Reads options from the template.
public void mergeTag(String tagName, Map attributes, boolean empty)Called by
PageProducer
; do not call directly. Reads and stores the value of the SIZE attribute, removes the MULTIPLE attribute because its value is always generated, then calls super
.
tagName
attributes
empty
protected void setMultiple(boolean newValue)