01: /* ===========================================================================
02: * $RCSfile: TreeEntry.java,v $
03: * ===========================================================================
04: *
05: * RetroGuard -- an obfuscation package for Java classfiles.
06: *
07: * Copyright (c) 1998-2006 Mark Welsh (markw@retrologic.com)
08: *
09: * This program can be redistributed and/or modified under the terms of the
10: * Version 2 of the GNU General Public License as published by the Free
11: * Software Foundation.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: */
19:
20: package COM.rl.util;
21:
22: import java.io.*;
23: import java.awt.*;
24: import java.awt.event.*;
25: import java.util.*;
26:
27: /**
28: * An entry in the tree control list.
29: *
30: * @author Mark Welsh
31: */
32: public interface TreeEntry {
33: // Interface Methods -----------------------------------------------------
34: /** Can the element be opened. */
35: public boolean canOpen();
36:
37: /** Is the element open in the tree? */
38: public boolean isOpen();
39:
40: /** Set if the element is open in the tree. */
41: public void setOpen(boolean isOpen);
42:
43: /** String representation of the element for the List. */
44: public String toString();
45:
46: /** Number of children. */
47: public int childCount();
48:
49: /** Return the children TreeEntry's. */
50: public Enumeration elements();
51: }
|