INDEX A abstract classes, 125-134 base class nature of abstract classes, 127-128 concrete classes, 127-128 implementation of abstract classes, 126-131 instantiation of abstract classes, 127-128 polymorphism, 131-133 abstract data types, 22, 74, 402-403 Abstract Windowing Toolkit (AWT) (See also graphical user interface (GUI) development), 108, 317-393 AWT component classes, 318-319 AWT foundation classes, 318 broadcasting of events, 328 event handling, GUI, 326-336, 328 four steps to creating a GUI, 319-326 GUI creation, 317-393 inner classes, 334-335 interfaces, 121 Microsoft Foundation Classes (MFC) vs., 318 source-event-listener model event handling, 329 summary event handling, 336-337 Swing vs. AWT, 386-387 window-closing events, 333-334 abstraction, 22, 74, 96, 98, 125-134, 402-403 access specifiers, 92-94, 93, 100-101, 408 Private access specifier, 85, 88, 92-94, 93, 144, 408 Protected access specifier, 85, 88, 90-91, 92-94, 93, 100-101, 408 Public access specifier, 14, 85, 88, 92-94, 93, 100-101, 408 Accessing the AS/400 System with Java, 357 ADD, 37 adding records to databases, 182-184 AND operator, 28 API for class, DB2/400 encapsulated into Java, 245-247, 248-249 applets, 49-55, 50, 56 APPLET class, 50 choosing when to use applets, 62-63 functions of APPLET class, 51-52 initializing an applet, 50-52, 53 invokation of applet by browser, 50-51, 54 passing HTML applet files from AS/400, 55 playing of applets in browser sandbox, 49-50 sandbox of browsers, 49-50 serving up applets from AS/400, 54-55 storage of applets on AS/400, 54 applications, Java (See also Java Virtual Machine), 55-58, 58 choosing when to use applications, 62-63 executing an application, 56-58 Java Virtual Machine (JVM) interpretation & execution, 56-58 arrays, 32-34, 212 compile-time arrays, 33-34 creating array for parameter list, 212-217 dynamic arrays, 46-48 VECTOR, 46-48 413
12
Embed
C:Documents and SettingsMerrikey LeeLocal SettingsTempJava ...editorial.mcpressonline.com/web/mcpdf.nsf/wdocs/5021/$FILE/5021_IND.pdf · APPLET class, 50 choosing when to use applets,
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
INDEX
Aabstract classes, 125-134
base class nature of abstract classes, 127-128concrete classes, 127-128implementation of abstract classes, 126-131instantiation of abstract classes, 127-128polymorphism, 131-133
abstract data types, 22, 74, 402-403Abstract Windowing Toolkit (AWT) (See also
graphical user interface (GUI) development),
108, 317-393
AWT component classes, 318-319AWT foundation classes, 318broadcasting of events, 328event handling, GUI, 326-336, 328
four steps to creating a GUI, 319-326GUI creation, 317-393inner classes, 334-335interfaces, 121Microsoft Foundation Classes (MFC) vs., 318source-event-listener model event handling,
329summary event handling, 336-337Swing vs. AWT, 386-387window-closing events, 333-334
ADD, 37adding records to databases, 182-184AND operator, 28API for class, DB2/400 encapsulated into Java,
245-247, 248-249applets, 49-55, 50, 56
APPLET class, 50choosing when to use applets, 62-63functions of APPLET class, 51-52initializing an applet, 50-52, 53
invokation of applet by browser, 50-51, 54passing HTML applet files from AS/400, 55playing of applets in browser sandbox, 49-50sandbox of browsers, 49-50serving up applets from AS/400, 54-55storage of applets on AS/400, 54
applications, Java (See also Java Virtual
Machine), 55-58, 58
choosing when to use applications, 62-63executing an application, 56-58Java Virtual Machine (JVM) interpretation &
abstract classes, 125-134access specifiers, 93-94, 100-101AS/400 data types/ Java classes, 179, 242association of classes, association of classes,
77-78, 77, 409-410AWT component classes, 318-319AWT foundation classes, 318base class, 100, 127-128cardinality of classes, 77CLASS class, 143-144concrete classes, 127-128construction of classes, 105-107default constructors, 107derived classes, 85, 283-288, 405descendant classes, 97-98enforced function implementation, 288-290explicit class construction, 107extending a class with inheritance, 89-90,
98-101frameworks for Java classes, 269-270helper classes, 342-343implicit class construction, 106-107inner classes, 334-335interfaces vs. classes, 110Java Foundation Classes (JFC), 385-386JavaDoc documentation of class, 254-257,
256, 257
Microsoft Foundation Classes (MFC), 318modifying objects and classes through
abstract data types, 22, 74, 402-403AS/400 data types/ Java classes, 242BigDecimal, 39-41BigInteger, 37-39BYTE data type, 36CHAR data type, 36converting values to Java data types, 219-220FLOAT, 37-39INTEGER, 37-39numeric data types, 36, 37-39string handling, 14, 41-44
databases (See DB2/400 entries, below)
DB2/400 data access encapsulated into Javaclasses, 239-265, 267-293API for class, 245-247, 248-249AS/400 data types/ Java classes, 179, 242class attributes, 35, 69, 82, 241-245, 404, 405class fields, 251, 273comments in code, 258creating classes, 281Customer class sample code, 258-265Customer class use, 291-292deleting records, 252-253, 281-283derived classes, 283-288designing to an interface, 270-273enforced function implementation, 288-290enhancing the process, 292-293entity encapsulation, 240-241factoring out code to base classes, 267-268frameworks for Java classes, 269-270getter functions, 242-245INIT functions, 251interfaces, additional, 291iterator functions, 279-280JavaDoc documentation of class, 254-257,
AS/400 to Java classes, 179deleting records, 182-184file location specification, 170-171get and set record format, 171-172GetField function, 178-179Java database connectivity (JDBC), 167keyed access, KeyedFile class, 175opening the file, 172-173reading a record, 173-178retrieving field values, 178-179sample listing, 180-182, 182
polymorphism for debugging, 138-139, 142unit testing, 253-254
decrement math operator, 36default constructors, 107default output, 44-46, 45
deleting recordsDB2/400 record-level access, 182-184DB2/400 encapsulated into Java, 252-253,
281-283delimiters, curly braces vs. op codes, 7-8deprecation errors, companion software, 399derivation, 85derived classes, 85, 283-288, 405descendant classes, 97-98designing to an interface, 270-273discovery of objects, 68-70DisplayCustomer application, GUI, 340-342DisplayCustomer listing, GUI, 347-349distributed common object model (DCOM),
60-62, 61
distributed objects, 60-62, 61
Do loop, 24Do Until (DOU) loops, 28Do/while loops, 27-30
Document/View, JTable grids, 359documentation, JavaDoc documentation of
constructors, 14, 15-16, 20, 70, 105-107default constructors, 107descendant classes, 97-98explicit class construction, 107extending a class with inheritance, 98-101implicit class construction, 106-107
121benefits of interfaces, 115-120casting references, 119-120classes vs. interfaces, 110designing to an interface, 270-273downcasting references, 120extensibility of interface, 115, 116FINAL, 114implementation of interface, 111-114, 113
inheritance vs. interfaces, 115, 121-123Java Native Interface (JNI), 225-227listener interfaces, GUI, 329-333pluggability of interfaces, 116-117polymorphism and interfaces, 117, 118remote method invocation (RMI), 121STATIC, 114
Internet Inter-ORB Protocol (IIOP), 62invocation stack, 152IS A KIND OF inheritance, 102I-specs, 9, 142iterator functions, 29, 279-280, 295-314
DDMIterator class, 295-314FINALIZE, 305HASNEXT, 300, 304logical file support, 302-308looping, 311-312NEXT, 299-301, 302, 304, 312overloaded functions, 104-105, 304-305PREVIOUS, 304processing set of entities with DDMIterator,
headers, 362, 365jt400 tables, 375-376populating the grid, 363-364read-only attribute for columns, 367-370scrolling through the database, 372tabbed dialogs, JTabbedPane, 376-378, 377
title of frames, 360tool tips associated with panels, 373-374tree hierarchies, JTree, 378-381, 378
updating column data, 367-370updating DB2/400 data through grid, 370-372validation of data, 368-370views in Document/View, 361
JTree, 378-381, 378
Kkeyed access, KeyedFile class, record-level
database access, 175
LLabel component, GUI, 346, 346
late binding, 143layout managers, 322-325lazy initialization, 252-253