*/
public static void show(TextBox requestSampleTextBox, final RequestUriTree requestUriTree) {
final DialogBox dialogBox = new DialogBox();
dialogBox.setText(GuiFactory.strings.testRequestDialog());
final Frame frame = new Frame(requestSampleTextBox.getText());
frame.setWidth(Math.floor(Window.getClientWidth() * 0.9) + "px");
frame.setHeight(Math.floor(Window.getClientHeight() * 0.75) + "px");
VerticalPanel iframePanel = new VerticalPanel();
iframePanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
HorizontalPanel iframeSampleBoxPanel = new HorizontalPanel();
final TextBox iframeSampleTextBox = new TextBox();
iframeSampleTextBox.setText(requestSampleTextBox.getText());
iframeSampleTextBox.setWidth(Math.floor(Window.getClientWidth() * 0.6) + "px");
iframeSampleBoxPanel.add(iframeSampleTextBox);
iframeSampleBoxPanel.add(new HTML(" "));
Button iframeReTestButton = new Button(GuiFactory.strings.reTestRequest());
iframeReTestButton.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
frame.setUrl(iframeSampleTextBox.getText());
}
});
iframeSampleBoxPanel.add(iframeReTestButton);
iframeSampleBoxPanel.add(new HTML(" "));