Package com.google.gwt.event.dom.client

Examples of com.google.gwt.event.dom.client.FocusHandler


      focusHandlerRegistration.removeHandler();
    focusHandlerRegistration = null;
    focusJs = js.trim();
    if(!focusJs.isEmpty())
    {
      focusHandlerRegistration = addFocusHandler(new FocusHandler() {
        @Override
        public void onFocus(FocusEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(focusJs, event, true);
        }
      });
View Full Code Here


      focusHandlerRegistration.removeHandler();
    focusHandlerRegistration = null;
    focusJs = js.trim();
    if(!focusJs.isEmpty())
    {
      focusHandlerRegistration = addFocusHandler(new FocusHandler() {
        @Override
        public void onFocus(FocusEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(focusJs, event, true);
        }
      });
View Full Code Here

   * moved between editors.
   */
  private void setupEditorDataBinding() {
    // Add a handler to clear body error message when the user intends to edit
    // the text.
    requestBody.addFocusHandler(new FocusHandler() {
      @Override
      public void onFocus(FocusEvent event) {
        editorSwitchError.setVisible(false);
      }
    });
View Full Code Here

                final TextBox tb = new TextBox();
                tb.setWidth( "300px" );
                tb.setText( value );

                tb.addFocusHandler( new FocusHandler() {
                    public void onFocus(FocusEvent event) {
                        tb.selectAll();
                    }
                } );
                tb.addBlurHandler( new BlurHandler() {
View Full Code Here

                final TextBox priorityTextBox = new TextBox();
                priorityTextBox.setWidth( "30px" );
                priorityTextBox.setText( constraint.getPriority() + "" );

                priorityTextBox.addFocusHandler( new FocusHandler() {
                    public void onFocus(FocusEvent event) {
                        priorityTextBox.selectAll();
                    }
                } );
                priorityTextBox.addBlurHandler( new BlurHandler() {
                    public void onBlur(BlurEvent event) {
                        final Constraint constraint = constraints.get( connectionRef );
                        constraint.setPriority( Integer.parseInt( priorityTextBox.getText() ) );
                        constraints.put( connectionRef,
                                         constraint );
                    }
                } );

                final TextBox constraintTextBox = new TextBox();
                constraintTextBox.setWidth( "300px" );
                constraintTextBox.setText( constraint.getConstraint() );

                constraintTextBox.addFocusHandler( new FocusHandler() {
                    public void onFocus(FocusEvent event) {
                        constraintTextBox.selectAll();
                    }
                } );
                constraintTextBox.addBlurHandler( new BlurHandler() {
View Full Code Here

        initWidget(rootElement);
        for(CSVRowImportType importType : CSVRowImportType.values()) {
            importTypeField.addItem(importType.getDisplayName());
        }
        importTypeField.setSelectedIndex(CSVRowImportType.INDIVIDUAL.ordinal());
        displayNameField.addFocusHandler(new FocusHandler() {
            @Override
            public void onFocus(FocusEvent event) {
                csvGridView.clearColumnHighlighting();
                csvGridView.setColumnHighlighted(displayNameField.getSelectedIndex(), true);
            }
View Full Code Here

        // use normal textfield styles as a basis
        text.setStyleName(VTextField.CLASSNAME);
        // add datefield spesific style name also
        text.addStyleName(CLASSNAME + "-textfield");
        text.addChangeHandler(this);
        text.addFocusHandler(new FocusHandler() {
            public void onFocus(FocusEvent event) {
                text.addStyleName(VTextField.CLASSNAME + "-"
                        + VTextField.CLASSNAME_FOCUS);
                if (prompting) {
                    text.setText("");
View Full Code Here

            m_widget.setValue("", false);
        }
        m_widgetHolder.add(m_widget);
        m_widget.setName(getHandler().getAttributeName());
        m_widget.addValueChangeHandler(new ChangeHandler());
        m_widget.addFocusHandler(new FocusHandler() {

            public void onFocus(FocusEvent event) {

                ValueFocusHandler.getInstance().setFocus(AttributeValueView.this);
                activateWidget();
View Full Code Here

        // use normal textfield styles as a basis
        text.setStyleName(VTextField.CLASSNAME);
        // add datefield spesific style name also
        text.addStyleName(CLASSNAME + "-textfield");
        text.addChangeHandler(this);
        text.addFocusHandler(new FocusHandler() {
            public void onFocus(FocusEvent event) {
                text.addStyleName(VTextField.CLASSNAME + "-"
                        + VTextField.CLASSNAME_FOCUS);
                if (prompting) {
                    text.setText("");
View Full Code Here

    String permaLinkStr = PermaLinkBuilder.getLink(permissibleObject, ignoredParameters);

    final TextBox textBox = new TextBox();
    textBox.setVisibleLength(100);
    textBox.setText(permaLinkStr);
    textBox.addFocusHandler(new FocusHandler() {

      public void onFocus(FocusEvent event) {
        textBox.selectAll();
      }
    });
View Full Code Here

TOP

Related Classes of com.google.gwt.event.dom.client.FocusHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.