samples/openfixed/src/org/apidesign/openfixed/GrowingEvent.java
changeset 373 c20d1d8ef2ca
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samples/openfixed/src/org/apidesign/openfixed/GrowingEvent.java	Sun Mar 20 08:12:26 2011 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +package org.apidesign.openfixed;
     1.5 +
     1.6 +import java.util.EventObject;
     1.7 +
     1.8 +// BEGIN: openfixed.event
     1.9 +public final class GrowingEvent extends EventObject {
    1.10 +    public GrowingEvent(Object source) {
    1.11 +        super(source);
    1.12 +    }
    1.13 +// FINISH: openfixed.event
    1.14 +    
    1.15 +// BEGIN: openfixed.addgetter    
    1.16 +    private int index;
    1.17 +    /** @since 2.0 */
    1.18 +    public GrowingEvent(Object source, int index) {
    1.19 +        super(source);
    1.20 +        this.index = index;
    1.21 +    }
    1.22 +
    1.23 +    /** @since 2.0 */
    1.24 +    public int getIndex() {
    1.25 +        return index;
    1.26 +    }
    1.27 +// END: openfixed.addgetter    
    1.28 +}