Examples of transferFocus()


Examples of com.alee.laf.tabbedpane.WebTabbedPane.transferFocus()

                if ( !SwingUtils.hasFocusOwner ( pane ) )
                {
                    final Component c = pane.getSelectedComponent ();
                    if ( c.isFocusable () || c instanceof Container && SwingUtils.hasFocusableComponent ( ( Container ) c ) )
                    {
                        pane.transferFocus ();
                    }
                    else
                    {
                        pane.requestFocusInWindow ();
                    }
View Full Code Here

Examples of java.awt.Component.transferFocus()

           
            if (c.isFocusable()) {
              c.requestFocusInWindow();
            }
            else {
              c.transferFocus();
            }
          }
        });
      }
        }
View Full Code Here

Examples of java.awt.Component.transferFocus()

           
            if (c.isFocusable()) {
              c.requestFocusInWindow();
            }
            else {
              c.transferFocus();
            }
          }
        });
      }
        }
View Full Code Here

Examples of java.awt.Component.transferFocus()

           
            if (c.isFocusable()) {
              c.requestFocusInWindow();
            }
            else {
              c.transferFocus();
            }
          }
        });
      }
        }
View Full Code Here

Examples of java.awt.Component.transferFocus()

    Component c = getNativeComponentProxy();
    if(c == null) {
      c = getNativeComponent();
    }
    if(isForward) {
      c.transferFocus();
    } else {
      c.transferFocusBackward();
    }
  }
View Full Code Here

Examples of java.awt.Component.transferFocus()

    Component c = getNativeComponentProxy();
    if(c == null) {
      c = getNativeComponent();
    }
    if(isForward) {
      c.transferFocus();
    } else {
      c.transferFocusBackward();
    }
  }
View Full Code Here

Examples of javax.swing.text.JTextComponent.transferFocus()

                textArea.getInputMap().put(KeyStroke.getKeyStroke("TAB"), "cycle-forwards");
                KeyAdapter newKeyAdapter = new KeyAdapter() {
                    public void keyPressed(KeyEvent event) {
                        if (event.getKeyCode() == KeyEvent.VK_TAB && event.getModifiersEx() == 0) {
                            ForteKeyboardFocusManager.setTabTraversal(true);
                            textArea.transferFocus();
                        }
                    }
                };
                textArea.addKeyListener(newKeyAdapter);
                textArea.putClientProperty(KEY_ADAPTER_PROPERTY, newKeyAdapter);
View Full Code Here

Examples of javax.swing.text.JTextComponent.transferFocus()

                textArea.getInputMap().put(KeyStroke.getKeyStroke("TAB"), "cycle-forwards");
                KeyAdapter newKeyAdapter = new KeyAdapter() {
                    public void keyPressed(KeyEvent event) {
                        if (event.getKeyCode() == KeyEvent.VK_TAB && event.getModifiersEx() == 0) {
                            ForteKeyboardFocusManager.setTabTraversal(true);
                            textArea.transferFocus();
                        }
                    }
                };
                textArea.addKeyListener(newKeyAdapter);
                textArea.putClientProperty(KEY_ADAPTER_PROPERTY, newKeyAdapter);
View Full Code Here

Examples of javax.swing.text.JTextComponent.transferFocus()

                textArea.getInputMap().put(KeyStroke.getKeyStroke("TAB"), "cycle-forwards");
                KeyAdapter newKeyAdapter = new KeyAdapter() {
                    public void keyPressed(KeyEvent event) {
                        if (event.getKeyCode() == KeyEvent.VK_TAB && event.getModifiersEx() == 0) {
                            ForteKeyboardFocusManager.setTabTraversal(true);
                            textArea.transferFocus();
                        }
                    }
                };
                textArea.addKeyListener(newKeyAdapter);
                textArea.putClientProperty(KEY_ADAPTER_PROPERTY, newKeyAdapter);
View Full Code Here

Examples of org.apache.pivot.wtk.Component.transferFocus()

            && getComponent().isFocused()) {
            Direction direction = (Keyboard.isPressed(Keyboard.Modifier.SHIFT)) ?
                Direction.BACKWARD : Direction.FORWARD;

            Component previousFocusedComponent = Component.getFocusedComponent();
            previousFocusedComponent.transferFocus(direction);

            Component focusedComponent = Component.getFocusedComponent();

            if (previousFocusedComponent != focusedComponent) {
                // Ensure that the focused component is visible if it is in a viewport
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.