Package javax.faces.model

Examples of javax.faces.model.ArrayDataModel


        {
            return new ListDataModel((List<?>) value);
        }
        else if (OBJECT_ARRAY_CLASS.isAssignableFrom(value.getClass()))
        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
View Full Code Here


      } else if (current instanceof DataModel) {
          model = new SequenceDataModel((DataModel) current);
      } else if (current instanceof List) {
          model = new SequenceDataModel(new ListDataModel((List) current));
      } else if (Object[].class.isAssignableFrom(current.getClass())) {
          model = new SequenceDataModel(new ArrayDataModel((Object[]) current));
      } else if (current instanceof ResultSet) {
          model = new SequenceDataModel(new ResultSetDataModel((ResultSet) current));
      } else if (current instanceof Result) {
          model = new SequenceDataModel(new ResultDataModel((Result) current));
      } else {
View Full Code Here

        }

        DataModel result;

        if (itemsObject instanceof Object[]) {
            result = new ArrayDataModel((Object[]) itemsObject);
        } else if (itemsObject instanceof List) {
            result = new ListDataModel((List<Object>) itemsObject);
        } else if (itemsObject instanceof Result) {
            result = new ResultDataModel((Result) itemsObject);
        } else if (itemsObject instanceof ResultSet) {
View Full Code Here

    {
      return new ListDataModel(new ArrayList((Collection) value));
    }
    else if (OBJECT_ARRAY_CLASS.isAssignableFrom(value.getClass()))
    {
      return new ArrayDataModel((Object[]) value);
    }
    else if (value instanceof ResultSet)
    {
      return new ResultSetDataModel((ResultSet) value);
    }
View Full Code Here

        {
            return new ListDataModel((List<?>) value);
        }
        else if (OBJECT_ARRAY_CLASS.isAssignableFrom(value.getClass()))
        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
View Full Code Here

        {
            return new ListDataModel((List) value);
        }
        else if (OBJECT_ARRAY_CLASS.isAssignableFrom(value.getClass()))
        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
View Full Code Here

        {
            return new ListDataModel((List) value);
        }
        else if (OBJECT_ARRAY_CLASS.isAssignableFrom(value.getClass()))
        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
View Full Code Here

        {
            return new ListDataModel(new ArrayList((Collection) value));
        }
        else if (OBJECT_ARRAY_CLASS.isAssignableFrom(value.getClass()))
        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
View Full Code Here

        {
            return new ListDataModel((List<?>) value);
        }
        else if (OBJECT_ARRAY_CLASS.isAssignableFrom(value.getClass()))
        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
View Full Code Here

        {
            return new ListDataModel((List) value);
        }
        else if (OBJECT_ARRAY_CLASS.isAssignableFrom(value.getClass()))
        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
View Full Code Here

TOP

Related Classes of javax.faces.model.ArrayDataModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.