01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.event;
14:
15: import org.wings.SComponent;
16:
17: import java.util.EventObject;
18:
19: /**
20: * Event fired on render events in {@link SRenderListener}.
21: * This event contains the event source (the component actually rendered).
22: *
23: * @author <a href="mailto:armin.haaf@mercatis.de">Armin Haaf</a>
24: */
25: public class SRenderEvent extends EventObject {
26:
27: /**
28: * Constructs a new render event by noting down the source component.
29: * @param source
30: */
31: public SRenderEvent(SComponent source) {
32: super (source);
33: }
34:
35: /**
36: * @return Convenience getter for {@link #getSource()}
37: */
38: public SComponent getSourceComponent() {
39: return (SComponent) super.getSource();
40: }
41:
42: }
|