/** * Constructor for {@link SuggestBox}. Creates a {@link TextBox} to use with * this {@link SuggestBox}. * * @param oracle the oracle for this <code>SuggestBox</code> */ public SuggestBox(SuggestOracle oracle) { this(oracle, new TextBox()); }
keyHashPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); endpointKeyHashButton = new RadioButton("filter", Utils.constants.endpointKeyHash()); endpointKeyHash = new TextBox(); endpointKeyHash.setWidth("100%"); findButton = new Button(Utils.constants.find());
SafeHtmlUtils.fromSafeConstant(Utils.messages.loginTitle())); usernameBox = new TextBox(); usernameBox.setName("j_username"); usernameBox.setWidth("100%");
endpointKeyHashTextBox = new TextBox(); endpointKeyHashTextBox.setWidth("200px"); detailsTable.setWidget(row, 0, label);
/** * Creates a TextBox widget that wraps an existing <input type='text'> * element. * * This element must already be attached to the document. If the element is * removed from the document, you must call * {@link RootPanel#detachNow(Widget)}. * * @param element the element to be wrapped */ public static TextBox wrap(Element element) { // Assert that the element is attached. assert Document.get().getBody().isOrHasChild(element); TextBox textBox = new TextBox(element); // Mark it attached and remember it for cleanup. textBox.onAttach(); RootPanel.detachOnWindowClose(textBox); return textBox; }
/** * Creates a {@link SuggestBox} widget that wraps an existing <input * type='text'> element. * * This element must already be attached to the document. If the element is * removed from the document, you must call * {@link RootPanel#detachNow(Widget)}. * * @param oracle the suggest box oracle to use * @param element the element to be wrapped */ public static SuggestBox wrap(SuggestOracle oracle, Element element) { // Assert that the element is attached. assert Document.get().getBody().isOrHasChild(element); TextBox textBox = new TextBox(element); SuggestBox suggestBox = new SuggestBox(oracle, textBox); // Mark it attached and remember it for cleanup. suggestBox.onAttach(); RootPanel.detachOnWindowClose(suggestBox); return suggestBox; }
public static TextBox createTextField() { final TextBox textField = new TextBox(); textField.setStyleName( "formText" ); return textField; }
public MaterialTextBox() { super(new TextBox()); setType(InputType.TEXT); }
protected InputSuggest(InputSuggest<T> source) { super(new TextBox(), source); this.oracle = source.oracle; this.highlighter = source.highlighter; this.init(); }
private TextBox getFieldLabel() { final TextBox box = new TextBox(); box.addChangeHandler( new ChangeHandler() { public void onChange( ChangeEvent event ) { editingCol.setFactField( box.getText() ); } } ); return box; }
public Widget getWidget() { TextBox tb = new TextBox(); tb.setMaxLength( 120 ); tb.setWidth( stdFieldWidth + "px" ); return tb; }
private TextBox getHiddenField(final String name, final String value) { final TextBox t = new TextBox(); t.setName(name); t.setText(value); t.setVisible(false); return t; }
protected InputNumber(InputNumber<N> source) { super(new TextBox(), source); this.type = source.type; this.signed = source.signed; this.maskHelper = new MaskValueBoxHelper(this.getInput()); this.reset(); }
public EditorNumberPropertyWidget(String name, int value) { propertyName.setText(name); propertyValueBox = new TextBox(); propertyValueBox.setVisibleLength(3); propertyValueBox.setValue(String.valueOf(value)); propertyValueBox.addKeyUpHandler(this); valuePanel.add(propertyValueBox); }
public AuthenticationDisplay() { super(); userNameInput = new TextBox(); passwordInput = new PasswordTextBox(); loginButton = new Button("Submit"); createLayoutWindowPanel(); userNameInput.setFocus(true); }
public InputDateBox() { super(new TextBox()); StyleUtils.addStyle(this, AbstractInput.STYLE_CONTROL); this.maskHelper = new MaskValueBoxHelper(this.getInput()); this.setFormat(this.params.inputDateSimpleFormat()); }
private void initializeTextFields() { emailText = new TextBox(); emailText.setStyleName( ELEMENT_STYLE ); emailText.setVisibleLength(50); emailText.setMaxLength(70); messageText = new TextArea(); messageText.setStyleName( ELEMENT_STYLE ); messageText.setVisibleLines(4); clearTextFields(); }
public InputEmail() { super(new TextBox()); this.setParser(StringParser.get()); this.setRenderer(StringRenderer.get()); this.addValidator(new EmailValidator()); this.getInput().addKeyPressHandler(InputEmail.EMAIL_CHAR_VALIDATOR); }
public JQMFilterable() { super(Document.get().createFormElement()); getElement().addClassName("ui-filterable"); filter = new TextBox(); filter.getElement().setAttribute("data-type", "search"); setFilterId(Document.get().createUniqueId()); add(filter); }
@Override protected TabItem createGeneralTab() { final TabItem tab = new TabItem(CrudRs.TXT.generalSetting()); tab.addField(id, CrudRs.TXT.id()); event = new ExChosenValueListBox<>(binding, new ModelNameRenderer<SystemEventModel>(), new ModelIdProvidesKey<SystemEventModel>()); tab.addField(event, AdminModuleRs.MSG.event()); subject = new TextBox(); tab.addField(subject, AdminModuleRs.MSG.subject()); template = new TextArea(); tab.addField(template, AdminModuleRs.MSG.template()); return tab; }