tailieunhanh - Introduction to java programming: Chapter 27 - JavaBeans and Bean Events

Introduction to java programming: Chapter 27 - JavaBeans and Bean Events's Objectives is to know what a JavaBeans component is; discover the similarities and differences between beans and regular objects; understand JavaBeans properties and naming patterns. | Chapter 27 JavaBeans and Bean Events Liang Introduction to Java Programming Sixth Edition c 2005 Pearson Education Inc. All rights reserved. 0-13-148952-6 1 Objectives -To know what a JavaBeans component is 27 2 . -To discover the similarities and differences between beans and regular objects . -To understand JavaBeans properties and naming patterns . -To review the Java event delegation model . -To create custom event classes and listener interfaces optional . -To develop source components using event sets from the Java API or custom event sets . Liang Introduction to Java Programming Sixth Edition c 2005 Pearson Education Inc. All 2 rights reserved. 0-13-148952-6 2 What is JavaBean A JavaBeans component is a serializable public class with a public no-arg constructor. Every GUI class is a JavaBeans component because 1 it is a public class 2 it has a public no-arg constructor 3 It is an extension of which implements . JavaBeans Component rights reserved. Minimum requirement Optional requirement class Data members Methods Constructors public class public no-arg constructor serializable _ may have accessor mutator methods may have registration deregistration method

TÀI LIỆU MỚI ĐĂNG
crossorigin="anonymous">
Đã 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.