samples/friendpackage/src/apipkg/AccessorImpl.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:51:30 +0200
changeset 36 850133dd7e4d
parent 35 ecab95a52f10
child 190 8b87a7d88b31
permissions -rw-r--r--
Integrating Geertjan's changes to 1/2 of the theory chapter
     1 /*
     2  *                 Sun Public License Notice
     3  * 
     4  * The contents of this file are subject to the Sun Public License
     5  * Version 1.0 (the "License"). You may not use this file except in
     6  * compliance with the License. A copy of the License is available at
     7  * http://www.sun.com/
     8  * 
     9  * The Original Code is NetBeans. The Initial Developer of the Original
    10  * Code is Jaroslav Tulach. Portions Copyright 2007 Jaroslav Tulach. 
    11  * All Rights Reserved.
    12  */
    13 
    14 package apipkg;
    15 
    16 import implpkg.Accessor;
    17 import javax.swing.event.ChangeListener;
    18 
    19 /** The bridge between api and impl package.
    20  *
    21  * @author Jaroslav Tulach
    22  */
    23 // BEGIN: design.less.friend.AccessorImpl
    24 final class AccessorImpl extends Accessor {
    25     protected Item newItem() {
    26         return new Item();
    27     }
    28 
    29     protected void addChangeListener(Item item, ChangeListener l) {
    30         item.addChangeListener(l);
    31     }
    32 }
    33 // END: design.less.friend.AccessorImpl