1 11 package org.eclipse.ui.internal.cheatsheets.data; 12 13 import java.util.ArrayList ; 14 15 public class RepeatedSubItem extends AbstractSubItem implements ISubItemItem { 16 private String values; 17 private ArrayList subItems; 18 19 22 public RepeatedSubItem() { 23 super(); 24 } 25 26 public RepeatedSubItem(String values) { 27 super(); 28 this.values = values; 29 } 30 31 35 public String getValues() { 36 return values; 37 } 38 39 43 public void setValues(String newValues) { 44 this.values = newValues; 45 } 46 47 50 public void addSubItem(AbstractSubItem subItem) { 51 if(subItems == null) { 52 subItems = new ArrayList (); 53 } 54 subItems.add(subItem); 55 } 56 57 61 public ArrayList getSubItems() { 62 return subItems; 63 } 64 } 65 | Popular Tags |