Package com.alee.managers.focus

Examples of com.alee.managers.focus.DefaultFocusTracker


        infoScroll.setPreferredWidth ( 150 );
        panel.add ( infoScroll );

        // Form #1 focus tracker
        // It tracks only focus loss/gain by form overall and doesn't inform about focus changes within the form
        focusTracker1 = new DefaultFocusTracker ( true )
        {
            @Override
            public void focusChanged ( final boolean focused )
            {
                updateInfo ( focused, info, "form1" );
            }
        };
        FocusManager.addFocusTracker ( form1, focusTracker1 );

        // Form #2 focus tracker
        // It tracks only focus loss/gain by form overall and doesn't inform about focus changes within the form
        focusTracker2 = new DefaultFocusTracker ( true )
        {
            @Override
            public void focusChanged ( final boolean focused )
            {
                updateInfo ( focused, info, "form2" );
View Full Code Here


    public void install ( final E c )
    {
        super.install ( c );

        // Installing FocusTracker to keep an eye on focused state
        focusTracker = new DefaultFocusTracker ()
        {
            @Override
            public boolean isTrackingEnabled ()
            {
                return !undecorated && paintFocus;
View Full Code Here

                firePopupClosed ();
            }
        } );

        // Focus tracking
        focusTracker = new DefaultFocusTracker ( true )
        {
            @Override
            public boolean isTrackingEnabled ()
            {
                return WebPopup.this.isShowing ();
View Full Code Here

        // Disable animation for this painter
        animated = false;

        // Installing FocusTracker to keep an eye on focused state
        focusTracker = new DefaultFocusTracker ()
        {
            @Override
            public void focusChanged ( final boolean focused )
            {
                NPScrollBarPainter.this.focused = focused;
View Full Code Here

    public void install ( final E c )
    {
        super.install ( c );

        // Installing FocusTracker to keep an eye on focused state
        focusTracker = new DefaultFocusTracker ()
        {
            @Override
            public boolean isTrackingEnabled ()
            {
                return !undecorated && paintFocus;
View Full Code Here

    public void install ( final E c )
    {
        super.install ( c );

        // Installing FocusTracker to keep an eye on focused state
        focusTracker = new DefaultFocusTracker ()
        {
            @Override
            public boolean isTrackingEnabled ()
            {
                return !undecorated && paintFocus;
View Full Code Here

                }
            }
        } );

        // Focus listener
        focusTracker = new DefaultFocusTracker ()
        {
            @Override
            public void focusChanged ( final boolean focused )
            {
                focusOwner = focused;
View Full Code Here

            };
            addMouseListener ( mouseAdapter );
            addMouseMotionListener ( mouseAdapter );

            // Panel focus tracking
            focusTracker = new DefaultFocusTracker ( true )
            {
                @Override
                public void focusChanged ( final boolean focused )
                {
                    final WebSelectablePanel wsp = WebSelectablePanel.this;
View Full Code Here

        SwingUtils.setOrientation ( this );
        setDefaultCloseOperation ( DISPOSE_ON_CLOSE );

        // Adding focus tracker for this dialog
        // It is stored into a separate field to avoid its disposal from memory
        focusTracker = new DefaultFocusTracker ( true )
        {
            @Override
            public boolean isTrackingEnabled ()
            {
                return isShowing () && closeOnFocusLoss;
View Full Code Here

        LookAndFeel.installProperty ( frame, WebLookAndFeel.OPAQUE_PROPERTY, Boolean.FALSE );
        frame.setBackground ( new Color ( 90, 90, 90, 220 ) );
        frame.setBorder ( LafUtils.createWebBorder ( 0, 0, 0, 0 ) );

        // Focus tracker for the panel content
        focusTracker = new DefaultFocusTracker ()
        {
            @Override
            public void focusChanged ( final boolean focused )
            {
                WebInternalFrameUI.this.focused = focused;
View Full Code Here

TOP

Related Classes of com.alee.managers.focus.DefaultFocusTracker

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.