public Field addField(String name, String type, String info, String description) { Field newField; if (type.Equals("fixed")) newField = new FixedField(name, info, description); else if (type.Equals("delimited")) newField = new DelimField(name, info, description); else if (type.Equals("dependent")) newField = new DependField(name, info, description); else if (type.Equals("multi")) newField = new MultiField(name, info, description); else return null; data.AddLast(newField); return newField; }
internal void drawData(DelimField data) { createLabel(data.getName() + " : " + data.getDelim(), data.getDescription() + "\r\n\r\nThe value of this field ends with \'" + data.getDelim() + "\'.\r\n"); }