1 /**********************************************
2 * Copyright (C) 2011 Lukas laag
3 * This file is part of lib-gwt-file.
4 *
5 * lib-gwt-file is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * lib-gwt-file is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with lib-gwt-file. If not, see http://www.gnu.org/licenses/
17 **********************************************/
18 package org.vectomatic.file.impl;
19
20 import org.vectomatic.file.File;
21
22 import com.google.gwt.core.client.JavaScriptObject;
23
24 public class FileListImpl extends JavaScriptObject {
25 protected FileListImpl() {
26 }
27 public final native int getLength() /*-{
28 return this.length;
29 }-*/;
30 public final native File getItem(int index) /*-{
31 return this[index];
32 }-*/;
33 }
34