Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public void drawData(FixedField data)
 {
     createLabel(data.getName() + " (" + data.getSize() + ")", data.getDescription() + "\r\n\r\nThe size of this field is " + data.getSize() + " bytes.\r\n");
 }