- Timestamp:
- May 10, 2010, 7:42:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ViewItem.java
r865 r871 18 18 private SelectItem[] keyValueList; 19 19 20 private StringinputText;21 private StringselectOneMenu;22 private StringradioGroup;20 private boolean inputText; 21 private boolean selectOneMenu; 22 private boolean radioGroup; 23 23 public ViewItem(){ 24 inputText = null;25 selectOneMenu = null;26 radioGroup = null;24 inputText = false; 25 selectOneMenu = false; 26 radioGroup = false; 27 27 } 28 28 … … 37 37 public String getRenderer() { 38 38 return renderer; 39 }40 41 public void setRenderer(String renderer) {42 this.renderer = renderer;43 39 } 44 40 … … 81 77 } 82 78 83 public void setInputText( StringinputText) {79 public void setInputText(boolean inputText) { 84 80 this.inputText = inputText; 85 81 } 86 82 87 public StringgetInputText() {83 public boolean getInputText() { 88 84 return inputText; 89 85 } 90 86 91 public void setSelectOneMenu( StringselectOneMenu) {87 public void setSelectOneMenu(boolean selectOneMenu) { 92 88 this.selectOneMenu = selectOneMenu; 93 89 } 94 90 95 public StringgetSelectOneMenu() {91 public boolean getSelectOneMenu() { 96 92 return selectOneMenu; 93 } 94 public boolean getRadioGroup(){ 95 return radioGroup; 96 } 97 public void setRadioGroup(boolean radioGroup){ 98 this.radioGroup = radioGroup; 97 99 } 98 100 /** … … 100 102 * @param r valid inputs are inputText, selectOneMenu and radioGroup 101 103 */ 102 public void setRenderer Flag(String r){104 public void setRenderer(String r){ 103 105 if (r.equals("inputText")) { 104 this.inputText = new String("bernd");106 this.inputText = true; 105 107 } 106 108 if (r.equals("selectOneMenu")){ 107 this.selectOneMenu = new String("bernd"); //null;109 this.selectOneMenu = true; //null; 108 110 } 109 111 if (r.equals("radioGroup")){ 110 this.radioGroup = new String("bernd");112 this.radioGroup = true; 111 113 } 114 this.renderer = r; 112 115 } 113 116 /**
Note:
See TracChangeset
for help on using the changeset viewer.