samples/friendpackage/src/implpkg/Accessor.java
changeset 0 32b39aaa68f0
child 3 b44baa125b38
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samples/friendpackage/src/implpkg/Accessor.java	Sat Jun 14 09:50:27 2008 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +/*
     1.5 + *                 Sun Public License Notice
     1.6 + * 
     1.7 + * The contents of this file are subject to the Sun Public License
     1.8 + * Version 1.0 (the "License"). You may not use this file except in
     1.9 + * compliance with the License. A copy of the License is available at
    1.10 + * http://www.sun.com/
    1.11 + * 
    1.12 + * The Original Code is NetBeans. The Initial Developer of the Original
    1.13 + * Code is Sun Microsystems, Inc. Portions Copyright 1999-2006 Sun
    1.14 + * Microsystems, Inc. All Rights Reserved.
    1.15 + */
    1.16 +
    1.17 +package implpkg;
    1.18 +
    1.19 +import apipkg.Item;
    1.20 +import javax.swing.event.ChangeListener;
    1.21 +
    1.22 +/**
    1.23 + *
    1.24 + * @author Jaroslav Tulach
    1.25 + */
    1.26 +public abstract class Accessor {
    1.27 +    public static Accessor DEFAULT;
    1.28 +    static {
    1.29 +        try {
    1.30 +            Class.forName(Item.class.getName(), true, Item.class.getClassLoader());
    1.31 +        } catch (Exception ex) {
    1.32 +            ex.printStackTrace();
    1.33 +        }
    1.34 +    }
    1.35 +    
    1.36 +    public Accessor() {
    1.37 +    }
    1.38 +
    1.39 +    protected abstract Item newItem();
    1.40 +    protected abstract void addChangeListener(Item item, ChangeListener l);
    1.41 +}