insensa.controller
Class CControllerFileEditing

java.lang.Object
  extended by insensa.controller.CControllerFileEditing

public class CControllerFileEditing
extends java.lang.Object


Field Summary
private  java.util.List<ConnectionFileChanger> connectionList
           
private  java.util.List<javax.swing.tree.DefaultMutableTreeNode> connectionNodeList
           
private  java.util.List<CRasterFileInformation> fileList
           
private  java.util.List<javax.swing.tree.DefaultMutableTreeNode> fileNodeList
           
private  java.util.List<CRasterFileSet> fileSetList
           
private  java.util.List<javax.swing.tree.DefaultMutableTreeNode> fileSetNodeList
           
private  java.util.List<InfoReader> infoReaderList
           
private  java.util.List<javax.swing.tree.DefaultMutableTreeNode> infoReaderNodeList
           
private  CModel model
           
private  java.util.List<OptionFileChanger> optionFileChangerList
           
private  java.util.List<javax.swing.tree.DefaultMutableTreeNode> optionNodeList
           
private  javax.swing.tree.DefaultMutableTreeNode targetTreeNode
           
private  javax.swing.tree.TreePath[] treePaths
           
private  CView view
           
 
Constructor Summary
CControllerFileEditing(javax.swing.tree.TreePath[] treePaths, CView view, CModel model)
           
 
Method Summary
private  boolean checkFilesInFileSet(CRasterFileSet fileSet)
           
 void copyFiles()
           
private  void deleteConnection(ConnectionFileChanger con)
           
 void executeAllConnections()
           
 void executeAllInfoReaders()
           
 void executeAllOptionFileChanger()
           
 java.util.List<ConnectionFileChanger> getConnectionList()
           
 java.util.List<javax.swing.tree.DefaultMutableTreeNode> getConnectionNodeList()
           
 java.util.List<CRasterFileInformation> getFileList()
           
 java.util.List<javax.swing.tree.DefaultMutableTreeNode> getFileNodeList()
           
 java.util.List<javax.swing.tree.DefaultMutableTreeNode> getFileParentNodes()
           
 java.util.List<CRasterFileSet> getFileSetList()
           
 java.util.List<InfoConnection> getInfoConnectionList()
           
 java.util.List<InfoReader> getInfoReaderList()
           
 int getNumOfDifferentObjects()
           
 int getReadInfoReaderCount()
           
 java.util.List<InfoReader> getReadInfoReaderList()
           
 java.util.List<javax.swing.tree.DefaultMutableTreeNode> getReadInfoReaderNodeList()
           
 javax.swing.tree.DefaultMutableTreeNode getTargetTreeNode()
           
 void moveFiles()
           
 void removeDescendantNodes()
           
 void removeSelectedConnection()
          FIXME nicht mehr genutzt seitdem die Connection an der Datei sind anstatt an einem FileSet.
 void removeSelectedFiles()
           
 void removeSelectedFileSets()
           
