changedUpdate exception
[fedora-idea.git] / platform / platform-impl / src / com / intellij / ui / CheckboxTree.java
blobd2453cf2da1435922078d4979c6ca29f7557c2e0
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.ui;
18 import java.awt.event.KeyEvent;
20 /**
21 * User: lex
22 * Date: Sep 18, 2003
23 * Time: 5:40:20 PM
25 public class CheckboxTree extends CheckboxTreeBase {
27 public static abstract class CheckboxTreeCellRenderer extends CheckboxTreeCellRendererBase { // This is 6.0 compatibility layer
28 protected CheckboxTreeCellRenderer() {
31 protected CheckboxTreeCellRenderer(final boolean opaque) {
32 super(opaque);
35 protected CheckboxTreeCellRenderer(boolean opaque, boolean usePartialStatusForParentNodes) {
36 super(opaque, usePartialStatusForParentNodes);
40 public CheckboxTree(final CheckboxTreeCellRenderer cellRenderer, CheckedTreeNode root) {
41 super(cellRenderer, root);
43 TreeToolTipHandler.install(this);
44 installSpeedSearch();
46 public CheckboxTree(final CheckboxTreeCellRenderer cellRenderer, CheckedTreeNode root, final CheckPolicy checkPolicy) {
47 super(cellRenderer, root, checkPolicy);
49 TreeToolTipHandler.install(this);
50 installSpeedSearch();
53 protected void installSpeedSearch() {
54 new TreeSpeedSearch(this);
58 protected boolean isToggleEvent(KeyEvent e) {
59 return super.isToggleEvent(e) && !SpeedSearchBase.hasActiveSpeedSearch(this);