WRTKit View Class

Description

The View class is an abstract base class for all views. Views are containers for controls and are used to collect the set of controls that constitutes a logical view in a widget user interface. The displayed view is controlled by the UIManager. Don't instantiate View directly but rather one of its subclasses, e.g. ListView.

Inherits from

UIElement

Events


getFocusedControl()

Syntax

[Control] View.getFocusedControl(void)

Description

Retrieves the currently focused control in the view or null if none.

Arguments

This method does not take any arguments.

Return value

The current focused control or null if none.

focusFirstControl()

Syntax

[Control] View.focusFirstControl(void)

Description

Attempts to focus the first focusable control in the view. Note that this method call might fail to actually focus the control in certain circumstances, such as when the view is not visible or if no focusable control exists.

This method is rarely needed because focus handling is to a high degree handled automatically by the user interface toolkit. For example when a new view is displayed the first focusable control is automatically given focus.

Arguments

This method does not take any arguments.

Return value

This method does not return a value.