PageRenderTime 23ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  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. */
  17. package mpv5.db.objects;
  18. import java.util.Date;
  19. import javax.swing.JComponent;
  20. import mpv5.db.common.Context;
  21. import mpv5.db.common.DatabaseObject;
  22. import mpv5.ui.panels.HistoryPanel;
  23. /**
  24. *
  25. *
  26. */
  27. public class HistoryItem extends DatabaseObject {
  28. private String username = "";
  29. private String dbidentity = "";
  30. private Date dateadded = new Date();
  31. private int intitem;
  32. public HistoryItem() {
  33. setContext(Context.getHistory());
  34. }
  35. /**
  36. * @return the user
  37. */
  38. public String __getUsername() {
  39. return username;
  40. }
  41. /**
  42. * @param user the user to set
  43. */
  44. public void setUsername(String user) {
  45. this.username = user;
  46. }
  47. /**
  48. * @return the dbidentity
  49. */
  50. public String __getDbidentity() {
  51. return dbidentity;
  52. }
  53. /**
  54. * @param dbidentity the dbidentity to set
  55. */
  56. public void setDbidentity(String dbidentity) {
  57. this.dbidentity = dbidentity;
  58. }
  59. /**
  60. * @return the item
  61. */
  62. public int __getIntitem() {
  63. return intitem;
  64. }
  65. /**
  66. * @param item the item to set
  67. */
  68. public void setIntitem(int item) {
  69. this.intitem = item;
  70. }
  71. @Override
  72. public JComponent getView() {
  73. return new HistoryPanel();
  74. }
  75. @Override
  76. public mpv5.utils.images.MPIcon getIcon() {
  77. return null;
  78. }
  79. }