Revision 1001,
1.1 KB
checked in by alexandrecorreia, 15 years ago
(diff) |
Ticket #552 - Inclusão do projeto Java referente ao applet do módulo.
|
Line | |
---|
1 | package nu.fw.jeti.jabber.elements; |
---|
2 | |
---|
3 | /** |
---|
4 | * <p>Title: im</p> |
---|
5 | * <p>Description: </p> |
---|
6 | * <p>Copyright: Copyright (c) 2001</p> |
---|
7 | * <p>Company: </p> |
---|
8 | * @author E.S. de Boer |
---|
9 | * @version 1.0 |
---|
10 | */ |
---|
11 | |
---|
12 | public class XMessageEventBuilder implements ExtensionBuilder |
---|
13 | { |
---|
14 | //remove this |
---|
15 | |
---|
16 | /** id is the id from the message that this event is a reply to */ |
---|
17 | private String id; |
---|
18 | |
---|
19 | /** type holds a string describing the type of the event (composing/offline/deliverd/displayed) */ |
---|
20 | private String type; |
---|
21 | |
---|
22 | /** construct a new XMessageEventBuilder object */ |
---|
23 | public XMessageEventBuilder() |
---|
24 | { |
---|
25 | reset(); |
---|
26 | } |
---|
27 | |
---|
28 | /** reset the builder to a default state, for reuse */ |
---|
29 | public void reset() |
---|
30 | { |
---|
31 | id=null; |
---|
32 | type=null; |
---|
33 | } |
---|
34 | |
---|
35 | public String getType() |
---|
36 | { |
---|
37 | return type; |
---|
38 | } |
---|
39 | |
---|
40 | public void setType(String type) |
---|
41 | { |
---|
42 | this.type=type; |
---|
43 | } |
---|
44 | |
---|
45 | |
---|
46 | public String getID() |
---|
47 | { |
---|
48 | return id; |
---|
49 | } |
---|
50 | |
---|
51 | public void setID(String txt) |
---|
52 | { |
---|
53 | id=txt; |
---|
54 | } |
---|
55 | |
---|
56 | public Extension build() |
---|
57 | { |
---|
58 | //if(id == null) throw new InstantiationException("ID may not be null"); |
---|
59 | return new XMessageEvent(this); |
---|
60 | } |
---|
61 | } |
---|
62 | /* |
---|
63 | * Overrides for emacs |
---|
64 | * Local variables: |
---|
65 | * tab-width: 4 |
---|
66 | * End: |
---|
67 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.