:: Home >>

AW.System.Control

Generic user interface control class.

Control class is based on generic html object and adds data access methods, templates and internal event processing.

Constructor

 var obj = new AW.System.Control; 

Hierarchy

Mixin Classes:
AW.System.Template

Models

controlControl data.
control formatFormatting object.
control imageImage name.
control linkHyperlink URL.
control stateControl's state.
control textDisplayed text.
control tooltipTooltip text.
control valueControl's value.
control visibleControl's visibility.
tabTab index.
tab indexTab index.

Methods

clearClears all models.
clearControlModelClears control model
clearTabModelClears tab model
cloneCreates an object clone.
defineControlPropertyCreates new control property
defineModelCreates get/set methods for the model.
defineTabPropertyCreates new tab property
defineTemplateCreates get/set methods for the template.
elementReturns the reference to the HTML element.
getAttributeReturns the value of the attribute.
getClassReturns the value of the CSS class.
getContentReturns the named HTML fragment.
getControlFormatReturns control format
getControlImageReturns control image
getControlLinkReturns control link
getControlModelReturns control model
getControlPropertyReturns control property
getControlStateReturns control state
getControlTextReturns control text
getControlTooltipReturns control tooltip
getControlValueReturns control value
getControlVisibleReturns control visible
getEventReturns the HTML event handler.
getIdReturns the unique ID of this object.
getModelReturns the external model.
getStyleReturns the value of the CSS style attribute.
getTabIndexReturns tab index
getTabModelReturns tab model
getTabPropertyReturns tab property
getTagReturns the HTML tag name.
getTemplateReturns the template.
initInitializes the object.
mapModelRedirects property requests.
mapTemplateRedirects template requests.
raiseEventRaises AW control event.
refreshUpdates the HTML element.
refreshClassesUpdates the className attribute of the HTML element.
setAttributeSets the value of the attribute.
setClassSets the value of the CSS class.
setContentAdds the static HTML fragment to the object.
setControlFormatSets control format
setControlImageSets control image
setControlLinkSets control link
setControlModelSets control model
setControlPropertySets control property
setControlStateSets control state
setControlTextSets control text
setControlTooltipSets control tooltip
setControlValueSets control value
setControlVisibleSets control visible
setControllerAssigns the controller.
setEventAssigns the HTML event handler.
setIdSets the unique ID for this object.
setModelAssigns the external model.
setPositionSets element position (absolute).
setSizeSets element size.
setStyleSets the value of the CSS style attribute.
setTabIndexSets tab index
setTabModelSets tab model
setTabPropertySets tab property
setTagSets the HTML tag name.
setTemplateAssigns the template.
setTimeoutCalls the function after the specified delay.
toStringConverts object to string.

Events

property change events - property changing/changed
template change events - template changed
control activation events - activated/deactivated (focus/blur)
control keyboard events - keypress and named keys
control mouse events - mouseover, mousedown, click etc.

Comments

10 Apr 07
AW.UI.Grid fires the event incorrectly in IE5.5 Max (1)
26 Oct 06
setControlVisible(false) doesn't hide the control kkeller@ign.com (5)
17 Jul 06
How to do a grid disabled (2)
10 Jul 06
How to add multiple event listeners DT (5)
27 Jun 06
Migrating from 1.0 to 2.0.1 Vikramaditya Garg (0)
24 May 06
onCtrlControlClicked event does not fire Frank Olson (1)
15 Mar 06
Does the clear() method free it's objects? Jim Hunter (www.FriendsOfAW.com) (1)
27 Feb 06
BUG in Model definition : Alex ? Yasdnil (3)
25 Feb 06
How do template display model data Yasdnil (0)
14 Feb 06
Hooking setter in defineProperty() LostInSpace (4)
21 Dec 05
changing tabs yeahyeahyeah (1)

Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData