Package java.awt.event

Examples of java.awt.event.TextListener


     * Test method for 'java.awt.TextComponent.addTextListener(TextListener)'
     */
    public void testAddRemoveTextListener() {
        textComp.addTextListener(listener);
        assertSame(listener, textComp.textListener);
        TextListener newListener = new MyTextListener();
        textComp.addTextListener(newListener);
        assertTrue("if there are several listeners multicaster is used",
                   textComp.textListener instanceof AWTEventMulticaster);
        AWTEventMulticaster aem = (AWTEventMulticaster) textComp.textListener;
        assertSame(listener, aem.a);
View Full Code Here


     * Test method for 'java.awt.TextComponent.addTextListener(TextListener)'
     */
    public void testAddRemoveTextListener() {
        textComp.addTextListener(listener);
        assertSame(listener, textComp.textListener);
        TextListener newListener = new MyTextListener();
        textComp.addTextListener(newListener);
        assertTrue("if there are several listeners multicaster is used",
                   textComp.textListener instanceof AWTEventMulticaster);
        AWTEventMulticaster aem = (AWTEventMulticaster) textComp.textListener;
        assertSame(listener, aem.a);
View Full Code Here

     * Test method for 'java.awt.TextComponent.addTextListener(TextListener)'
     */
    public void testAddRemoveTextListener() {
        textComp.addTextListener(listener);
        assertSame(listener, textComp.textListener);
        TextListener newListener = new MyTextListener();
        textComp.addTextListener(newListener);
        assertTrue("if there are several listeners multicaster is used",
                   textComp.textListener instanceof AWTEventMulticaster);
        AWTEventMulticaster aem = (AWTEventMulticaster) textComp.textListener;
        assertSame(listener, aem.a);
View Full Code Here

          runSuite();
        }
      }
    );
    fSuiteField.addTextListener(
      new TextListener() {
        public void textValueChanged(TextEvent e) {
          fRun.setEnabled(fSuiteField.getText().length() > 0);
          fStatusLine.setText("");
        }
      }
View Full Code Here

TOP

Related Classes of java.awt.event.TextListener

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.