1 18 23 24 package org.apache.roller.config.runtime; 25 26 39 public class PropertyDef { 40 41 private String name = null; 42 private String key = null; 43 private String type = null; 44 private String defaultValue = null; 45 private int rows = 5; 46 private int cols = 25; 47 48 49 50 public PropertyDef() {} 51 52 public String toString() { 53 return "["+name+","+key+","+type+","+defaultValue+","+rows+","+cols+"]"; 54 } 55 56 public String getName() { 57 return name; 58 } 59 60 public void setName(String name) { 61 this.name = name; 62 } 63 64 public String getKey() { 65 return key; 66 } 67 68 public void setKey(String key) { 69 this.key = key; 70 } 71 72 public String getType() { 73 return type; 74 } 75 76 public void setType(String type) { 77 this.type = type; 78 } 79 80 public String getDefaultValue() { 81 return defaultValue; 82 } 83 84 public void setDefaultValue(String defaultvalue) { 85 this.defaultValue = defaultvalue; 86 } 87 88 public int getRows() { 89 return rows; 90 } 91 92 public void setRows(int rows) { 93 this.rows = rows; 94 } 95 96 public void setRows(String rows) { 97 try { 99 int r = Integer.parseInt(rows); 100 this.rows = r; 101 } catch(Exception e) { 102 } 104 } 105 public int getCols() { 106 return cols; 107 } 108 109 public void setCols(int cols) { 110 this.cols = cols; 111 } 112 113 public void setCols(String cols) { 114 try { 116 int c = Integer.parseInt(cols); 117 this.cols = c; 118 } catch(Exception e) { 119 } 121 } 122 } 123 | Popular Tags |