136137138139140141142143
OrderingListDataModel dataModel = new OrderingListDataModel(); dataModel.setWrappedData(modelMap); return dataModel; } else { DataModel dataModel = createDataModel(getValue()); return new SequenceDataModel(dataModel); } }
141142143144145146147148149
if (data instanceof Map) { this.data = (Map<Object, Object>) data; } else { DataModel[] models = (DataModel[]) data; this.sourceModel = new SequenceDataModel(models[0]); this.targetModel = new SequenceDataModel(models[1]); } }
156157158159160161162163
109110111112113114115116117118
Object value = getValue(); if (value instanceof ExtendedDataModel<?>) { model = (ExtendedDataModel<?>) value; } else { model = new SequenceDataModel(createFacesModel(value)); } return model; }
if (data instanceof Map) { this.data = (Map) data; } else { DataModel[] models = (DataModel[]) data; this.sourceModel = new SequenceDataModel(models[0]); this.targetModel = new SequenceDataModel(models[1]); } }