com.ds.fw.dv.list
Class FwDVListPropertySort

java.lang.Object
  |
  +--com.ds.fw.types.FwSimpleObject
        |
        +--com.ds.fw.dv.properties.FwDVProperty
              |
              +--com.ds.fw.dv.list.FwDVListPropertySort
All Implemented Interfaces:
java.lang.Cloneable, FwCopyableIF, FwDisplayableIF, FwSimpleObjectIF, java.io.Serializable

public class FwDVListPropertySort
extends FwDVProperty

This class represents the "Sort" option of the edit table. It contains information about which table by which field to be sort and which sort is currently used (which table has to be sorted).

See Also:
Serialized Form

Field Summary
 java.util.Vector columns
          This columns contains the name of a table columns which will be used.
 
Fields inherited from class com.ds.fw.dv.properties.FwDVProperty
active, data, name, viewType
 
Constructor Summary
FwDVListPropertySort()
           
 
Method Summary
 void clearColumns()
          Creates two new vectors for fields and tables.
 long getColumn(int i)
          Gets a column by index.
 int getNBColumns()
          Returns the number all fields for search.
 long getP()
           
 int isValidSort(int s)
          Checks if the given sort index is in the array bounds.
 void setColumn(long columnID)
          Sets a table f1 to be searched by column f.
 void setP(long l)
           
 
Methods inherited from class com.ds.fw.dv.properties.FwDVProperty
get, getActive, getName, getString, getViewType, name, set, setActive, setName, setViewType
 
Methods inherited from class com.ds.fw.types.FwSimpleObject
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, printStackTrace, toString, toStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

columns

public java.util.Vector columns
This columns contains the name of a table columns which will be used.

Constructor Detail

FwDVListPropertySort

public FwDVListPropertySort()
Method Detail

getP

public long getP()

setP

public void setP(long l)

clearColumns

public void clearColumns()
Creates two new vectors for fields and tables.

See Also:
#fields

getNBColumns

public int getNBColumns()
Returns the number all fields for search.


setColumn

public void setColumn(long columnID)
Sets a table f1 to be searched by column f.


getColumn

public long getColumn(int i)
Gets a column by index.

Parameters:
i - Index of a column. If it is not in the array bounds it will be assumed as 0 if lower, otherwise an empty string will be returned.
Returns:
the column

isValidSort

public int isValidSort(int s)
Checks if the given sort index is in the array bounds.

Parameters:
s - the index to be checked
Returns:
1 if the sort is in the bounds, otherwise 0.