samples/openfixed/src/org/apidesign/openfixed/GrowingEvent.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sun, 20 Mar 2011 08:12:26 +0100
changeset 373 c20d1d8ef2ca
permissions -rw-r--r--
Show composition of client and provider APIs
jtulach@373
     1
package org.apidesign.openfixed;
jtulach@373
     2
jtulach@373
     3
import java.util.EventObject;
jtulach@373
     4
jtulach@373
     5
// BEGIN: openfixed.event
jtulach@373
     6
public final class GrowingEvent extends EventObject {
jtulach@373
     7
    public GrowingEvent(Object source) {
jtulach@373
     8
        super(source);
jtulach@373
     9
    }
jtulach@373
    10
// FINISH: openfixed.event
jtulach@373
    11
    
jtulach@373
    12
// BEGIN: openfixed.addgetter    
jtulach@373
    13
    private int index;
jtulach@373
    14
    /** @since 2.0 */
jtulach@373
    15
    public GrowingEvent(Object source, int index) {
jtulach@373
    16
        super(source);
jtulach@373
    17
        this.index = index;
jtulach@373
    18
    }
jtulach@373
    19
jtulach@373
    20
    /** @since 2.0 */
jtulach@373
    21
    public int getIndex() {
jtulach@373
    22
        return index;
jtulach@373
    23
    }
jtulach@373
    24
// END: openfixed.addgetter    
jtulach@373
    25
}