org.exoplatform.applications.ooplugin
Class SaveDialog

java.lang.Object
  extended by org.exoplatform.applications.ooplugin.PlugInDialog
      extended by org.exoplatform.applications.ooplugin.BrowseDialog
          extended by org.exoplatform.applications.ooplugin.SaveDialog

public class SaveDialog
extends BrowseDialog

Created by The eXo Platform SAS Author.

Version:
$Id: $
Author:
Vitaly Guly

Nested Class Summary
 
Nested classes/interfaces inherited from class org.exoplatform.applications.ooplugin.BrowseDialog
BrowseDialog.OpenThread
 
Field Summary
static java.lang.String DIALOG_NAME
           
 
Fields inherited from class org.exoplatform.applications.ooplugin.BrowseDialog
BTN_CANCEL, BTN_PREV, COMBO_PATH, currentPath, isNeedAddHandlers, JCR_MIMETYPE, JCR_NAMESPACE, JCR_PREFIX, LASTMODIFIED_SIZE, LBL_TABLEHEAD, LST_ITEMS, MIMETYPE_SIZE, NAME_LEN, openThread, responses, SIZE_LEN, VNAME_LEN
 
Fields inherited from class org.exoplatform.applications.ooplugin.PlugInDialog
config, dialogName, enabled, eventHandlers, xComponentContext, xControlContainer, xDialog, xFrame, xToolkit
 
Constructor Summary
SaveDialog(WebDavConfig config, com.sun.star.uno.XComponentContext xComponentContext, com.sun.star.frame.XFrame xFrame, com.sun.star.awt.XToolkit xToolkit, boolean isSaveAs)
           
 
Method Summary
protected  void disableAll()
           
protected  boolean doSave(java.lang.String localPath, java.lang.String remotePath)
           
protected  void doSaveFile()
           
protected  void doSelectItem()
           
protected  void enableAll()
           
 java.lang.String getDocumentFileName()
           
protected  java.lang.String getEditFileName()
           
 java.lang.String getEditFilterValue()
           
protected  java.lang.String getSessionPath()
           
 java.lang.String[] getTypedFileInfo()
           
 java.lang.String[] getTypedFileInfo(java.lang.String fileName)
           
protected  void initDefaults()
           
 boolean launchBeforeOpen()
           
protected  void setEditFileName(java.lang.String fileName)
           
 void setEditFilterValue(java.lang.String typeValue)
           
protected  void setSessionPath(java.lang.String path)
           
 void storeLocal(java.lang.String url, java.lang.String filter)
           
 
Methods inherited from class org.exoplatform.applications.ooplugin.BrowseDialog
createDialog, doPropFind, doPropFindResponse, fillItemsList, formatResponseLine, getSelectedItemPos, isCollection
 
Methods inherited from class org.exoplatform.applications.ooplugin.PlugInDialog
addHandler, confirmMessageBox, doOpenRemoteFile, getConponentContext, getControlContainer, getDialogName, isEnableg, prepareTmpPath, setControlContainer, setEnabled, showMessageBox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIALOG_NAME

public static final java.lang.String DIALOG_NAME
See Also:
Constant Field Values
Constructor Detail

SaveDialog

public SaveDialog(WebDavConfig config,
                  com.sun.star.uno.XComponentContext xComponentContext,
                  com.sun.star.frame.XFrame xFrame,
                  com.sun.star.awt.XToolkit xToolkit,
                  boolean isSaveAs)
Method Detail

disableAll

protected void disableAll()
Overrides:
disableAll in class BrowseDialog

enableAll

protected void enableAll()
Overrides:
enableAll in class BrowseDialog

getEditFileName

protected java.lang.String getEditFileName()

setEditFileName

protected void setEditFileName(java.lang.String fileName)

doSelectItem

protected void doSelectItem()
Overrides:
doSelectItem in class BrowseDialog

getTypedFileInfo

public java.lang.String[] getTypedFileInfo()
                                    throws DialogException
Throws:
DialogException

getTypedFileInfo

public java.lang.String[] getTypedFileInfo(java.lang.String fileName)
                                    throws DialogException
Throws:
DialogException

doSaveFile

protected void doSaveFile()
                   throws java.lang.Exception
Throws:
java.lang.Exception

setSessionPath

protected void setSessionPath(java.lang.String path)
                       throws com.sun.star.lang.IndexOutOfBoundsException
Throws:
com.sun.star.lang.IndexOutOfBoundsException

getSessionPath

protected java.lang.String getSessionPath()
                                   throws com.sun.star.lang.IndexOutOfBoundsException
Throws:
com.sun.star.lang.IndexOutOfBoundsException

getEditFilterValue

public java.lang.String getEditFilterValue()

setEditFilterValue

public void setEditFilterValue(java.lang.String typeValue)

storeLocal

public void storeLocal(java.lang.String url,
                       java.lang.String filter)

launchBeforeOpen

public boolean launchBeforeOpen()
Overrides:
launchBeforeOpen in class BrowseDialog

initDefaults

protected void initDefaults()
                     throws java.lang.Exception
Throws:
java.lang.Exception

getDocumentFileName

public java.lang.String getDocumentFileName()
                                     throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

doSave

protected boolean doSave(java.lang.String localPath,
                         java.lang.String remotePath)


Copyright © 2012 eXo Platform SAS. All Rights Reserved.