public void addSelectChoice(SelectChoice choice) { if (choices == null) { choices = new List <SelectChoice>(); } choice.Index = choices.Count; choices.Add(choice); }
public virtual void addSelectChoice(SelectChoice choice) { if (choices == null) { choices = new List <SelectChoice>(); } choice.setIndex(choices.size()); choices.addElement(choice); }
public void removeSelectChoice(SelectChoice choice) { if (choices == null) { choice.Index = 0; return; } if (choices.Contains(choice)) { choices.Remove(choice); } }
public virtual void removeSelectChoice(SelectChoice choice) { if (choices == null) { choice.Index = 0; return; } if (choices.contains(choice)) { choices.removeElement(choice); } }