Package com.alee.extended.tree

Examples of com.alee.extended.tree.WebCheckBoxTree$Handler


     */
    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        // Checkbox tree
        final WebCheckBoxTree checkBoxTree = new WebCheckBoxTree ();
        checkBoxTree.setVisibleRowCount ( 8 );
        return new GroupPanel ( new WebScrollPane ( checkBoxTree ) );
    }
View Full Code Here


     */
    protected boolean isLocationInCheckBoxControl ( final TreePath path, final int x, final int y )
    {
        if ( tree instanceof WebCheckBoxTree )
        {
            final WebCheckBoxTree checkBoxTree = ( WebCheckBoxTree ) tree;
            if ( checkBoxTree.isCheckingByUserEnabled () )
            {
                final DefaultMutableTreeNode node = ( DefaultMutableTreeNode ) path.getLastPathComponent ();
                if ( checkBoxTree.isCheckBoxVisible ( node ) && checkBoxTree.isCheckBoxEnabled ( node ) )
                {
                    final Rectangle checkBoxBounds = checkBoxTree.getCheckBoxBounds ( path );
                    return checkBoxBounds != null && checkBoxBounds.contains ( x, y );
                }
                else
                {
                    return false;
View Full Code Here

TOP

Related Classes of com.alee.extended.tree.WebCheckBoxTree$Handler

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.