]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/lists/ColumnDefinition.java
1 package org
.argeo
.eclipse
.ui
.jcr
.lists
;
4 * Utility object to manage column in various tables and extracts displaying
7 public class ColumnDefinition
{
8 private final static int DEFAULT_COLUMN_SIZE
= 120;
10 private String selectorName
;
11 private String propertyName
;
12 private String headerLabel
;
13 private int propertyType
;
14 private int columnSize
= DEFAULT_COLUMN_SIZE
;
17 * new column using default width
24 public ColumnDefinition(String selectorName
, String propertyName
,
25 int propertyType
, String headerLabel
) {
26 this.selectorName
= selectorName
;
27 this.propertyName
= propertyName
;
28 this.propertyType
= propertyType
;
29 this.headerLabel
= headerLabel
;
40 public ColumnDefinition(String selectorName
, String propertyName
,
41 int propertyType
, String headerLabel
, int columnSize
) {
42 this.selectorName
= selectorName
;
43 this.propertyName
= propertyName
;
44 this.propertyType
= propertyType
;
45 this.headerLabel
= headerLabel
;
46 this.columnSize
= columnSize
;
49 public String
getSelectorName() {
53 public void setSelectorName(String selectorName
) {
54 this.selectorName
= selectorName
;
57 public String
getPropertyName() {
61 public void setPropertyName(String propertyName
) {
62 this.propertyName
= propertyName
;
65 public String
getHeaderLabel() {
69 public void setHeaderLabel(String headerLabel
) {
70 this.headerLabel
= headerLabel
;
73 public int getPropertyType() {
77 public void setPropertyType(int propertyType
) {
78 this.propertyType
= propertyType
;
81 public int getColumnSize() {
85 public void setColumnSize(int columnSize
) {
86 this.columnSize
= columnSize
;