?? bookeditform.java
字號:
package struts.form;import org.apache.struts.action.ActionForm;import persistence.Book;import persistence.Customer;/** * MyEclipse Struts * Creation date: 11-04-2004 * * XDoclet definition: * @struts:form name="bookEditForm" */public class BookEditForm extends ActionForm { private Book book = new Book(); /** * we will need this field to save the customer id in the dialogs where a customer borrows a book */ private Long customerId; /** * @return Returns the book. */ public Book getBook() { return book; } /** * @param book The book to set. */ public void setBook(Book book) { this.book = book; } /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals(Object arg0) { return book.equals(arg0); } /** * @return */ public String getAuthor() { return book.getAuthor(); } /** * @return */ public Boolean getAvailable() { return book.getAvailable(); } /** * @return */ public Customer getCustomer() { return book.getCustomer(); } /** * @return */ public Long getId() { return book.getId(); } /** * @return */ public String getTitle() { return book.getTitle(); } /* (non-Javadoc) * @see java.lang.Object#hashCode() */ public int hashCode() { return book.hashCode(); } /** * @param author */ public void setAuthor(String author) { book.setAuthor(author); } /** * @param available */ public void setAvailable(Boolean available) { book.setAvailable(available); } /** * @param customer */ public void setCustomer(Customer customer) { book.setCustomer(customer); } /** * @param id */ public void setId(Long id) { book.setId(id); } /** * @param title */ public void setTitle(String title) { book.setTitle(title); } /* (non-Javadoc) * @see java.lang.Object#toString() */ public String toString() { return book.toString(); } /** * @return Returns the customerId. */ public Long getCustomerId() { return customerId; } /** * @param customerId The customerId to set. */ public void setCustomerId(Long customerId) { this.customerId = customerId; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -