{
super(options, previewer);
setText("Copy Plot to Clipboard");
ExportPlotResources resources = ExportPlotResources.INSTANCE;
ThemedButton closeButton = new ThemedButton("Close",
new ClickHandler() {
public void onClick(ClickEvent event)
{
// save options
onClose.execute(getCurrentOptions(options));
// close dialog
closeDialog();
}
});
addCancelButton(closeButton);
HorizontalPanel infoPanel = new HorizontalPanel();
Image rightMouseImage = new Image(resources.rightMouse());
infoPanel.add(rightMouseImage);
Label label = new Label("Right click on the plot image above to " +
"copy to the clipboard.");
label.setStylePrimaryName(resources.styles().rightClickCopyLabel());
infoPanel.add(label);
addLeftWidget(infoPanel);
}