Examples of addFocusListener()


Examples of com.alee.laf.text.WebTextField.addFocusListener()

                // Making label invisible for mouse events
                return false;
            }
        };
        overlay.setForeground ( Color.GRAY );
        textField.addFocusListener ( new ConditionalVisibilityListener ( overlay, false, null )
        {
            @Override
            public boolean isVisible ()
            {
                return super.isVisible () && textField.getText ().equals ( "" );
View Full Code Here

Examples of com.eviware.soapui.support.xml.JXEditTextArea.addFocusListener()

    protected XmlSourceEditorView<?> buildSourceEditor()
    {
      XmlSourceEditorView<?> editor = getSourceEditor();
      JXEditTextArea inputArea = editor.getInputArea();

      inputArea.addFocusListener( new InputAreaFocusListener() );

      inputArea.getInputHandler().addKeyBinding( "AC+TAB", moveFocusAction );
      inputArea.getInputHandler().addKeyBinding( "F5", recreateButton.getAction() );
      inputArea.getInputHandler().addKeyBinding( "C+F4", closePanelAction );
View Full Code Here

Examples of com.google.gwt.user.client.ui.CheckBox.addFocusListener()

    }));
    b.addKeyboardListener(handler);
    HandlesAllKeyEvents.addHandlers(b, handler);
    b.addFocusHandler(handler);
    b.addBlurHandler(handler);
    b.addFocusListener(handler);
    b.addValueChangeHandler(handler);

    // Rich text box:
    final RadioButton radio = new RadioButton("A", "With events");
    p.add(radio);
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox.addFocusListener()

      }
    };

    b.addKeyUpHandler(handler);
    b.addKeyPressHandler(handler);
    b.addFocusListener(handler);
    b.addSelectionHandler(handler);
    b.addValueChangeHandler(handler);
    return b;
  }
}
View Full Code Here

Examples of com.google.gwt.user.client.ui.TextArea.addFocusListener()

         
//          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.TextBox.addFocusListener()

                        final TextBox tb = (TextBox)sender;
                        tb.setFocus(false);
                    }
                }
            });
            tb.addFocusListener(new FocusListenerAdapter() {
                public void onFocus(final Widget sender) {
                    tb.setSelectionRange(0, tb.getText().length());
                }
            });
            tb.setText(person.getName());
View Full Code Here

Examples of com.google.gwt.widgetideas.client.FastTree.addFocusListener()

    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.intellij.openapi.editor.ex.EditorEx.addFocusListener()

                if (!Comparing.equal(file, myVirtualFile) || myConsoleEditor == null) return;
                Editor selectedTextEditor = source.getSelectedTextEditor();
                for (FileEditor fileEditor : source.getAllEditors(file)) {
                    if (!(fileEditor instanceof TextEditor)) continue;
                    final EditorEx editor = (EditorEx) ((TextEditor) fileEditor).getEditor();
                    editor.addFocusListener(myFocusListener);
                    if (selectedTextEditor == editor) { // already focused
                        myCurrentEditor = editor;
                    }
                    EmptyAction.registerActionShortcuts(editor.getComponent(), myConsoleEditor.getComponent());
                    editor.getCaretModel().addCaretListener(new CaretListener() {
View Full Code Here

Examples of com.jidesoft.grid.PropertyTable.addFocusListener()

    // Build the model and create the table...

    PropertyTableModel<JidePropertyImpl> propertyTableModel = new PropertyTableModel<JidePropertyImpl>(model);

    PropertyTable propertyTable = new PropertyTable(propertyTableModel);
    propertyTable.addFocusListener(new FocusListener() {
      public void focusLost(FocusEvent e) {
        if (!e.isTemporary()) {
          JTable t = (JTable) e.getSource();
          CellEditor ce = t.getCellEditor();
          if (ce != null) {
View Full Code Here

Examples of com.lightdev.app.shtm.SHTMLEditorPane.addFocusListener()

      inputMap.remove(KeyStroke.getKeyStroke("ctrl pressed T"));
      inputMap.remove(KeyStroke.getKeyStroke("ctrl shift pressed T"));
      inputMap.remove(KeyStroke.getKeyStroke("ctrl pressed SPACE"));
    }

    editorPane.addFocusListener(new FocusListener() {
      private SpellCheckerController spellCheckerController = null;
      private boolean enabled = false;
      public void focusLost(final FocusEvent e) {
        if(! e.isTemporary()){
          spellCheckerController.enableAutoSpell(editorPane, false);
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.