001 package jmaster.jumploader.view.api.upload;
002
003 import java.awt.Point;
004
005 import jmaster.jumploader.model.api.upload.IUploadFile;
006 import jmaster.jumploader.view.api.IGenericView;
007
008 /**
009 * IUploadView
010 *
011 * @author timur
012 */
013
014 public interface IUploadView
015 extends IGenericView {
016 //---------------------------------------------------------------
017 // constants
018 //---------------------------------------------------------------
019 //---------------------------------------------------------------
020 // business methods
021 //---------------------------------------------------------------
022 /**
023 * show open dialog
024 */
025 public void showOpenDialog();
026 /**
027 * retrieve current directory path for open dialog
028 */
029 String getOpenDialogPath();
030 /**
031 * update view (synchronize to view config)
032 */
033 public void updateView();
034 /**
035 * show metadata view
036 * @param uploadFile an upload file to display metadata for,
037 * pass null to hide metadata view
038 * @param point location on screen
039 */
040 public void showMetadata(IUploadFile uploadFile);
041 public void showMetadata(IUploadFile uploadFile, Point point);
042
043 /**
044 * set general purpose label (which locate right to start/stop button) text
045 * @param text a text to set, this could be html ([html]...[/html]) or plain text
046 */
047 void setGeneralPurposeLabelText(String text);
048 }