home *** CD-ROM | disk | FTP | other *** search
- package com.sfs.awt.treeview;
-
- import java.util.EventObject;
-
- public class TreeViewEventObject extends EventObject {
- public static final int TREEVIEW_FIRST = 0;
- public static final int FOLDER_CLOSED = 0;
- public static final int FOLDER_OPENED = 1;
- public static final int DOCUMENT_CLOSED = 2;
- public static final int DOCUMENT_OPENED = 3;
- public static final int SELECTION_ADD = 4;
- public static final int SELECTION_REMOVE = 5;
- public static final int TREEVIEW_LAST = 5;
- Item item;
- int Action = -1;
- int clickCount;
-
- public TreeViewEventObject(int var1, Item var2, int var3, Object var4) {
- super(var4);
- this.item = var2;
- this.Action = var1;
- this.clickCount = var3;
- }
-
- public Item getItem() {
- return this.item;
- }
-
- public String toString() {
- switch (this.Action) {
- case 0:
- return "Folder " + this.item.getName() + " was closed.";
- case 1:
- return "Folder " + this.item.getName() + " was opened.";
- case 2:
- return "Document " + this.item.getName() + " was closed.";
- case 3:
- return "Document " + this.item.getName() + " was opened.";
- case 4:
- return "Item " + this.item.getName() + " was added to Selection";
- case 5:
- return "Item " + this.item.getName() + " was removed from Selection";
- default:
- return "Unknown Action on TreeView occured.";
- }
- }
-
- public int getClickCount() {
- return this.clickCount;
- }
-
- public int getAction() {
- return this.Action;
- }
- }
-