Examples of FocusHandler


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

      public void onBlur(BlurEvent event) {
        MGWT.fixIOSScrollIssueBlur();
      }
    });

    box.addFocusHandler(new FocusHandler() {

      @Override
      public void onFocus(FocusEvent event) {
        MGWT.fixIOSScrollIssueFocus();
      }
View Full Code Here

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

                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

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

   public TextEditingTargetFindReplace(Container container, boolean showReplace)                                 
   {
      container_ = container;
      showReplace_ = showReplace;
     
      container_.getEditor().addEditorFocusHandler(new FocusHandler() {
         @Override
         public void onFocus(FocusEvent event)
         {
            if (findReplace_ != null)
               findReplace_.notifyEditorFocused();
View Full Code Here

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

  /**
   * Display "Search..." if the user has not started typing yet.
   */
  private void setupFocusAndBlur() {
    setText(constants.globalSearch());
    getTextBox().addFocusHandler(new FocusHandler() {
      @Override
      public void onFocus(FocusEvent event) {
        if (getText().equals(constants.globalSearch())) {
          setText("");
        }
View Full Code Here

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

    super(index, label, defaultValue);
    this.width = DEFAULT_WIDTH;
  }

  private TextBox addEvents(final TextBox textbox) {
    textbox.addFocusHandler(new FocusHandler() {
      @Override
      public void onFocus(FocusEvent event) {
        try {
          // user clicked into the field. convert the read format "EUR 1.00" into the write format "1.00"
          textbox.setText(formatWrite().format(formatRead().parse(textbox.getText())));
View Full Code Here

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

public class PriceTextBox extends TextBox {
    private double price;
    private List<HandlerRegistration> handlerRegistrations = new ArrayList<HandlerRegistration>();

    public PriceTextBox() {
        handlerRegistrations.add(addFocusHandler(new FocusHandler() {
            @Override
            public void onFocus(FocusEvent event) {
                setText(EveNumberFormat.DECIMAL_FORMAT.format(price));
            }
        }));
View Full Code Here

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

  private void initSourcePanel() {
    for (Example eg : Example.values()) {
      sourceExamples.add(eg.url);
    }
    playgroundUI.addressField.getTextBox().addFocusHandler(new FocusHandler() {
      public void onFocus(FocusEvent event) {
        playgroundUI.addressField.showSuggestionList();
      }
    });
    playgroundUI.addressField.setText("https://");
View Full Code Here

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

  }

  private void initPolicyPanel() {
    policyExamples = new MultiWordSuggestOracle();
    playgroundUI.policyAddressField = new SuggestBox(policyExamples);
    playgroundUI.policyAddressField.getTextBox().addFocusHandler(new FocusHandler() {
      public void onFocus(FocusEvent event) {
        playgroundUI.policyAddressField.showSuggestionList();
      }
    });
    playgroundUI.policyAddressField.setText("http://");
View Full Code Here

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

   
    HTML html = new HTML(content, false);
    p.setWidget(html);
   
   
    widget.addFocusHandler(new FocusHandler() {

      public void onFocus(FocusEvent event) {
        p.setPopupPositionAndShow(new PositionCallback() {

          public void setPosition(int offsetWidth, int offsetHeight) {
View Full Code Here

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

    // Setting Hints

    if (hintText == null) { // first time (was not already set)
      hintText = text;

      hintFocusHandler = addFocusHandler(new FocusHandler() {
          @Override
          public void onFocus(FocusEvent event) {
            focusHint();
            prevText = getText();
            isFocused = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.