Example usage for com.vaadin.client.ui VTextField VTextField

List of usage examples for com.vaadin.client.ui VTextField VTextField

Introduction

In this page you can find the example usage for com.vaadin.client.ui VTextField VTextField.

Prototype

public VTextField() 

Source Link

Usage

From source file:com.wcs.wcslib.vaadin.widget.filtertablestate.client.FilterTableStateConnector.java

License:Apache License

private void initProfileSaveFields() {
    newProfileDiv = new HTML();
    newProfileDiv.addStyleName(PROFILE_ADD_LAYOUT_STYLE);
    newProfileDiv.setWidth("100%");

    tf = new VTextField();
    tf.addStyleName(TEXTFIELD_STYLE);// w  ww. j a  v a 2  s  . c o  m
    $(newProfileDiv).append($(tf));

    InlineHTML saveBtn = new InlineHTML();
    saveBtn.setStyleName(SAVE_BUTTON_STYLE);
    saveBtn.setTitle(getMsg(SAVE_PROFILE));

    $(saveBtn).click(new Function() {
        @Override
        public void f() {
            closeOverlay();
            rpc.saveProfile(tf.getText(), true);
            rpc.setSelectedProfile(tf.getText());
        }
    });

    $(newProfileDiv).append($(saveBtn));
    layout.add(newProfileDiv);
    $(newProfileDiv).slideUp(0);
}