net.sf.jfilesync.engine
Class TFileData

java.lang.Object
  extended by net.sf.jfilesync.engine.TFileData
All Implemented Interfaces:
java.lang.Cloneable

public class TFileData
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
private  java.util.List<TFileProperties> fileProperties
           
private  int lastSortDirection
           
private  int lastSortedProperty
           
private  int[] supportedProperties
           
 
Constructor Summary
TFileData()
           
 
Method Summary
 void addFileProperties(TFileProperties fileProp)
           
 java.lang.Object clone()
           
 int getCurrentSortedProperty()
          returns the last sorted property or -1 if never sorted
 java.util.List<TFileProperties> getFileProperties()
           
 TFileProperties getFileProperties(int pos)
           
 TFileProperties[] getFilePropertiesArray()
           
 int getLastSortDirection()
          returns the last used direction to sort or -1 if never sorted
 int getNumberOfFilePropertiesToPublish()
           
 int getNumberofFiles()
           
 int getPropertyAtColumn(int colIndex)
           
 long getSizeofFilesInKByte()
           
protected  void setCurrentSortedProperty(int property, int direction)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileProperties

private final java.util.List<TFileProperties> fileProperties

supportedProperties

private int[] supportedProperties

lastSortedProperty

private int lastSortedProperty

lastSortDirection

private int lastSortDirection
Constructor Detail

TFileData

public TFileData()
Method Detail

addFileProperties

public void addFileProperties(TFileProperties fileProp)

getNumberOfFilePropertiesToPublish

public int getNumberOfFilePropertiesToPublish()

getNumberofFiles

public int getNumberofFiles()

getSizeofFilesInKByte

public long getSizeofFilesInKByte()

getFileProperties

public TFileProperties getFileProperties(int pos)

getPropertyAtColumn

public int getPropertyAtColumn(int colIndex)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getFileProperties

public java.util.List<TFileProperties> getFileProperties()

getFilePropertiesArray

public TFileProperties[] getFilePropertiesArray()

getCurrentSortedProperty

public int getCurrentSortedProperty()
returns the last sorted property or -1 if never sorted

See Also:
TFileDataSorter

getLastSortDirection

public int getLastSortDirection()
returns the last used direction to sort or -1 if never sorted

See Also:
TFileDataSorter

setCurrentSortedProperty

protected void setCurrentSortedProperty(int property,
                                        int direction)