001/* ---------------------------------------------------------------------------- 002 The Kiwi Toolkit - A Java Class Library 003 Copyright (C) 1998-2004 Mark A. Lindner 004 005 This library is free software; you can redistribute it and/or 006 modify it under the terms of the GNU General Public License as 007 published by the Free Software Foundation; either version 2 of the 008 License, or (at your option) any later version. 009 010 This library is distributed in the hope that it will be useful, 011 but WITHOUT ANY WARRANTY; without even the implied warranty of 012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 General Public License for more details. 014 015 You should have received a copy of the GNU General Public License 016 along with this library; if not, write to the Free Software 017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 018 02111-1307, USA. 019 020 The author may be contacted at: mark_a_lindner@yahoo.com 021 ---------------------------------------------------------------------------- 022 $Log: KTreeModelListener.java,v $ 023 Revision 1.1 2004/05/13 22:25:42 markl 024 new classes 025 026 ---------------------------------------------------------------------------- 027*/ 028 029package kiwi.event; 030 031import java.util.*; 032 033/** Event listener interface for <code>KTreeModelEvent</code>s. 034 * 035 * @author Mark Lindner 036 * @since Kiwi 2.0 037 */ 038 039public interface KTreeModelListener extends EventListener 040 { 041 /** Invoked after a new child is added to an existing node in the 042 * hierarchy. 043 */ 044 045 public void nodesAdded(KTreeModelEvent evt); 046 047 /** Invoked after a child is removed from an existing node in the 048 * hierarchy. 049 */ 050 051 public void nodesRemoved(KTreeModelEvent evt); 052 053 /** Invoked after a node in the tree changes in some way. */ 054 055 public void nodesChanged(KTreeModelEvent evt); 056 057 /** Invoked after the subtree rooted at an existing node changes its 058 * structure in a way that can't be described efficiently using any of the 059 * other messages in this interface. 060 */ 061 062 public void structureChanged(KTreeModelEvent evt); 063 064 /** Invoked after the entire tree structure has changed (typically after 065 * the root node has changed). 066 */ 067 068 public void dataChanged(KTreeModelEvent evt); 069 } 070 071/* end of source file */ 072