Author: abelevich
Date: 2007-05-05 11:58:36 -0400 (Sat, 05 May 2007)
New Revision: 655
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java
Log:
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java 2007-05-04
23:56:43 UTC (rev 654)
+++
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java 2007-05-05
15:58:36 UTC (rev 655)
@@ -3,89 +3,13 @@
*/
package org.richfaces.component;
-import java.io.IOException;
-import java.util.Iterator;
+import org.ajax4jsf.ajax.repeat.UIRepeat;
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.model.ArrayDataModel;
-import org.ajax4jsf.ajax.repeat.DataComponentState;
-import org.ajax4jsf.ajax.repeat.DataVisitor;
-import org.ajax4jsf.ajax.repeat.ExtendedDataModel;
-import org.ajax4jsf.ajax.repeat.Range;
-import org.ajax4jsf.ajax.repeat.SequenceDataModel;
-import org.ajax4jsf.ajax.repeat.UIDataAdaptor;
-import org.apache.commons.collections.iterators.IteratorChain;
-
/**
* @author Anton Belevich
*
*/
-public class UIScrollableGrid extends UIDataAdaptor {
+public class UIScrollableGrid extends UIRepeat{
- protected Iterator dataChildren() {
- return getChildren().iterator();
- }
-
- protected DataComponentState createComponentState() {
- // TODO Auto-generated method stub
- return new DataComponentState(){
- public Range getRange() {
- // TODO Auto-generated method stub
- return new Range(){};
- }
- };
- }
-
- protected ExtendedDataModel createDataModel() {
- return new ExtendedDataModel() {
- public int getRowCount() {
- // TODO Auto-generated method stub
- return 0;
- }
- public Object getRowData() {
- // TODO Auto-generated method stub
- return null;
- }
- public int getRowIndex() {
- // TODO Auto-generated method stub
- return 0;
- }
- public Object getRowKey() {
- // TODO Auto-generated method stub
- return null;
- }
- public Object getWrappedData() {
- // TODO Auto-generated method stub
- return null;
- }
- public boolean isRowAvailable() {
- // TODO Auto-generated method stub
- return false;
- }
- public void setRowIndex(int rowIndex) {
- // TODO Auto-generated method stub
-
- }
- public void setRowKey(Object key) {
- // TODO Auto-generated method stub
-
- }
-
- public void setWrappedData(Object data) {
- // TODO Auto-generated method stub
-
- }
- public void walk(FacesContext context, DataVisitor visitor, Range range, Object
argument) throws IOException {
- // TODO Auto-generated method stub
-
- }
- };
- }
-
- protected Iterator fixedChildren() {
- // TODO Auto-generated method stub
- return getChildren().iterator();
- }
}
Show replies by date