package Bean; import java.awt.*; public class Book { private int BookId; private String BookName; private String author; private float price; private String image; private String ISBN; private String publish; private String date; private int stock; private Color color=new Color(0,0,0); private String colorcode=""; public int getBookId() { return BookId; } public void setBookId(int bookId) { BookId = bookId; } public String getBookName() { return BookName; } public void setBookName(String bookName) { BookName = bookName; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public float getPrice() { return price; } public void setPrice(float price) { this.price = price; } public String getImage() { return image; } public void setImage(String image) { this.image = image; } public Color getColor() { return color; } public void setColor(Color color) { this.color = color; } public String getColorcode() { return "#"+Integer.toHexString(color.getRed())+Integer.toHexString(color.getGreen())+Integer.toHexString(color.getBlue()); } public String getISBN() { return ISBN; } public void setISBN(String ISBN) { this.ISBN = ISBN; } public String getPublish() { return publish; } public void setPublish(String publish) { this.publish = publish; } public String getDate() { return date; } public void setDate(String date) { this.date = date; } public int getStock() { return stock; } public void setStock(int stock) { this.stock = stock; } public void setColorcode(String colorcode) { this.colorcode = colorcode; } }
最近下载更多