public Object getRowValue(int index) { return delegate.getRowValue(index); }
public Object getRowValue(int index) { return delegate.getRowValue(index); }
/** * Callback method, used when recording state to a form, or called directly when not recording state. */ void setupForRow(int rowIndex) { row = gridModel.getDataSource().getRowValue(rowIndex); }
public CustomGridDataSource(GridDataSource gds) { super(); this.datas = new ArrayList<Object>(); for(int i = 0; i < gds.getAvailableRows(); i++){ datas.add(gds.getRowValue(i)); } this.cgds = new CollectionGridDataSource(datas); }
/** * This method will filter all your data by using the search input from your datatable. */ public GridDataSource filterData(GridDataSource source){ final List<Object> datas = new ArrayList<Object>(); for(int index=0;index<source.getAvailableRows();index++){ boolean flag = false; for (Object name: model.getPropertyNames()) { PropertyConduit conduit = model.get((String) name).getConduit(); try{ String val = (String) conduit.get(source.getRowValue(index)); if(val.contains(request.getParameter(DataTableConstants.SEARCH))) flag = true; } catch (Exception e){ } } if(flag){ datas.add(source.getRowValue(index)); } } return new CustomGridDataSource(datas); }
Object obj = getSource().getRowValue(index);
Object obj = source.getRowValue(index);