PageRenderTime 52ms CodeModel.GetById 45ms app.highlight 4ms RepoModel.GetById 1ms 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
 1
 2/*
 3*  This file is part of YaBS.
 4*
 5*      YaBS is free software: you can redistribute it and/or modify
 6*      it under the terms of the GNU General Public License as published by
 7*      the Free Software Foundation, either version 3 of the License, or
 8*      (at your option) any later version.
 9*
10*      YaBS is distributed in the hope that it will be useful,
11*      but WITHOUT ANY WARRANTY; without even the implied warranty of
12*      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*      GNU General Public License for more details.
14*
15*      You should have received a copy of the GNU General Public License
16*      along with YaBS.  If not, see <http://www.gnu.org/licenses/>.
17 */
18package mpv5.ui.misc;
19
20//~--- non-JDK imports --------------------------------------------------------
21
22import mpv5.utils.text.RandomText;
23
24//~--- JDK imports ------------------------------------------------------------
25
26import java.io.Serializable;
27
28/**
29 *
30 * @author Florian Strienz
31 */
32public class TableColumnLayoutInfo implements Serializable, Comparable<TableColumnLayoutInfo> {
33    private String columnName;
34    private int    order;
35    private int    width;
36
37    public TableColumnLayoutInfo() {}
38
39    public TableColumnLayoutInfo(String columnName, int order, int width) {
40        this.columnName = columnName;
41        this.order      = order;
42        this.width      = width;
43    }
44
45    @Override
46    public int compareTo(TableColumnLayoutInfo o) {
47        return order - o.order;
48    }
49
50    public int getOrder() {
51        return order;
52    }
53
54    public void setOrder(int order) {
55        this.order = order;
56    }
57
58    public int getWidth() {
59        return width;
60    }
61
62    public void setWidth(int width) {
63        this.width = width;
64    }
65
66    public String getColumnName() {
67        return columnName;
68    }
69
70    public void setColumnName(String columnName) {
71        this.columnName = columnName;
72    }
73}
74
75
76//~ Formatted by Jindent --- http://www.jindent.com