PageRenderTime 173ms CodeModel.GetById 90ms app.highlight 4ms RepoModel.GetById 76ms app.codeStats 1ms

/src/mpv5/db/objects/HistoryItem.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 91 lines | 41 code | 12 blank | 38 comment | 0 complexity | 1952b1d8542f2a0846f5f96157db84d6 MD5 | raw file
 1/*
 2 *  This file is part of YaBS.
 3 *
 4 *      YaBS is free software: you can redistribute it and/or modify
 5 *      it under the terms of the GNU General Public License as published by
 6 *      the Free Software Foundation, either version 3 of the License, or
 7 *      (at your option) any later version.
 8 *
 9 *      YaBS is distributed in the hope that it will be useful,
10 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
11 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 *      GNU General Public License for more details.
13 *
14 *      You should have received a copy of the GNU General Public License
15 *      along with YaBS.  If not, see <http://www.gnu.org/licenses/>.
16 */
17package mpv5.db.objects;
18
19import java.util.Date;
20import javax.swing.JComponent;
21import mpv5.db.common.Context;
22import mpv5.db.common.DatabaseObject;
23import mpv5.ui.panels.HistoryPanel;
24
25/**
26 *
27 *  
28 */
29public class HistoryItem extends DatabaseObject {
30
31  private String username = "";
32  private String dbidentity = "";
33  private Date dateadded = new Date();
34  private int intitem;
35
36  public HistoryItem() {
37        setContext(Context.getHistory());
38    }
39
40
41    /**
42     * @return the user
43     */
44    public String __getUsername() {
45        return username;
46    }
47
48    /**
49     * @param user the user to set
50     */
51    public void setUsername(String user) {
52        this.username = user;
53    }
54
55    /**
56     * @return the dbidentity
57     */
58    public String __getDbidentity() {
59        return dbidentity;
60    }
61
62    /**
63     * @param dbidentity the dbidentity to set
64     */
65    public void setDbidentity(String dbidentity) {
66        this.dbidentity = dbidentity;
67    }
68
69    /**
70     * @return the item
71     */
72    public int __getIntitem() {
73        return intitem;
74    }
75
76    /**
77     * @param item the item to set
78     */
79    public void setIntitem(int item) {
80        this.intitem = item;
81    }
82
83     @Override
84    public JComponent getView() {
85      return new HistoryPanel();
86    }
87 @Override
88    public mpv5.utils.images.MPIcon getIcon() {
89        return null;
90    }
91}