Class
caplin.control.basic

InputControl

This is a basic control that is used to display text and react to user gestures. Typically, the TextControl uses formatters and stylers to specify how the text appears to the user, and handlers to capture user interactions such as mouse movements and clicks.

Constructor Summary

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

Constructs a new InputControl with the specified arguments.

Method Summary

Attributes Name and Description
Integer getHeight()

Returns the height of the control.

Integer 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.InputControl(caplin.control.factory.ControlType controlType)

Constructs a new InputControl with the specified arguments.

Parameters
caplin.control.factory.ControlType controlType

Method Detail

Integer getHeight()

Returns the height of the control.

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

Integer getWidth()

Returns the width of the control.

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