Author: mvitenkov
Date: 2008-09-12 07:16:32 -0400 (Fri, 12 Sep 2008)
New Revision: 10421
Modified:
trunk/test-applications/jsp/src/main/java/columns/Columns.java
Log:
Modified: trunk/test-applications/jsp/src/main/java/columns/Columns.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/columns/Columns.java 2008-09-12 11:04:28 UTC
(rev 10420)
+++ trunk/test-applications/jsp/src/main/java/columns/Columns.java 2008-09-12 11:16:32 UTC
(rev 10421)
@@ -2,22 +2,12 @@
import java.util.ArrayList;
import java.util.Comparator;
-import java.util.Map;
-import javax.faces.model.SelectItem;
+import javax.faces.context.FacesContext;
-import org.richfaces.component.UIColumn;
-import org.richfaces.component.UIComboBox;
-import org.richfaces.component.UIComponentControl;
-import org.richfaces.component.UIContextMenu;
-import org.richfaces.component.UIDataDefinitionList;
-import org.richfaces.component.UIDataFltrSlider;
-import org.richfaces.component.UIDataList;
-import org.richfaces.component.UIDatascroller;
import org.richfaces.model.Ordering;
+import org.richfaces.renderkit.html.images.GradientType;
-import orderingList.OrderingList;
-
import util.data.Data;
public class Columns implements Comparator{
@@ -42,14 +32,14 @@
private String[] filterValue;
private String filterInput;
private String filterEvent;
- private ArrayList<SelectItem> filterEvents;
+ private String text;
- public ArrayList<SelectItem> getFilterEvents() {
- return filterEvents;
+ public String getText() {
+ return text;
}
- public void setFilterEvents(ArrayList<SelectItem> filterEvents) {
- this.filterEvents = filterEvents;
+ public void setText(String text) {
+ this.text = text;
}
public String getFilterEvent() {
@@ -102,11 +92,8 @@
this.data1 = new ArrayList<Data>();
this.data2 = new ArrayList<Data>();
this.filterValue = new String[length2];
- this.filterEvent = "onchange";
- this.filterEvents = new ArrayList<SelectItem>();
- filterEvents.add(new SelectItem("onchange", "onchange"));
- filterEvents.add(new SelectItem("onkeyup", "onkeyup"));
- filterEvents.add(new SelectItem("ondbclick", "ondbclick"));
+ this.filterEvent = "onchange";
+ this.text = " locale: " +
FacesContext.getCurrentInstance().getViewRoot().getLocale();
for (int i = 0; i < length1; i++) {
data1.add(new Data(i, "data 1 [" + i + "]", "Button " +
i, "Link " + i, "select" + (i % 5)));
data2.add(new Data(i, "data 2 [" + i + "]", "Button " +
i, "Link " + i, statusIcon[i % 5]));