jtulach@0: /* jtulach@0: * Sun Public License Notice jtulach@0: * jtulach@0: * The contents of this file are subject to the Sun Public License jtulach@0: * Version 1.0 (the "License"). You may not use this file except in jtulach@0: * compliance with the License. A copy of the License is available at jtulach@0: * http://www.sun.com/ jtulach@0: * jtulach@0: * The Original Code is NetBeans. The Initial Developer of the Original jtulach@0: * Code is Sun Microsystems, Inc. Portions Copyright 1999-2006 Sun jtulach@0: * Microsystems, Inc. All Rights Reserved. jtulach@0: */ jtulach@0: jtulach@0: package implpkg; jtulach@0: jtulach@0: import apipkg.Item; jtulach@0: import javax.swing.event.ChangeListener; jtulach@0: jtulach@0: /** jtulach@0: * jtulach@0: * @author Jaroslav Tulach jtulach@0: */ jtulach@3: // BEGIN: design.less.friend.Accessor jtulach@0: public abstract class Accessor { jtulach@0: public static Accessor DEFAULT; jtulach@0: static { jtulach@0: try { jtulach@0: Class.forName(Item.class.getName(), true, Item.class.getClassLoader()); jtulach@0: } catch (Exception ex) { jtulach@0: ex.printStackTrace(); jtulach@0: } jtulach@0: } jtulach@0: jtulach@0: public Accessor() { jtulach@0: } jtulach@0: jtulach@0: protected abstract Item newItem(); jtulach@0: protected abstract void addChangeListener(Item item, ChangeListener l); jtulach@0: } jtulach@3: // END: design.less.friend.Accessor