private WFieldSet getButtonControls(final WValidationErrors errors) {
		// Options Layout
		WFieldSet fieldSet = new WFieldSet("Link configuration");
		WFieldLayout layout = new WFieldLayout();
		layout.setLabelWidth(30);

		layout.addField("Link text", tfLinkLabel);
		layout.addField("Link address", tfUrlField);
		layout.addField("Link AccessKey", tfAccesskey).getLabel().setHint(
				"A single upper case letter or digit.");
		layout.addField("Render as button", cbRenderAsButton);
		layout.addField("Disabled", cbDisabled);
		layout.addField("Open in a new window", cbOpenNew);
		layout.addField("setImage ('/image/attachment.png')", cbSetImage);
		layout.addField("Image Position", ddImagePosition);
		layout.setMargin(new com.github.bordertech.wcomponents.Margin(0, 0, 6, 0));

		// Apply Button
		WButton apply = new WButton("Apply");
		apply.setAction(new ValidatingAction(errors, fieldSet) {
			@Override
			public void executeOnValid(final ActionEvent event) {
				applySettings();
			}
		});

		fieldSet.add(layout);
		fieldSet.add(apply);
		return fieldSet;
	}
private WFieldSet getButtonControls ( final WValidationErrors errors ) { WFieldSet fieldSet = new WFieldSet ( "Link configuration" ) ; WFieldLayout layout = new WFieldLayout ( ) ; layout . setLabelWidth ( 30 ) ; layout . addField ( "Link text" , tfLinkLabel ) ; layout . addField ( "Link address" , tfUrlField ) ; layout . addField ( "Link AccessKey" , tfAccesskey ) . getLabel ( ) . setHint ( "A single upper case letter or digit." ) ; layout . addField ( "Render as button" , cbRenderAsButton ) ; layout . addField ( "Disabled" , cbDisabled ) ; layout . addField ( "Open in a new window" , cbOpenNew ) ; layout . addField ( "setImage ('/image/attachment.png')" , cbSetImage ) ; layout . addField ( "Image Position" , ddImagePosition ) ; layout . setMargin ( new com . github . bordertech . wcomponents . Margin ( 0 , 0 , 6 , 0 ) ) ; WButton apply = new WButton ( "Apply" ) ; apply . setAction ( new ValidatingAction ( errors , fieldSet ) { @ Override public void executeOnValid ( final ActionEvent event ) { applySettings ( ) ; } } ) ; fieldSet . add ( layout ) ; fieldSet . add ( apply ) ; return fieldSet ; }
build the button controls field set.

@param errors the error pane from the page.
@return a field set for the controls.