/** * Builds the user name box. * * @return the text box */ private TextBox buildUserNameBox() { TextBox userNameBox = new TextBox(); userNameBox.setStyleName("h1"); userNameBox.setFocus(true); String userNameValue = debugMode ? "unitTester@blackducksoftware.com" : "@blackducksoftware.com"; userNameBox.setText(userNameValue); userNameBox.setAlignment(TextAlignment.LEFT); userNameBox.setSize("265px", "20px"); return userNameBox; }
/** * Builds the server box. * * @return the text box */ private TextBox buildServerBox() { TextBox serverBox = new TextBox(); serverBox.setStyleName("h1"); serverBox.setFocus(true); String serverValue = debugMode ? "http://seneca.blackducksoftware.com" : ".blackducksoftware.com"; serverBox.setText(serverValue); serverBox.setAlignment(TextAlignment.LEFT); serverBox.setSize("265px", "20px"); serverBox.setFocus(true); return serverBox; }
public boolean edit(WSGrid.WSCell element) { if (readonly) return false; editCellReference = this; wsCellReference = element; textBox.setText(getTextValue()); textBox.setVisible(true); Style s = textBox.getElement().getStyle(); s.setProperty("left", element.getAbsoluteLeft() + "px"); s.setProperty("top", element.getAbsoluteTop() + "px"); textBox.setSize(element.getOffsetWidth() + "px", element.getOffsetHeight() + "px"); textBox.setCursorPos(textBox.getText().length()); textBox.setFocus(true); return true; }
label.getElement().getStyle().setPaddingLeft(5, Unit.PX); m_tf = new TextBox(); m_tf.setSize("99%", "15px"); m_okBtn = new Button("OK"); m_okBtn.setSize("100%", "100%");
textBox.setSize("", "30"); submitPanel.add(textBox);