/** * Add a field using the label and components passed in. * * @param label the label to use for the field * @param field the component to use for the field * @return the field which was added to the layout. */ public WField addField(final WLabel label, final WComponent field) { WField wField = new WField(label, field); add(wField); return wField; }
/** * Add a field consisting of a WButton with a null label. * * @param button the WButton to add to the layout. * @return the field added to the layout. */ public WField addField(final WButton button) { WField field = new WField((WLabel) null, button); add(field); return field; }