Mercurial > hg > test-repo
annotate findbugs-wtf/src/main/java/de/iobjects/render/ButtonRenderer.java @ 18:9436877e9b54
added sample maven project
author | Dirk Olmes <dirk.olmes@googlemail.com> |
---|---|
date | Tue, 17 Jun 2008 12:22:15 +0200 |
parents | |
children |
rev | line source |
---|---|
18
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
1 package de.iobjects.render; |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
2 |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
3 import java.io.IOException; |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
4 import java.io.Writer; |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
5 |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
6 import de.iobjects.widget.Button; |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
7 |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
8 public class ButtonRenderer extends Object implements Renderer<Button> |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
9 { |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
10 public void beginRender(Button widget, Writer writer) throws IOException |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
11 { |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
12 writer.write("begin " + widget.getName()); |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
13 } |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
14 |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
15 public void endRender(Button widget, Writer writer) throws IOException |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
16 { |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
17 writer.write("end " + widget.getName()); |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
18 } |
9436877e9b54
added sample maven project
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff
changeset
|
19 } |