Class
caplin.control.basic

DropdownControl

A dropdown control where the user can select from a list of options.

Constructor Summary

Attributes Name and Description
caplin.control.basic.DropdownControl(caplin.control.factory.ControlType controlType)

Constructs a new DropdownControl with the specified arguments.

Method Summary

Attributes Name and Description
Integer getHeight()

Returns the height of the control.

Array getOptions()

Gets the array of options in the dropdown.

int getWidth()

Returns the width of the control.

Methods inherited from class caplin.control.basic.BasicControl:
addClass, attachControlEventListener, bind, clear, clearState, detachControlEventListener, disable, enable, finalize, flash, focus, getAttributes, getElement, getFlashDuration, getId, getInitialClassName, getNumericFlashDirection, getValue, initialize, isBound, isEnabled, refresh, removeClass, removeFlash, replaceClass, select, setAttribute, setDomAttribute, setDomClass, setDomParentClass, setDomStyle, setDomValue, setId, setInitialClassName, setStyle, setTooltip, setValue, toString, unbind

Constructor Detail

caplin.control.basic.DropdownControl(caplin.control.factory.ControlType controlType)

Constructs a new DropdownControl with the specified arguments.

Parameters
caplin.control.factory.ControlType controlType The control type.

Method Detail

Integer getHeight()

Returns the height of the control.

Returns
{Integer} The height of the DOM element in pixels.

Array getOptions()

Gets the array of options in the dropdown.

Returns
the array of options in the dropdown.

int getWidth()

Returns the width of the control.

Returns
The width of the DOM element in pixels.