]> git.argeo.org Git - lgpl/argeo-commons.git/blob - eclipse/rap/org.eclipse.rwt.widgets.upload/src/org/eclipse/rwt/widgets/internal/UploadConfiguration.java
Introduce file upload widget
[lgpl/argeo-commons.git] / eclipse / rap / org.eclipse.rwt.widgets.upload / src / org / eclipse / rwt / widgets / internal / UploadConfiguration.java
1 /*******************************************************************************
2 * Copyright (c) 2002-2006 Innoopract Informationssysteme GmbH. All rights
3 * reserved. This program and the accompanying materials are made available
4 * under the terms of the Eclipse Public License v1.0 which accompanies this
5 * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
6 * Contributors: Innoopract Informationssysteme GmbH - initial API and
7 * implementation
8 ******************************************************************************/
9 package org.eclipse.rwt.widgets.internal;
10
11 import org.eclipse.rwt.widgets.IUploadConfiguration;
12
13 public class UploadConfiguration implements IUploadConfiguration {
14
15 private long fileSizeMax = -1;
16 private long sizeMax = -1;
17
18 public synchronized long getFileSizeMax() {
19 return fileSizeMax;
20 }
21
22 public synchronized long getSizeMax() {
23 return sizeMax;
24 }
25
26 public synchronized void setFileMaxSize( final long fileSizeMax ) {
27 this.fileSizeMax = fileSizeMax;
28 }
29
30 public synchronized void setSizeMax( final long sizeMax ) {
31 this.sizeMax = sizeMax;
32 }
33 }