1 11 12 package org.jivesoftware.messenger.forms; 13 14 import java.util.Iterator ; 15 16 23 public interface FormField { 24 25 public static final String TYPE_BOOLEAN = "boolean"; 26 public static final String TYPE_FIXED = "fixed"; 27 public static final String TYPE_HIDDEN = "hidden"; 28 public static final String TYPE_JID_MULTI = "jid-multi"; 29 public static final String TYPE_JID_SINGLE = "jid-single"; 30 public static final String TYPE_LIST_MULTI = "list-multi"; 31 public static final String TYPE_LIST_SINGLE = "list-single"; 32 public static final String TYPE_TEXT_MULTI = "text-multi"; 33 public static final String TYPE_TEXT_PRIVATE = "text-private"; 34 public static final String TYPE_TEXT_SINGLE = "text-single"; 35 36 42 public void addValue(String value); 43 44 47 public void clearValues(); 48 49 56 public void addOption(String label, String value); 57 58 79 public abstract void setType(String type); 80 81 86 public abstract void setRequired(boolean required); 87 88 94 public abstract void setLabel(String label); 95 96 105 public abstract void setDescription(String description); 106 107 112 public abstract boolean isRequired(); 113 114 119 public abstract String getVariable(); 120 121 128 public abstract Iterator <String > getValues(); 129 130 151 public abstract String getType(); 152 153 159 public abstract String getLabel(); 160 161 170 public abstract String getDescription(); 171 } 172 | Popular Tags |