
org.eclipse.swt.internal.widgets.UploadPanel Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2013, 2019 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* EclipseSource - initial API and implementation
******************************************************************************/
package org.eclipse.swt.internal.widgets;
import static org.eclipse.swt.internal.Compatibility.getMessage;
import static org.eclipse.swt.internal.widgets.LayoutUtil.createGridLayout;
import static org.eclipse.swt.internal.widgets.LayoutUtil.createHorizontalFillData;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.rap.fileupload.UploadSizeLimitExceededException;
import org.eclipse.rap.fileupload.UploadTimeLimitExceededException;
import org.eclipse.rap.rwt.RWT;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.internal.widgets.FileUploadRunnable.State;
import org.eclipse.rap.rwt.internal.util.Entities;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
@SuppressWarnings( "restriction" )
public class UploadPanel extends Composite {
private static long KB = 1000;
private static long MB = 1000 * 1000;
private static long SEC = 1000;
private static long MIN = 60 * 1000;
private static String FILENAME_KEY = "filename";
private final String[] fileNames;
private Image emptyIcon;
private Image waitingIcon;
private Image uploadingIcon;
private Image finishedIcon;
private Image failedIcon;
private final List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy