<?xml version="1.0" encoding="UTF-8"?>
<class name="Knopf" extends="Actor" extends-java="Actor" enable="true" strideversion="1">
    <javadoc xml:space="preserve">Die Uebungen (mit Loesungen) zu diesem Szenario finden Sie hier:
http://www.informatikzentrale.de/uebungen-foreach-schleife-greenfoot-3.html</javadoc>
    <imports>
        <import target="java.util.*" enable="true"/>
        <import target="greenfoot.*" enable="true"/>
    </imports>
    <implements/>
    <fields>
        <variable access="protected" type="Schaltpult" type-java="Schaltpult" name="welt" enable="true"/>
    </fields>
    <constructors/>
    <methods>
        <method access="public" type="void" type-java="void" name="act" enable="true">
            <javadoc xml:space="preserve">Act - do whatever the Knopf wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.</javadoc>
            <params/>
            <throws/>
            <body>
                <if condition="Greenfoot.mouseClicked(this)" condition-java="Greenfoot.mouseClicked(this)" enable="true">
                    <ifStatements>
                        <call expression="this.welt.allenTextLoeschen()" expression-java="this.welt.allenTextLoeschen()" enable="true"/>
                        <call expression="this.aktionAusfuehren()" expression-java="this.aktionAusfuehren()" enable="true"/>
                    </ifStatements>
                </if>
            </body>
        </method>
        <method access="protected" type="void" type-java="void" name="addedToWorld" enable="true">
            <javadoc xml:space="preserve"/>
            <params>
                <param type="World" type-java="World" name="world"/>
            </params>
            <throws/>
            <body>
                <assign dest="welt" dest-java="welt" src="(Schaltpult)this.getWorld()" src-java="(Schaltpult)this.getWorld()" enable="true"/>
            </body>
        </method>
        <method access="public" type="void" type-java="void" name="aktionAusfuehren" enable="true">
            <javadoc xml:space="preserve"/>
            <params/>
            <throws/>
            <body/>
        </method>
    </methods>
</class>
