Examples of FocusListener


Examples of charva.awt.event.FocusListener

    public void processFocusEvent(FocusEvent fe_) {
  if (_focusListeners != null) {
      for (Enumeration<FocusListener> e = _focusListeners.elements();
        e.hasMoreElements(); ) {

    FocusListener fl = (FocusListener) e.nextElement();
    if (fe_.getID() == AWTEvent.FOCUS_GAINED)
        fl.focusGained(fe_);
    else
        fl.focusLost(fe_);
      }
  }
    }
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.utils.FocusListener

        if (!cancelHide) hide();
        cancelHide = false;
      }
    });

    addListener(new FocusListener() {
      public void keyboardFocusChanged (FocusEvent event, Actor actor, boolean focused) {
        if (!focused) focusChanged(event);
      }

      public void scrollFocusChanged (FocusEvent event, Actor actor, boolean focused) {
View Full Code Here

Examples of com.dragome.model.listeners.FocusListener

            String value= (String) ScriptHelper.eval("textFieldElement.node.value", this);
            visualTextField.setValue(value);
          }
        });

        visualTextField.addListener(FocusListener.class, new FocusListener()
        {
          public void focusGained(VisualComponent component)
          {
            ScriptHelper.put("textFieldElement", textFieldElement, this);
            ScriptHelper.evalNoResult("textFieldElement.node.focus()", this);
View Full Code Here

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

        hideDatePicker();
      }

    });

    box.addFocusListener(new FocusListener() {
      public void onFocus(Widget sender) {
        showDatePicker();
      }

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

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

  public CurrencyWidgetWithPreview(String currencyCode) {
    super(currencyCode);
    StyleInjector.injectStylesheet(Resources.INSTANCE.css().getText(),
        Resources.INSTANCE);
    previewPanel.setWidget(previewField);
    amountBox.addFocusListener(new FocusListener() {
      public void onFocus(Widget sender) {
        if (!valueInitiated) {
          amountBox.setText("");
          valueInitiated = true;
        }
View Full Code Here

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

    root2.addItem(new CheckBox("child item3"));

    // nest the trees
    root.addItem(root2);
    t.addItem(root);
    t.addFocusListener(new FocusListener() {

      public void onFocus(Widget sender) {
        report("on focus tree");
      }
View Full Code Here

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

      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

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

     
      focusPanel.setStylePrimaryName("TermTable-termField");
//      focusPanel.setSize("100%", "100%"); <- unnecessary
     
     
      focusPanel.addFocusListener(new FocusListener() {
        public void onFocus(Widget sender) {
          if ( editMode ) {
            focusPanel.addStyleDependentName("focused");
          }
        }
View Full Code Here

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

         
//          ta.setHeight(hh+ "px");
          ta.setSize(ww+ "px", hh+ "px");
//          ta.setCharacterWidth(text.length());
         
          ta.addFocusListener(new FocusListener() {
            public void onFocus(Widget sender) {
            }
            public void onLostFocus(Widget sender) {
              RootPanel.get().remove(ta);
              focusPanel.setFocus(true);
View Full Code Here

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

      focusPanel = new FocusPanel(contents);
      focusPanel.setStylePrimaryName("TermTable-termField");
      focusPanel.setSize("100%", "100%");
     
     
      focusPanel.addFocusListener(new FocusListener() {
        public void onFocus(Widget sender) {
          if ( readOnly ) {
            return;
          }
         
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.