private  void removeSelectedFileSetsDependencies(CRasterFileSet fileSet)
           
 void removeSelectedInfoReader()
           
 void removeSelectedItem()
           
 void removeSelectedItems()
           
 void removeSelectedOptions()
           
 void renameSelected()
           
 void setTargetTreePath(javax.swing.tree.DefaultMutableTreeNode targetTreeNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileNodeList

private java.util.List<javax.swing.tree.DefaultMutableTreeNode> fileNodeList

fileList

private java.util.List<CRasterFileInformation> fileList

fileSetNodeList

private java.util.List<javax.swing.tree.DefaultMutableTreeNode> fileSetNodeList

fileSetList

private java.util.List<CRasterFileSet> fileSetList

infoReaderNodeList

private java.util.List<javax.swing.tree.DefaultMutableTreeNode> infoReaderNodeList

infoReaderList

private java.util.List<InfoReader> infoReaderList

optionNodeList

private java.util.List<javax.swing.tree.DefaultMutableTreeNode> optionNodeList

optionFileChangerList

private java.util.List<OptionFileChanger> optionFileChangerList

connectionNodeList

private java.util.List<javax.swing.tree.DefaultMutableTreeNode> connectionNodeList

connectionList

private java.util.List<ConnectionFileChanger> connectionList

view

private CView view

model

private CModel model

treePaths

private javax.swing.tree.TreePath[] treePaths

targetTreeNode

private javax.swing.tree.DefaultMutableTreeNode targetTreeNode
Constructor Detail

CControllerFileEditing

public CControllerFileEditing(javax.swing.tree.TreePath[] treePaths,
                              CView view,
                              CModel model)
Parameters:
treePaths -
insensa.view -
model -
Method Detail

checkFilesInFileSet

private boolean checkFilesInFileSet(CRasterFileSet fileSet)
Parameters:
fileSet -
Returns:

copyFiles

public void copyFiles()
               throws java.lang.Exception
Throws:
java.lang.Exception

deleteConnection

private void deleteConnection(ConnectionFileChanger con)
                       throws java.io.IOException
Parameters:
con -
Throws:
java.io.IOException

executeAllConnections

public void executeAllConnections()
                           throws java.io.IOException
Throws:
java.io.IOException

executeAllInfoReaders

public void executeAllInfoReaders()

executeAllOptionFileChanger

public void executeAllOptionFileChanger()

getConnectionList

public java.util.List<ConnectionFileChanger> getConnectionList()
Returns:

getConnectionNodeList

public java.util.List<javax.swing.tree.DefaultMutableTreeNode> getConnectionNodeList()
Returns:

getFileList

public java.util.List<CRasterFileInformation> getFileList()
Returns:

getFileNodeList

public java.util.List<javax.swing.tree.DefaultMutableTreeNode> getFileNodeList()
Returns:

getFileSetList

public java.util.List<CRasterFileSet> getFileSetList()
Returns:
the fileSetList

getFileParentNodes

public java.util.List<javax.swing.tree.DefaultMutableTreeNode> getFileParentNodes()
Returns:

getInfoConnectionList

public java.util.List<InfoConnection> getInfoConnectionList()
Returns:

getInfoReaderList

public java.util.List<InfoReader> getInfoReaderList()
Returns:

getNumOfDifferentObjects

public int getNumOfDifferentObjects()
Returns:

getReadInfoReaderCount

public int getReadInfoReaderCount()
Returns:

getReadInfoReaderList

public java.util.List<InfoReader> getReadInfoReaderList()
Returns:

getReadInfoReaderNodeList

public java.util.List<javax.swing.tree.DefaultMutableTreeNode> getReadInfoReaderNodeList()
Returns:

getTargetTreeNode

public javax.swing.tree.DefaultMutableTreeNode getTargetTreeNode()
Returns:

moveFiles

public void moveFiles()
               throws java.lang.Exception
Throws:
java.lang.Exception

removeDescendantNodes

public void removeDescendantNodes()

removeSelectedConnection

public void removeSelectedConnection()
                              throws java.io.IOException
FIXME nicht mehr genutzt seitdem die Connection an der Datei sind anstatt an einem FileSet.

Throws:
java.io.IOException

removeSelectedFiles

public void removeSelectedFiles()
                         throws java.io.IOException
Throws:
java.io.IOException

removeSelectedFileSets

public void removeSelectedFileSets()
                            throws java.io.IOException
Throws:
java.io.IOException

removeSelectedFileSetsDependencies

private void removeSelectedFileSetsDependencies(CRasterFileSet fileSet)
                                         throws java.io.IOException
Parameters:
fileSet -
Throws:
java.io.IOException

removeSelectedInfoReader

public void removeSelectedInfoReader()
                              throws java.io.IOException
Throws:
java.io.IOException

removeSelectedItem

public void removeSelectedItem()
                        throws java.io.IOException
Throws:
java.io.IOException

removeSelectedItems

public void removeSelectedItems()
                         throws java.io.IOException
Throws:
java.io.IOException

removeSelectedOptions

public void removeSelectedOptions()
                           throws java.io.IOException
Throws:
java.io.IOException

renameSelected

public void renameSelected()
                    throws java.lang.Exception
Throws:
java.lang.Exception

setTargetTreePath

public void setTargetTreePath(javax.swing.tree.DefaultMutableTreeNode targetTreeNode)
Parameters:
targetTreeNode -