Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.yaftp.utils
Class OsEditorPanePanel  view OsEditorPanePanel download OsEditorPanePanel.java

java.lang.Object
  extended bycom.yaftp.utils.OsEditorPanePanel
All Implemented Interfaces:
SwingTextEditors

public class OsEditorPanePanel
extends java.lang.Object
implements SwingTextEditors

we implement here a way to be able to start Operating System dependent text editors like (Emacs,Xemacs,Ultraedit32) to manipulate transfered files


Nested Class Summary
(package private)  class OsEditorPanePanel.WL
           
 
Field Summary
private  java.lang.String _browsingEnvironmentString
          name of the Editor program to launch + parms
private static java.lang.String _DOT_HTM_
           
private static java.lang.String _DOT_HTML_
           
private  java.lang.String _editorEnvironmentString
           
private  java.lang.String _providedFName
           
private  int _type
           
private static java.lang.String _WKFNAME_
           
private  java.lang.String _workDirectory
           
 
Fields inherited from interface com.yaftp.utils.SwingTextEditors
BINARY, HTML, RTF, TEXT
 
Constructor Summary
OsEditorPanePanel()
           
 
Method Summary
private  java.io.File buildWkFile(java.lang.Object object)
          store a temporary file which will contain the text or byte array to be externally edited
 javax.swing.JPanel get_panel()
          provide a way to setup /** as external text editor launcher, we do not provide a PANEL able to be viewed inside the YaFtp internal frame so we return null here.
 void load(java.lang.Object object)
          the load method just launches an instance of the external editor, used to bring object up to screen.
static void main(java.lang.String[] args)
           
 void set_browsingEnvironmentString(java.lang.String environmentString)
          set the full path name of the os program to be launched when browsing
 void set_editorEnvironmentString(java.lang.String environmentString)
          set the full path name of the os program to be launched when editing
 void set_providedFName(java.lang.String providedFName)
          give a chance to caller to provide a waork file name
 void set_workDirectory(java.lang.String workDirectory)
           
 void setEditorKit(int type)
          we use it here to build a file suffix to work file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_WKFNAME_

private static final java.lang.String _WKFNAME_
See Also:
Constant Field Values

_DOT_HTML_

private static final java.lang.String _DOT_HTML_
See Also:
Constant Field Values

_DOT_HTM_

private static final java.lang.String _DOT_HTM_
See Also:
Constant Field Values

_browsingEnvironmentString

private java.lang.String _browsingEnvironmentString
name of the Editor program to launch + parms


_editorEnvironmentString

private java.lang.String _editorEnvironmentString

_workDirectory

private java.lang.String _workDirectory

_type

private int _type

_providedFName

private java.lang.String _providedFName
Constructor Detail

OsEditorPanePanel

public OsEditorPanePanel()
Method Detail

set_editorEnvironmentString

public void set_editorEnvironmentString(java.lang.String environmentString)
set the full path name of the os program to be launched when editing


set_browsingEnvironmentString

public void set_browsingEnvironmentString(java.lang.String environmentString)
set the full path name of the os program to be launched when browsing


set_workDirectory

public void set_workDirectory(java.lang.String workDirectory)

setEditorKit

public void setEditorKit(int type)
we use it here to build a file suffix to work file

Specified by:
setEditorKit in interface SwingTextEditors

set_providedFName

public void set_providedFName(java.lang.String providedFName)
give a chance to caller to provide a waork file name


get_panel

public javax.swing.JPanel get_panel()
provide a way to setup /** as external text editor launcher, we do not provide a PANEL able to be viewed inside the YaFtp internal frame so we return null here.

Specified by:
get_panel in interface SwingTextEditors

buildWkFile

private java.io.File buildWkFile(java.lang.Object object)
                          throws UtilsError
store a temporary file which will contain the text or byte array to be externally edited


load

public void load(java.lang.Object object)
          throws UtilsError
the load method just launches an instance of the external editor, used to bring object up to screen. This method is able to deal with binary , string and File objects

Specified by:
load in interface SwingTextEditors

main

public static void main(java.lang.String[] args)