Package org.springframework.richclient.text

Examples of org.springframework.richclient.text.SelectAllFocusListener


        JTextField textField = new JTextField();
        // Focustraversal keys moeten afgezet worden, anders wordt de keylistener niet getriggered.
        textField.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
                new HashSet<AWTKeyStroke>());
        textField.addKeyListener(createKeyListener());
        textField.addFocusListener(new SelectAllFocusListener(textField));
        textField.addFocusListener(createFocusListener());
        return textField;
    }
View Full Code Here


        if (getPromptKey() != null)
            PromptSupport.setPrompt(RcpSupport.getMessage(getPromptKey()), textComponent);
        new AsYouTypeTextComponentAdapter(textComponent, valueModel, convertEmptyStringToNull);
        if(selectAllOnFocus)
        {
            textComponent.addFocusListener(new SelectAllFocusListener(textComponent));
        }
        return textComponent;
    }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.text.SelectAllFocusListener

Copyright © 2018 www.massapicom. 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.