Attributes | Name and Description |
---|---|
|
caplin.control.basic.BasicControl(caplin.control.factory.ControlType controlType)
Constructs a new |
Attributes | Name and Description |
---|---|
|
void
addClass( className, refreshClassName)
|
|
void
attachControlEventListener( eventName, eventListener)
|
|
void
bind( controlElement, isDummy)
|
|
void
clear()
|
|
void
clearState()
|
|
void
detachControlEventListener()
|
|
void
disable()
|
|
void
enable()
|
|
void
finalize()
|
|
void
flash( delta, attributes)
|
|
void
focus()
|
|
void
getAttributes()
|
|
DOMElement
getElement()
Gets the element associated with this control. |
|
Numeric
getFlashDuration()
Gets the value of the flash duration. |
|
Integer
getId()
Gets the numeric id of this control. |
|
void
getInitialClassName()
|
|
String
getNumericFlashDirection(Numeric newValue, Numeric oldValue)
Determines the numeric flash direction of the new value relative to the old value. |
|
void
getValue()
|
|
void
initialize()
|
|
Boolean
isBound()
Indicates whether the control is bound to an HTML Element. |
|
void
isEnabled()
|
|
void
refresh()
|
|
void
removeClass( className, refreshClassName)
|
|
void
removeFlash()
Removes the flash state from the control. |
|
void
replaceClass( oldClassName, newClassname)
|
|
void
select()
|
|
void
setAttribute(String name, Variant value)
Sets a control attribute. |
|
void
setDomAttribute(String attributeName, String attributeValue)
Sets the given HTML attribute value on of the underlying HTML element. |
|
void
setDomClass(String className)
Sets the DOM CSS classname of the underlying HTML element. |
|
void
setDomParentClass(String className)
Sets the DOM CSS classname of the underlying parent HTML element. |
|
void
setDomStyle(String styleName, String styleValue)
Sets the given CSS style value on of the underlying HTML element. |
|
void
setDomValue(String value)
Sets the value in the DOM. |
|
void
setId(Integer id)
Sets the id of this control. |
|
void
setInitialClassName( initialClassName)
|
|
void
setStyle( styleName, styleValue)
|
|
void
setTooltip(String tooltip)
Sets the tooltip value for this control. |
|
void
setValue( value)
|
|
void
toString()
|
|
void
unbind()
|
►
caplin.control.basic.BasicControl(caplin.control.factory.ControlType controlType)
Constructs a new BasicControl
with the specified arguments. This abstract class should never be
constructed explicitly.
caplin.control.factory.ControlType | controlType | The control type. |
►
void
addClass( className, refreshClassName)
className | ||
refreshClassName |
►
void
attachControlEventListener( eventName, eventListener)
eventName | ||
eventListener |
►
void
bind( controlElement, isDummy)
controlElement | ||
isDummy |
►
void
clear()
►
void
clearState()
►
void
detachControlEventListener()
►
void
disable()
►
void
enable()
►
void
finalize()
►
void
focus()
►
void
getAttributes()
►
DOMElement
getElement()
Gets the element associated with this control.
►
Numeric
getFlashDuration()
Gets the value of the flash duration.
►
Integer
getId()
Gets the numeric id of this control.
►
void
getInitialClassName()
►
String
getNumericFlashDirection(Numeric newValue, Numeric oldValue)
Determines the numeric flash direction of the new value relative to the old value. If either new or old value is not a number (for example, if either value is undefined) then the function returns an empty string.
Numeric | newValue | The new value. |
Numeric | oldValue | The old value. |
►
void
getValue()
►
void
initialize()
►
Boolean
isBound()
Indicates whether the control is bound to an HTML Element.
true
if the control is bound to an HTML Element; otherwise false
.
►
void
isEnabled()
►
void
refresh()
►
void
removeClass( className, refreshClassName)
className | ||
refreshClassName |
►
void
removeFlash()
Removes the flash state from the control.
►
void
replaceClass( oldClassName, newClassname)
oldClassName | ||
newClassname |
►
void
select()
►
void
setAttribute(String name, Variant value)
Sets a control attribute.
String | name | The name of the attribute to set. |
Variant | value | The value to set. |
►
void
setDomAttribute(String attributeName, String attributeValue)
Sets the given HTML attribute value on of the underlying HTML element.
String | attributeName | the HTML attribute name to be set. |
String | attributeValue | the HTML attribute value to set. |
►
void
setDomClass(String className)
Sets the DOM CSS classname of the underlying HTML element.
String | className | the CSS class name to set. |
►
void
setDomParentClass(String className)
Sets the DOM CSS classname of the underlying parent HTML element.
String | className | the CSS class name to set. |
►
void
setDomStyle(String styleName, String styleValue)
Sets the given CSS style value on of the underlying HTML element.
String | styleName | the CSS style name to be set. |
String | styleValue | the CSS value to set. |
►
void
setDomValue(String value)
Sets the value in the DOM. Implementing classes must specify how their DOM value will be set.
String | value | The value to set in the DOM. |
►
void
setId(Integer id)
Sets the id of this control.
Integer | id | the value of the id to set. |
►
void
setInitialClassName( initialClassName)
initialClassName |
►
void
setStyle( styleName, styleValue)
styleName | ||
styleValue |
►
void
setTooltip(String tooltip)
Sets the tooltip value for this control.
String | tooltip | the tooltip value. |
►
void
toString()
►
void
unbind()