samples/friendpackage/src/implpkg/Accessor.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:50:27 +0200
changeset 0 32b39aaa68f0
child 3 b44baa125b38
permissions -rw-r--r--
Adding friend access example
jtulach@0
     1
/*
jtulach@0
     2
 *                 Sun Public License Notice
jtulach@0
     3
 * 
jtulach@0
     4
 * The contents of this file are subject to the Sun Public License
jtulach@0
     5
 * Version 1.0 (the "License"). You may not use this file except in
jtulach@0
     6
 * compliance with the License. A copy of the License is available at
jtulach@0
     7
 * http://www.sun.com/
jtulach@0
     8
 * 
jtulach@0
     9
 * The Original Code is NetBeans. The Initial Developer of the Original
jtulach@0
    10
 * Code is Sun Microsystems, Inc. Portions Copyright 1999-2006 Sun
jtulach@0
    11
 * Microsystems, Inc. All Rights Reserved.
jtulach@0
    12
 */
jtulach@0
    13
jtulach@0
    14
package implpkg;
jtulach@0
    15
jtulach@0
    16
import apipkg.Item;
jtulach@0
    17
import javax.swing.event.ChangeListener;
jtulach@0
    18
jtulach@0
    19
/**
jtulach@0
    20
 *
jtulach@0
    21
 * @author Jaroslav Tulach
jtulach@0
    22
 */
jtulach@0
    23
public abstract class Accessor {
jtulach@0
    24
    public static Accessor DEFAULT;
jtulach@0
    25
    static {
jtulach@0
    26
        try {
jtulach@0
    27
            Class.forName(Item.class.getName(), true, Item.class.getClassLoader());
jtulach@0
    28
        } catch (Exception ex) {
jtulach@0
    29
            ex.printStackTrace();
jtulach@0
    30
        }
jtulach@0
    31
    }
jtulach@0
    32
    
jtulach@0
    33
    public Accessor() {
jtulach@0
    34
    }
jtulach@0
    35
jtulach@0
    36
    protected abstract Item newItem();
jtulach@0
    37
    protected abstract void addChangeListener(Item item, ChangeListener l);
jtulach@0
    38
}