Class
caplin.control.basic

ButtonControl

A button control based on the abstract BasicControl

Constructor Summary

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

Constructs a new ButtonControl with the specified arguments.

Method Summary

Attributes Name and Description
Number getHeight()

Returns the height of the control.

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

Constructs a new ButtonControl with the specified arguments.

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

Method Detail

Number getHeight()

Returns the height of the control.

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

Number getWidth()

Returns the width of the control.

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