Examples of addFocusListener()


Examples of com.sun.star.awt.XWindow.addFocusListener()

     * Is used to add a focuslistener to different controls...
     */
    static void addFocusListener(Object control,XFocusListener listener) {
        XWindow xlastControl = (XWindow)UnoRuntime.queryInterface(XWindow.class,
                control );
        xlastControl.addFocusListener(listener);
    }
   
    /**
     * Implementation of the parent class...
     */
 
View Full Code Here

Examples of com.totsp.gwittir.client.ui.Button.addFocusListener()

        if ((this.masks & BoundTable.ROW_HANDLE_MASK) > 0) {
            handle = new Button((this.getActive() && (rowHandles.size() < 9))
                    ? Integer.toString(this.rowHandles.size() + 1) : " ");
            handle.setStyleName("rowHandle");
            handle.addFocusListener(new FocusListener() {

                public void onFocus(Widget sender) {
                    if (shiftDown) {
                        return;
                    }
View Full Code Here

Examples of com.vaadin.ui.TextField.addFocusListener()

        tf.setMaxLength(11);
        tf.setRequired(true);
        tf.setImmediate(true);
        addComponent(tf);

        tf.addFocusListener(new FieldEvents.FocusListener() {

            @Override
            public void focus(FocusEvent event) {
                // Resetting Max length should not remove maxlength attribute
                tf.setMaxLength(11);
View Full Code Here

Examples of java.awt.Canvas.addFocusListener()

    panel.add(canvas);
  BufferStrategy strategy;
    canvas.createBufferStrategy(2);
    strategy = canvas.getBufferStrategy();
     
  canvas.addFocusListener(new FocusListener()
      {
      public void focusGained(FocusEvent e)
        {
        sendText.requestFocus();
        }
View Full Code Here

Examples of java.awt.Component.addFocusListener()

        if (currentEditor != null) currentEditor.transferFocus();

        Component editor = row.getEditor(parent);
        if (editor instanceof JComboBox) {
          ((JComboBox) editor).addActionListener(this);
          editor.addFocusListener(this);
        } else if (editor instanceof JInputComponent) {
          JInputComponent input = (JInputComponent) editor;
          MyDialog dlog;
          Window parent = AttrTable.this.parent;
          if (parent instanceof Frame) {
View Full Code Here

Examples of java.awt.Component.addFocusListener()

                Strings.get("attributeChangeInvalidTitle"),
                JOptionPane.WARNING_MESSAGE);
          }
          editor = new JLabel(row.getValue());
        } else {
          editor.addFocusListener(this);
        }
        currentRow = row;
        currentEditor = editor;
        return editor;
      }
View Full Code Here

Examples of java.awt.Component.addFocusListener()

  }
  public Component getTableCellEditorComponent(JTable arg0, Object arg1, boolean arg2, int arg3, int arg4) {
    final Component result = myProxiedEditor.getTableCellEditorComponent(arg0, arg1,arg2, arg3, arg4);
    if (result instanceof JTextComponent) {
      ((JTextComponent)result).selectAll();
      result.addFocusListener(new FocusAdapter() {
        public void focusGained(FocusEvent arg0) {
          super.focusGained(arg0);
          ((JTextComponent)result).selectAll();
          result.removeFocusListener(this);
        }
View Full Code Here

Examples of java.awt.Component.addFocusListener()

        {
            ce.stopCellEditing();
        }
        else if(editor != null)
        {
            editor.addFocusListener(this);
        }
        this.firePropertyChange();
    }

    private class AddListener implements ActionListener
View Full Code Here

Examples of java.awt.TextComponent.addFocusListener()

     * {@inheritDoc}
     */
    protected void registerListeners(Object com)
    {
        TextComponent txtCom = (TextComponent) com;
        txtCom.addFocusListener(this);
        super.registerListeners(com);
    }

    public Object updateUI(Object com, DomNode element)
    {
View Full Code Here

Examples of javax.swing.JButton.addFocusListener()

    JButton viewButton = new JButton("View");
    // viewButton.setToolTipText( "View results of already processed data");
    viewButton.setDefaultCapable(true);
    viewButton.setRequestFocusEnabled(true);
    viewButton.requestFocus();
    viewButton.addFocusListener(tlf);

    // copy into the mediator
    prefsMed.setDocButtons(runButton, interButton, viewButton);
    // Add the run button to another panel
    JPanel lowerButtonsPanel = new JPanel();
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.