1 24 package org.riotfamily.riot.list; 25 26 import org.riotfamily.riot.list.ui.render.CellRenderer; 27 28 31 public class ColumnConfig { 32 33 private String property; 34 35 private int lookupLevel; 36 37 private boolean sortable = true; 38 39 private boolean ascending = true; 40 41 private boolean caseSensitive = true; 42 43 private CellRenderer renderer; 44 45 private String cssClass; 46 47 public ColumnConfig() { 48 } 49 50 public ColumnConfig(CellRenderer renderer) { 51 this.renderer = renderer; 52 } 53 54 public int getLookupLevel() { 55 return lookupLevel; 56 } 57 58 public void setLookupLevel(int lookupLevel) { 59 this.lookupLevel = lookupLevel; 60 } 61 62 public String getProperty() { 63 return property; 64 } 65 66 public void setProperty(String property) { 67 this.property = property; 68 } 69 70 public boolean isSortable() { 71 return sortable && property != null; 72 } 73 74 public boolean isAscending() { 75 return ascending; 76 } 77 78 public void setAscending(boolean ascending) { 79 this.ascending = ascending; 80 } 81 82 public boolean isCaseSensitive() { 83 return caseSensitive; 84 } 85 86 public void setCaseSensitive(boolean caseSensitive) { 87 this.caseSensitive = caseSensitive; 88 } 89 90 public void setSortable(boolean sortable) { 91 this.sortable = sortable; 92 } 93 94 public CellRenderer getRenderer() { 95 return renderer; 96 } 97 98 public void setRenderer(CellRenderer renderer) { 99 this.renderer = renderer; 100 } 101 102 public String getCssClass() { 103 return cssClass; 104 } 105 106 public void setCssClass(String cssClass) { 107 this.cssClass = cssClass; 108 } 109 } 110 | Popular Tags |