Examples of requestFocus()


Examples of ae.java.awt.peer.ComponentPeer.requestFocus()

            return false;
        }

        // Focus this Component
        long time = EventQueue.getMostRecentEventTime();
        boolean success = peer.requestFocus
            (this, temporary, focusedWindowChangeAllowed, time, cause);
        if (!success) {
            KeyboardFocusManager.getCurrentKeyboardFocusManager
                (appContext).dequeueKeyEvents(time, this);
            if (focusLog.isLoggable(Level.FINEST)) {
View Full Code Here

Examples of android.widget.ListView.requestFocus()

    animation.setAnimationListener(new AnimationListener() {
      @Override
      public void onAnimationEnd(Animation animation) {
        if (AdapterView.INVALID_POSITION != editingPosition) {
          ListView listView = getListView();
          listView.requestFocus();
         
          int first = listView.getFirstVisiblePosition();
          int last = listView.getLastVisiblePosition();
          if (editingPosition < first || editingPosition > last) {
            listView.setSelection(editingPosition);
View Full Code Here

Examples of br.com.gmartins.simbler.components.autocomplete.CommandList.requestFocus()

            posx = getCodeTextArea().getCaret().getMagicCaretPosition().x;
            posy = getCodeTextArea().getCaret().getMagicCaretPosition().y;
        }
        popup.show(this, posx + 5, posy + 93);
        lst.setSelectedIndex(0);
        lst.requestFocus();
    }

    public CodeTextArea getCodeTextArea() {
        return this.codeTextArea;
    }
View Full Code Here

Examples of com.dci.intellij.dbn.editor.data.ui.table.DatasetEditorTable.requestFocus()

                int rowIndex = table.getSelectedRow();
                if (rowIndex == -1rowIndex = 0;
                if (tableColumnIndex == -1) tableColumnIndex = 0;
                table.selectCell(rowIndex, tableColumnIndex);
                if (requestFocus) {
                    table.requestFocus();
                }
            }
        }
    }
View Full Code Here

Examples of com.eteks.sweethome3d.swing.PlanComponent.requestFocus()

   
    // 2. Create walls with keyboard
    frame.planController.setMode(PlanController.Mode.WALL_CREATION);
    assertEquals("Current mode isn't " + PlanController.Mode.WALL_CREATION,
        PlanController.Mode.WALL_CREATION, frame.planController.getMode());
    planComponent.requestFocus();
    JComponentTester tester = new JComponentTester();
    tester.waitForIdle();
    assertTrue("Plan component doesn't have focus", planComponent.hasFocus());
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    // Enter the coordinates of the start point
View Full Code Here

Examples of com.google.minijoe.html.uibase.Widget.requestFocus()

    Widget w = (Widget) labels.get(label);
    if (w == null) {
      return;
    }
    if (w.isFocusable()) {
      w.requestFocus();
    }
    w.scrollIntoView();
  }
 
  public Widget getWidgetForLabel(String label) {
View Full Code Here

Examples of com.intellij.openapi.wm.IdeFocusManager.requestFocus()

    public void requestFocusOnEditor() {// Code from requestFocus of EditorImpl
        final IdeFocusManager focusManager = IdeFocusManager.getInstance(this.project);
        JComponent editorContentComponent = editor.getContentComponent();
        if (focusManager.getFocusOwner() != editorContentComponent) {
            focusManager.requestFocus(editorContentComponent, true);
        }
    }

    private Editor createEditor() {
        EditorFactory editorFactory = EditorFactory.getInstance();
View Full Code Here

Examples of com.mucommander.ui.main.table.FileTable.requestFocus()

    public void performAction() {
        FileTable activeTable = mainFrame.getActiveTable();
        FileTable leftTable = mainFrame.getLeftPanel().getFileTable();
        FileTable rightTable = mainFrame.getRightPanel().getFileTable();
        if(activeTable == leftTable)
            rightTable.requestFocus();
        else if(activeTable == rightTable)
            leftTable.requestFocus();
    }

  @Override
View Full Code Here

Examples of com.mucommander.ui.text.FilePathField.requestFocus()

            commentArea.setEnabled(Archiver.formatSupportsComment(formats[formatsComboBox.getSelectedIndex()]));
            lastFormatIndex = newFormatIndex;
        }

        // Transfer focus back to the text field
        pathField.requestFocus();
    }
}
View Full Code Here

Examples of com.projity.pm.graphic.ChangeAwareTextField.requestFocus()

                bounds.setFrame(cell.getX()+bounds.getX(),cell.getY()+bounds.getY(),bounds.getWidth(),bounds.getHeight());
                  if(bounds.contains(me.getPoint())){
                       text.selectAllOnNextCaretUpdate(); //to avoid diselection when the cell is clicked
                  }
                 else{ //because if it's outside there's no caret update
                   text.requestFocus();
                   text.selectAll();
                 }
              }else
                text.selectAllOnNextCaretUpdate(); //to avoid diselection when the cell is clicked
            }
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.