com.ds.fw.dv.list
Class FwDVListPropertySearch

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

public class FwDVListPropertySearch
extends FwDVProperty

This class represents the "Search" option of the edit table. It contains information about which table by which field(s) to be searched and it also provides multifield multitable search information.

See Also:
Serialized Form

Field Summary
 java.util.Vector columns
           
 
Fields inherited from class com.ds.fw.dv.properties.FwDVProperty
active, data, name, viewType
 
Constructor Summary
FwDVListPropertySearch()
           
 
Method Summary
 void clearColumns()
          Creates two new vectors for fields and tables.
 long getColumn(int i)
          Gets a column by index.
 java.lang.String getColumnsString()
           
 int getNBColumns()
          Returns the number all fields for search.
 int getNBS1Fields()
          This method returns the number of fields to search by.
 java.lang.String getP()
           
 int getS1Field(int i)
          Gets the field index from the string for multifield and multitable search at possition i.
 com.ds.fw.dv.search.FwDVSearchQuery getSearchQuery()
          This method parses the search data and returns a FwDVSearchQuery object, which is a vector with the search data elements.
 void setColumn(long columnID)
          Sets a table f1 to be searched by column f.
 void setColumnsString(java.lang.String s)
           
 void setP(java.lang.String s)
           
 
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
Constructor Detail

FwDVListPropertySearch

public FwDVListPropertySearch()
Method Detail

getP

public java.lang.String getP()

setP

public void setP(java.lang.String s)

getColumnsString

public java.lang.String getColumnsString()

setColumnsString

public void setColumnsString(java.lang.String s)

getSearchQuery

public com.ds.fw.dv.search.FwDVSearchQuery getSearchQuery()
This method parses the search data and returns a FwDVSearchQuery object, which is a vector with the search data elements.


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

getNBS1Fields

public int getNBS1Fields()
This method returns the number of fields to search by. The returned number is greater or equal to 1.


getS1Field

public int getS1Field(int i)
Gets the field index from the string for multifield and multitable search at possition i.

Parameters:
i - index of the field index to be returned
Returns:
a field index