remember expanded state

This commit is contained in:
Jeremie Panzer
2013-03-28 10:39:03 +01:00
parent e0925e8c50
commit 78bfc4424f
6 changed files with 52 additions and 3 deletions

View File

@@ -7,11 +7,12 @@ import com.google.common.collect.Lists;
@SuppressWarnings("serial")
public class Category implements Serializable {
private String id;
private String name;
private List<Category> children = Lists.newArrayList();
private List<Subscription> feeds = Lists.newArrayList();
private boolean expanded;
public String getId() {
return id;
@@ -45,4 +46,11 @@ public class Category implements Serializable {
this.feeds = feeds;
}
public boolean isExpanded() {
return expanded;
}
public void setExpanded(boolean expanded) {
this.expanded = expanded;
}
}