Java Code Examples for com.google.gwt.user.client.ui.TextArea#setText()
The following examples show how to use
com.google.gwt.user.client.ui.TextArea#setText() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClipboardSupport.java From jetpad-projectional-open-source with Apache License 2.0 | 6 votes |
public void copyContent(ClipboardContent content) { final TextArea copyArea = createClipboardTextArea(); if (TextContentHelper.isText(content)) { copyArea.setText(TextContentHelper.getText(content)); } else { copyArea.setText(content.toString()); } copyArea.selectAll(); new Timer() { @Override public void run() { RootPanel.get().remove(copyArea); $(myTarget).focus(); } }.schedule(20); }
Example 2
Source File: StandaloneServerPresenter.java From core with GNU Lesser General Public License v2.1 | 6 votes |
private void showVersionInfo(String json) { DefaultWindow window = new DefaultWindow("Management Model Versions"); window.setWidth(480); window.setHeight(360); window.addCloseHandler(new CloseHandler<PopupPanel>() { @Override public void onClose(CloseEvent<PopupPanel> event) { } }); TextArea textArea = new TextArea(); textArea.setStyleName("fill-layout"); textArea.setText(json); window.setWidget(textArea); window.setGlassEnabled(true); window.center(); }
Example 3
Source File: TopologyPresenter.java From core with GNU Lesser General Public License v2.1 | 6 votes |
private void showVersionInfo(String json) { DefaultWindow window = new DefaultWindow("Management Model Versions"); window.setWidth(480); window.setHeight(360); window.addCloseHandler(new CloseHandler<PopupPanel>() { @Override public void onClose(CloseEvent<PopupPanel> event) { } }); TextArea textArea = new TextArea(); textArea.setStyleName("fill-layout"); textArea.setText(json); window.setWidget(textArea); window.setGlassEnabled(true); window.center(); }
Example 4
Source File: StdPanel.java From EasyML with Apache License 2.0 | 5 votes |
protected void init(String msg, String title) { this.setTitle("stdErr"); this.setGlassEnabled(true); HTML closeButton = new HTML("X"); closeButton.setSize("10px", "10px"); closeButton.setStyleName("closebtn"); closeButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { StdPanel.this.hide(); } }); ScrollPanel scvp = new ScrollPanel(); VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.add(closeButton); verticalPanel.setCellHeight(closeButton, "30px"); verticalPanel.setStyleName("vpanel"); HTML desc = new HTML(title); desc.setStyleName("popupTitle"); verticalPanel.add(desc); verticalPanel.setCellHeight(desc, "30px"); TextArea label = new TextArea(); label.setText(msg); label.setReadOnly(true); label.setSize("650px", "400px"); verticalPanel.add(label); scvp.add(verticalPanel); this.add(scvp); this.setStyleName("loading_container"); this.center(); this.show(); }
Example 5
Source File: ScriptParameterPanel.java From EasyML with Apache License 2.0 | 5 votes |
/** * Init UI * @param editable Wheather is editable */ protected void init(boolean editable){ initGridHead( 3 ); inCountBox = new TextBox(); outCountBox = new TextBox(); inCountBox.setText( "" +widget.getInNodeShapes().size() ); outCountBox.setText( "" + widget.getOutNodeShapes().size()); paramsGrid.setVisible(true); paramsGrid.setWidget( 1 , 0, new Label("Input File Number")); paramsGrid.setWidget( 1, 1, new Label("Int")); paramsGrid.setWidget( 1, 2, inCountBox ); inCountBox.setSize("95%", "100%"); inCountBox.setStyleName("okTextbox"); inCountBox.setEnabled(editable); inCountBox.setTabIndex(0); paramsGrid.setWidget( 2 , 0, new Label("Output File Number")); paramsGrid.setWidget( 2, 1, new Label("Int")); paramsGrid.setWidget( 2 , 2, outCountBox ); outCountBox.setSize("95%", "100%"); outCountBox.setStyleName("okTextbox"); outCountBox.setEnabled(editable); outCountBox.setTabIndex(1); scriptArea = new TextArea(); scriptArea.setText( widget.getProgramConf().getScriptContent()); this.add( paramsGrid ); this.add( new Label("Script")); this.add( scriptArea ); }
Example 6
Source File: SqlScriptParameterPanel.java From EasyML with Apache License 2.0 | 5 votes |
/** * Init UI * @param editable Wheather is editable */ protected void init(boolean editable){ scriptArea = new TextArea(); scriptArea.setText( widget.getProgramConf().getScriptContent()); this.add( panel ); this.add( new Label("Script")); this.add( scriptArea ); }