1 11 12 package org.jivesoftware.messenger.forms; 13 14 import java.util.ArrayList ; 15 import java.util.Iterator ; 16 import java.util.List ; 17 18 37 public interface DataForm { 38 39 public static final String TYPE_FORM = "form"; 40 public static final String TYPE_SUBMIT = "submit"; 41 public static final String TYPE_CANCEL = "cancel"; 42 public static final String TYPE_RESULT = "result"; 43 44 50 public abstract void setTitle(String title); 51 52 59 public abstract void setInstructions(List instructions); 60 61 77 public abstract String getType(); 78 79 85 public abstract String getTitle(); 86 87 95 public abstract Iterator getInstructions(); 96 97 105 public FormField getField(String variable); 106 107 112 public abstract Iterator getFields(); 113 114 119 public abstract int getFieldsSize(); 120 121 128 public abstract void addInstruction(String instruction); 129 130 135 public abstract void addField(FormField field); 136 137 144 public abstract void addReportedField(FormField field); 145 146 153 public abstract void addItemFields(ArrayList itemFields); 154 } 155 | Popular Tags |