Section C.4. Behaviors


C.4. Behaviors

The following behaviors ship with Atlas.

C.4.1. Sys.UI.Behavior (General Class)

Method

Description

get_dataContext()

Returns the behavior's data context

setOwner(control)

Links the behavior to its owner element


C.4.2. Sys.UI.PopupBehavior

Method

Description

get_parentElement()

Returns the parent element of the pop-up

set_parentElement(element)

Sets the parent element of the pop-up

get_positioningMode()

Returns the positioning mode of the pop-up

set_positioningMode(mode)

Sets the positioning mode of the pop-up

get_x()

Returns the horizontal position of the pop-up

set_x(x)

Sets the horizontal position of the pop-up

get_y()

Returns the vertical position of the pop-up

set_y(y)

Sets the vertical position of the pop-up

hide()

Hides the pop-up

show()

Shows the pop-up

initialize()

Initializes the behavior


C.4.3. Sys.UI.ClickBehavior

Method

Description

clickHandler()

Emulates a click

initialize()

Initializes the behavior


C.4.4. Sys.UI.HoverBehavior

Method

Description

get_hoverElement()

Returns the element to hover over

set_hoverElement(element)

Sets the element to hover over

get_unhoverDelay()

Returns the unhover delay (in milliseconds)

set_unhoverDelay(ms)

Sets the unhover delay (in milliseconds)

initialize()

Initializes the behavior


C.4.5. Sys.UI.AutoCompleteBehavior

Method

Description

get_completionInterval()

Returns the interval after which the field entry is completed

set_completionInterval(value)

Sets the interval after which the field entry is completed

get_completionList()

Returns the completion list

set_completionList(value)

Sets the completion list

get_completionSetCount()

Returns the number of elements to show in the completion list

set_completionSetCount(value)

Sets the number of elements to show in the completion list

get_minimumPrefixLength()

Returns the number of characters to be entered before the search starts

set_minimumPrefixLength(value)

Sets the number of characters to be entered before the search starts

get_serviceMethod()

Returns the web method to call

set_serviceMethod(value)

Sets the web method to call

get_serviceURL()

Returns the URL of the web service to use

set_serviceURL(value)

Sets the URL of the web service to use

initialize()

Initializes the behavior


C.4.6. Sys.UI.FloatingBehavior

This behavior is defined in the AtlasUIDragDrop.js library.

Method

Description

get_handle()

Returns the handle for the behavior

set_handle(value)

Sets the handle for the behavior

get_location()

Returns the location of the element (as an object with properties x and y)

set_location(value)

Sets the location of the element (as an object with properties x and y)

initialize()

Initializes the behavior

startDragDrop(dragVisual)

Starts a drag-and-drop operation

get_dropTargetElement()

Returns the target element of the drag-and-drop operation

canDrop(dragMode, dataType)

Whether an element is capable of drag-and-drop operations


C.4.7. Sys.UI.OpacityBehavior

The Sys.UI.OpacityBehavior behavior is defined in the AtlasUIGlitz.js library and described in greater detail in Chapter 6.

Method

Description

get_value()

Returns the opacity value

set_value(value)

Sets the opacity value

initialize()

Initializes the behavior


C.4.8. Sys.UI.LayoutBehavior

The Sys.UI.LayoutBehavior is defined in the AtlasUIGlitz.js library and described in greater detail in Chapter 6.

Method

Description

get_height()

Returns the height of the element

set_height(value)

Sets the height of the element

get_left()

Returns the horizontal coordinate of the element (relative to the upper-left corner)

set_left(value)

Sets the horizontal coordinate of the element (relative to the upper-left corner)

get_top()

Returns the vertical coordinate of the element (relative to the upper-left corner)

set_top(value)

Sets the vertical coordinate of the element (relative to the upper-left corner)

get_width()

Returns the width of the element

set_width(value)

Sets the width of the element

initialize()

Initializes the behavior





Programming Atlas
Programming Atlas
ISBN: 0596526725
EAN: 2147483647
Year: 2006
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net