Examples of WebCheckBoxTree


Examples of com.alee.extended.tree.WebCheckBoxTree

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

Examples of com.alee.extended.tree.WebCheckBoxTree

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