/*
- * Copyright 2011 GRNET S.A. All rights reserved.
+ * Copyright 2011-2013 GRNET S.A. All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
private boolean reverseSort = false;
private boolean sorted = false;
private String text;
+ private String property;
- SortableHeader(String text) {
+ SortableHeader(String text, String property) {
super(new ClickableTextCell());
if (template == null) {
template = GWT.create(Template.class);
}
this.text = text;
+ this.property = property;
}
public boolean getReverseSort() {
this.reverseSort = reverseSort;
}
+ public boolean isSorted() {
+ return sorted;
+ }
+
public void setSorted(boolean sorted) {
this.sorted = sorted;
}
public void toggleReverseSort() {
this.reverseSort = !this.reverseSort;
}
+
+public String getProperty() {
+ return property;
+}
}