KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > log4j > lf5 > viewer > categoryexplorer > CategoryNodeEditorRenderer


1 /*
2  * Copyright 1999-2005 The Apache Software Foundation.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */

16 package org.apache.log4j.lf5.viewer.categoryexplorer;
17
18 import javax.swing.*;
19 import java.awt.*;
20
21 /**
22  * CategoryNodeEditorRenderer
23  *
24  * @author Michael J. Sikorsky
25  * @author Robert Shaw
26  */

27
28 // Contributed by ThoughtWorks Inc.
29

30 public class CategoryNodeEditorRenderer extends CategoryNodeRenderer {
31   //--------------------------------------------------------------------------
32
// Constants:
33
//--------------------------------------------------------------------------
34

35   //--------------------------------------------------------------------------
36
// Protected Variables:
37
//--------------------------------------------------------------------------
38

39   //--------------------------------------------------------------------------
40
// Private Variables:
41
//--------------------------------------------------------------------------
42

43   //--------------------------------------------------------------------------
44
// Constructors:
45
//--------------------------------------------------------------------------
46

47   //--------------------------------------------------------------------------
48
// Public Methods:
49
//--------------------------------------------------------------------------
50

51   public Component getTreeCellRendererComponent(
52       JTree tree, Object JavaDoc value,
53       boolean selected, boolean expanded,
54       boolean leaf, int row,
55       boolean hasFocus) {
56     Component c = super.getTreeCellRendererComponent(tree,
57         value, selected, expanded,
58         leaf, row, hasFocus);
59
60     return c;
61   }
62
63   public JCheckBox getCheckBox() {
64     return _checkBox;
65   }
66
67   //--------------------------------------------------------------------------
68
// Protected Methods:
69
//--------------------------------------------------------------------------
70

71   //--------------------------------------------------------------------------
72
// Private Methods:
73
//--------------------------------------------------------------------------
74

75   //--------------------------------------------------------------------------
76
// Nested Top-Level Classes or Interfaces:
77
//--------------------------------------------------------------------------
78

79 }
80
Popular Tags