content.setWidget(0, 1, right);
content.getFlexCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT);
content.getFlexCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT);
content.setWidth("100%");
content.setStylePrimaryName("lab-Footer");
PushButton viewSource = new PushButton();
viewSource.setText("Source");
viewSource.setTitle("View Source");
viewSource.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
CommandEvent.fire(new SystemSetPerspectiveCommand(SystemSetPerspectiveCommand.VIEW_SOURCE));
}
});
PushButton viewPreview = new PushButton();
viewPreview.setText("Preview");
viewPreview.setTitle("Preview");
viewPreview.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
CommandEvent.fire(new SystemSetPerspectiveCommand(SystemSetPerspectiveCommand.VIEW_PREVIEW));
}
});
PushButton viewSplit = new PushButton();
viewSplit.setText("Split");
viewSplit.setTitle("View Source and Preview");
viewSplit.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
CommandEvent.fire(new SystemSetPerspectiveCommand(SystemSetPerspectiveCommand.VIEW_SPLIT));
}
});
PushButton viewOutput = new PushButton();
viewOutput.setText("Output");
viewOutput.setTitle("View Output");
viewOutput.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
CommandEvent.fire(new SystemSetPerspectiveCommand(SystemSetPerspectiveCommand.VIEW_OUTPUT));
}
});