Exemple #1
0
 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;
 }
Exemple #2
0
 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");
 }