code: private WButton makeImageButtonWithPosition(final String text, final ImagePosition pos,
  			final Boolean asLink) {
  		WButton button = new WButton(text);
  		button.setImage("/image/tick.png");
  		if (pos != null) {
  			button.setImagePosition(pos);
  		}
  		button.setActionObject(button);
  		button.setAction(new ExampleButtonAction());
  		if (asLink) {
  			button.setRenderAsLink(true);
  		}
  		return button;
  	}
docs: Helper to create a button with an image and an action.
  
  @param text the text content of the button
  @param pos the position of the button image relative to the text
  @param asLink indicates the button should be rendered as a link
  @return a button