private Field m_field;
private boolean m_required;
public ClickField(ExtendedElement source) {
super(source.attribute("name"));
m_field = new Field(source, Field.TRACE_CLICK);
m_required = source.booleanAttribute("required");
boolean high = (!source.attribute("top").equals("")) && (!source.attribute("bottom").equals(""));
String heightString = m_field.hasImage() ? "" : (high ? ", h 10cm" : ", h 1cm");
setLayout(new MigLayout("fill, insets 0"));
add(m_field, "grow" + heightString);