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;
14:
15: /**
16: * For components/models that should not fire events immediately when they occur, but on request (internal).
17: *
18: * @author <a href="mailto:haaf@mercatis.de">Armin Haaf</a>
19: */
20: public interface SDelayedEventModel {
21: /**
22: * if this is set to true, events are not fired immediately. They are
23: * collected and fired after setting this to false...
24: */
25: void setDelayEvents(boolean b);
26:
27: boolean getDelayEvents();
28:
29: /**
30: * fire delayed events which describes a "in progress"
31: * state change, like TreeWillExpand, or ListSelectionEvent with
32: * getIsAdjusting() true, ...
33: */
34: void fireDelayedIntermediateEvents();
35:
36: /**
37: * fire remaining delayed events. In this level all events, which
38: * are important to an application should be fired. All listeners, which are
39: * notified in this level can assume that the components are in a consistent
40: * (considering user interaction) state.
41: */
42: void fireDelayedFinalEvents();
43: }
|