1 25 26 package net.killingar.forum.actions; 27 28 public class StringOption 29 { 30 String option; 31 String text; 32 String currentValue; 33 String defaultValue; 34 35 public StringOption(String option, String text, String currentValue, String defaultValue) 36 { 37 this.option = option; 38 this.text = text; 39 if (currentValue == null) 40 this.currentValue = defaultValue; 41 else 42 this.currentValue = currentValue; 43 44 45 this.defaultValue = defaultValue; 46 } 47 48 public String getOption() { return option; } 49 public String getText() { return text; } 50 public String getCurrentValue() { return currentValue; } 51 public String getDefaultValue() { return defaultValue; } 52 } 53 | Popular Tags |