PageRenderTime 17ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/src/mpv5/ui/misc/TableColumnLayoutInfo.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 76 lines | 36 code | 17 blank | 23 comment | 0 complexity | 7c04f985c8abaf9d96486716f120b701 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.ui.misc;
  18. //~--- non-JDK imports --------------------------------------------------------
  19. import mpv5.utils.text.RandomText;
  20. //~--- JDK imports ------------------------------------------------------------
  21. import java.io.Serializable;
  22. /**
  23. *
  24. * @author Florian Strienz
  25. */
  26. public class TableColumnLayoutInfo implements Serializable, Comparable<TableColumnLayoutInfo> {
  27. private String columnName;
  28. private int order;
  29. private int width;
  30. public TableColumnLayoutInfo() {}
  31. public TableColumnLayoutInfo(String columnName, int order, int width) {
  32. this.columnName = columnName;
  33. this.order = order;
  34. this.width = width;
  35. }
  36. @Override
  37. public int compareTo(TableColumnLayoutInfo o) {
  38. return order - o.order;
  39. }
  40. public int getOrder() {
  41. return order;
  42. }
  43. public void setOrder(int order) {
  44. this.order = order;
  45. }
  46. public int getWidth() {
  47. return width;
  48. }
  49. public void setWidth(int width) {
  50. this.width = width;
  51. }
  52. public String getColumnName() {
  53. return columnName;
  54. }
  55. public void setColumnName(String columnName) {
  56. this.columnName = columnName;
  57. }
  58. }
  59. //~ Formatted by Jindent --- http://www.jindent.com