Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
62
Chapter 2 First Servlets
Listing 2.17 LabeledTextField.java (continued)
/** The Label at the left side of the LabeledTextField.
* To manipulate the Label, do:
*
* LabeledTextField ltf = new LabeledTextField(...);
* ltf.getLabel().someLabelMethod(...);
*
*
* @see #getTextField
*/
public Label getLabel() {
return(label);
}
/** The TextField at the right side of the
* LabeledTextField.
*
* @see #getLabel
*/
public TextField getTextField() {
return(textField);
}
}
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved