Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.FocusListener


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

                priorityTextBox.addFocusListener( new FocusListener() {
                    public void onFocus(Widget arg1) {
                        priorityTextBox.selectAll();
                    }

                    public void onLostFocus(Widget arg1) {

                        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.addFocusListener( new FocusListener() {
                    public void onFocus(Widget arg1) {
                        constraintTextBox.selectAll();
                    }

                    public void onLostFocus(Widget arg1) {
View Full Code Here


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

                tb.addFocusListener( new FocusListener() {
                    public void onFocus(Widget arg1) {
                        tb.selectAll();
                    }

                    public void onLostFocus(Widget arg1) {
View Full Code Here

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

                tb.addFocusListener( new FocusListener() {
                    public void onFocus(Widget arg1) {
                        tb.selectAll();
                    }

                    public void onLostFocus(Widget arg1) {
View Full Code Here

            } catch ( Exception e ) {
                selectedDate = null;
            }
        }

        textWidget.addFocusListener( new FocusListener() {
            public void onFocus(Widget arg0) {
            }

            public void onLostFocus(Widget arg0) {
                TextBox box = (TextBox) arg0;
View Full Code Here

        if ((this.masks & BoundTable.ROW_HANDLE_MASK) > 0) {
            handle = new Button((this.getActive() && (rowHandles.size() < 9))
                    ? Integer.toString(this.rowHandles.size() + 1) : " ");
            handle.setStyleName("rowHandle");
            handle.addFocusListener(new FocusListener() {
                    public void onFocus(Widget sender) {
                        if (shiftDown) {
                            return;
                        }
View Full Code Here

        clickListeners.put(widget, l);
    }

    private void addSelectedFocusListener(final HasFocus widget,
        final int objectNumber, final int col) {
        FocusListener l = new FocusListener() {
                public void onLostFocus(Widget sender) {
                }

                public void onFocus(Widget sender) {
                    setActive(true);
View Full Code Here

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

                tb.addFocusListener( new FocusListener() {
                    public void onFocus(Widget arg1) {
                        tb.selectAll();
                    }

                    public void onLostFocus(Widget arg1) {
View Full Code Here

    panel.add(html);
    TextArea formText = new TextArea();
    formText.setCharacterWidth(60);
    formText.setVisibleLines(20);
    formText.setText(form.toString());
    formText.addFocusListener(new FocusListener() {
        public void onFocus(Widget sender) {
          try {
            ((TextArea)sender).selectAll();
          } catch (Exception e) {
                //debug("Problem: :" + e.getMessage());
View Full Code Here

      horizontalPanel.add(currencySymbol);
      amountBox.setTextAlignment(TextBoxBase.ALIGN_RIGHT);
    }
    amountBox.setText(formatter.format(0));

    amountBox.addFocusListener(new FocusListener() {
      public void onFocus(Widget sender) {
        if (!valueInitiated) {
          amountBox.setText("");
          valueInitiated = true;
        }
View Full Code Here

        if ((this.masks & BoundTable.ROW_HANDLE_MASK) > 0) {
            handle = new Button((this.getActive() && (rowHandles.size() < 9))
                    ? Integer.toString(this.rowHandles.size() + 1) : " ");
            handle.setStyleName("rowHandle");
            handle.addFocusListener(new FocusListener() {

                public void onFocus(Widget sender) {
                    if (shiftDown) {
                        return;
                    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.FocusListener

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.