Skip to content

Commit

Permalink
proper type for ListItem
Browse files Browse the repository at this point in the history
  • Loading branch information
heiko-braun committed Apr 19, 2012
1 parent 05eac3d commit 8bad1e4
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -32,10 +32,10 @@
* @author Heiko Braun
* @date 5/12/11
*/
public class ListItem extends FormItem<List> {
public class ListItem extends FormItem<List<String>> {

private TextArea textArea;
private List value = new ArrayList();
private List<String> value = new ArrayList<String>();
private boolean displayOnly;


Expand Down Expand Up @@ -80,7 +80,7 @@ public boolean validate(List value) {
}

@Override
public List getValue() {
public List<String> getValue() {

String[] split = textArea.getText().split("\n");
value.clear();
Expand All @@ -93,7 +93,7 @@ public List getValue() {
}

@Override
public void setValue(List list) {
public void setValue(List<String> list) {

this.value.clear();

Expand Down

0 comments on commit 8bad1e4

Please sign in to comment.