Package com.sun.star.awt

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


     * 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

            XControl xTFControl = m_xDlgContainer.getControl(sName);
           
            // add a textlistener that is notified on each change of the controlvalue...
            xTextComponent = (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, xTFControl);
            XWindow xTFWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xTFControl);
            xTFWindow.addFocusListener(_xFocusListener);
            xTextComponent.addTextListener(_xTextListener);
            xTFWindow.addKeyListener(this);
        } catch (com.sun.star.uno.Exception ex) {
            /* perform individual exception handling here.
             * Possible exception types are:
View Full Code Here

     */
    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

            XControl xTFControl = m_xDlgContainer.getControl(sName);
           
            // add a textlistener that is notified on each change of the controlvalue...
            xTextComponent = (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, xTFControl);
            XWindow xTFWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xTFControl);
            xTFWindow.addFocusListener(_xFocusListener);
            xTextComponent.addTextListener(_xTextListener);
            xTFWindow.addKeyListener(this);
        } catch (com.sun.star.uno.Exception ex) {
            /* perform individual exception handling here.
             * Possible exception types are:
View Full Code Here

     */
    static void addFocusListener(Object control, XFocusListener listener)
    {
        XWindow xlastControl = UnoRuntime.queryInterface(XWindow.class,
                control);
        xlastControl.addFocusListener(listener);
    }

    /**
     * Implementation of the parent class...
     */
 
View Full Code Here

            XControl xTFControl = m_xDlgContainer.getControl(sName);
           
            // add a textlistener that is notified on each change of the controlvalue...
            xTextComponent = (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, xTFControl);
            XWindow xTFWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xTFControl);
            xTFWindow.addFocusListener(_xFocusListener);
            xTextComponent.addTextListener(_xTextListener);
            xTFWindow.addKeyListener(this);
        } catch (com.sun.star.uno.Exception ex) {
            /* perform individual exception handling here.
             * Possible exception types are:
View Full Code Here

     */
    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

     * 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

            XControl xTFControl = m_xDlgContainer.getControl(sName);
           
            // add a textlistener that is notified on each change of the controlvalue...
            xTextComponent = (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, xTFControl);
            XWindow xTFWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xTFControl);
            xTFWindow.addFocusListener(_xFocusListener);
            xTextComponent.addTextListener(_xTextListener);
            xTFWindow.addKeyListener(this);
        } catch (com.sun.star.uno.Exception ex) {
            /* perform individual exception handling here.
             * Possible exception types are:
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.