}
public ButtonsPanel withResultOrientation(final ButtonListener.ResultOrientationChange buttonListener) {
UserPreferences preferences = userManager.readPreferences();
int initialState = preferences.getResultOrientation();
AjaxFallbackLink<Void> completion = new IconButton("resultOrientation", initialState,
"glyphicon glyphicon-arrow-down", "glyphicon glyphicon-arrow-right") {
@Override
protected void onClick(AjaxRequestTarget target, int state) {
UserPreferences preferences = userManager.readPreferences();
preferences.setResultOrientation(state);