TAILIEUCHUNG - Using Component Methods

Sử dụng phần Phương pháp nên được rõ ràng như của bây giờ, cả UIObject và UIComponent lớp học có phương pháp được thừa kế của tất cả các trường hợp thành phần. Ngoài ra, các loại thành phần khác nhau có những phương pháp mà là duy nhất với chính họ. | Using Component Methods As should be obvious by now both the UIObject and UIComponent classes have methods that are inherited by all component instances. In addition different component types have methods that are unique to themselves. For brevity we ll only mention a few examples here before moving on to the exercise for this section. Common Methods The following methods are common to all component instances move x y moves a component instance to the specified x and y coordinates. For example 100 200 setSize width height resizes a component instance to the specified width and height values. For example 250 150 getFocus returns a value of the current object that has focus. For example var myVariable String assigns myVariable a string value representing the name of the component instance that currently has focus. setFocus sets the focus to a particular component instance. For example gives focus to the myButton_pb instance. NOTE For more information on what focus means and how it s used see Using the FocusManager Component later in this lesson. There are other methods that are inherited by all instances but these are the most common. Component-Specific Methods While most components have methods specific to themselves most of these methods are used to do one of the following Add something to a component instance such as a piece of data or a graphic Get return information about a component instance for example what item is currently selected in a combobox Tell set the component instance to do something such as scroll up or down or highlight a specific piece of data Sort the component s data in a specific manner NOTE There are too many component-specific methods to list here. For a complete listing of the methods of a component class look up its entry in the ActionScript dictionary. Component-specific methods can be found under each component listing in the Actions Toolbox section of the .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.