]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - jcr/org.argeo.cms.ui/src/org/argeo/eclipse/ui/jcr/lists/JcrColumnDefinition.java
1 package org
.argeo
.eclipse
.ui
.jcr
.lists
;
4 import javax
.jcr
.query
.Row
;
6 import org
.argeo
.eclipse
.ui
.ColumnDefinition
;
9 * Utility object to manage column in various tables and extracts displaying
12 public class JcrColumnDefinition
extends ColumnDefinition
{
13 private final static int DEFAULT_COLUMN_SIZE
= 120;
15 private String selectorName
;
16 private String propertyName
;
17 private int propertyType
;
18 private int columnSize
;
21 * Use this kind of columns to configure a table that displays JCR
29 public JcrColumnDefinition(String selectorName
, String propertyName
,
30 int propertyType
, String headerLabel
) {
31 super(new SimpleJcrRowLabelProvider(selectorName
, propertyName
),
33 this.selectorName
= selectorName
;
34 this.propertyName
= propertyName
;
35 this.propertyType
= propertyType
;
36 this.columnSize
= DEFAULT_COLUMN_SIZE
;
40 * Use this kind of columns to configure a table that displays JCR
49 public JcrColumnDefinition(String selectorName
, String propertyName
,
50 int propertyType
, String headerLabel
, int columnSize
) {
51 super(new SimpleJcrRowLabelProvider(selectorName
, propertyName
),
52 headerLabel
, columnSize
);
53 this.selectorName
= selectorName
;
54 this.propertyName
= propertyName
;
55 this.propertyType
= propertyType
;
56 this.columnSize
= columnSize
;
60 * Use this kind of columns to configure a table that displays JCR
68 public JcrColumnDefinition(String propertyName
, int propertyType
,
69 String headerLabel
, int columnSize
) {
70 super(new SimpleJcrNodeLabelProvider(propertyName
), headerLabel
,
72 this.propertyName
= propertyName
;
73 this.propertyType
= propertyType
;
74 this.columnSize
= columnSize
;
77 public String
getSelectorName() {
81 public void setSelectorName(String selectorName
) {
82 this.selectorName
= selectorName
;
85 public String
getPropertyName() {
89 public void setPropertyName(String propertyName
) {
90 this.propertyName
= propertyName
;
93 public int getPropertyType() {
97 public void setPropertyType(int propertyType
) {
98 this.propertyType
= propertyType
;
101 public int getColumnSize() {
105 public void setColumnSize(int columnSize
) {
106 this.columnSize
= columnSize
;
109 public String
getHeaderLabel() {
110 return super.getLabel();
113 public void setHeaderLabel(String headerLabel
) {
114 super.setLabel(headerLabel
);