1 6 7 package org.roller.config.runtime; 8 9 22 public class PropertyDef { 23 24 private String name = null; 25 private String key = null; 26 private String type = null; 27 private String defaultValue = null; 28 private int rows = 5; 29 private int cols = 25; 30 31 32 33 public PropertyDef() {} 34 35 public String toString() { 36 return "["+name+","+key+","+type+","+defaultValue+","+rows+","+cols+"]"; 37 } 38 39 public String getName() { 40 return name; 41 } 42 43 public void setName(String name) { 44 this.name = name; 45 } 46 47 public String getKey() { 48 return key; 49 } 50 51 public void setKey(String key) { 52 this.key = key; 53 } 54 55 public String getType() { 56 return type; 57 } 58 59 public void setType(String type) { 60 this.type = type; 61 } 62 63 public String getDefaultValue() { 64 return defaultValue; 65 } 66 67 public void setDefaultValue(String defaultvalue) { 68 this.defaultValue = defaultvalue; 69 } 70 71 public int getRows() { 72 return rows; 73 } 74 75 public void setRows(int rows) { 76 this.rows = rows; 77 } 78 79 public void setRows(String rows) { 80 try { 82 int r = Integer.parseInt(rows); 83 this.rows = r; 84 } catch(Exception e) { 85 } 87 } 88 public int getCols() { 89 return cols; 90 } 91 92 public void setCols(int cols) { 93 this.cols = cols; 94 } 95 96 public void setCols(String cols) { 97 try { 99 int c = Integer.parseInt(cols); 100 this.cols = c; 101 } catch(Exception e) { 102 } 104 } 105 } 106 | Popular Tags |