com.ibm.ccd.ui.taglib.dataobjects
Class SelectSearchElement

java.lang.Object
  extended by com.ibm.ccd.ui.taglib.dataobjects.BaseSearchElement
      extended by com.ibm.ccd.ui.taglib.dataobjects.SelectSearchElement
All Implemented Interfaces:
ISeachElement, ISelectListTag, java.lang.Cloneable

public class SelectSearchElement
extends BaseSearchElement
implements java.lang.Cloneable

SearchElement which represents the Select Search Objects

Since:
Iteration 2
Version:
1.0

Constructor Summary
SelectSearchElement()
          Construcs an emptry SelectSearchElement object
SelectSearchElement(java.lang.String aElementName, int aDefaultValueIndex, NVPair[] possibleValues, java.lang.String aDefaultOperator, java.util.HashMap aOperatorsMap)
          Constructs the SelectSearchElement for the specified name, defaault value index,possible values, default operator and operatormap This constructor sets the mandatory presence as true and defaultable as false.
SelectSearchElement(java.lang.String aElementName, int aDefaultValueIndex, NVPair[] possibleValues, java.lang.String aDefaultOperator, java.util.HashMap aOperatorsMap, boolean aIsMandatory, boolean aIsDefaultable)
          Constructs the SelectSearchElement for the specified name, defaault value index,possible values, default operator,operatormap ,mandatory and defaultable flags
 
Method Summary
 java.lang.Object clone()
           
 int getDefaultIndex()
          get the default index
 NVPair[] getPossibleValues()
          Gets the possibleValuesList
 int getSelectedIndex()
          get the seletec index
 void setDefaultIndex(int aDefaultValueIndex)
          assign the default index
 void setPossibleValues(NVPair[] possibleValues)
          Sets the possibleValuesList
 void setSelectedIndex(int aSelectedValueIndex)
          assigning the index
 void setValue(java.lang.String aSelectedValueIndexStr)
          assigning the index value
 
Methods inherited from class com.ibm.ccd.ui.taglib.dataobjects.BaseSearchElement
getChildElement, getDefaultOperator, getDisplayName, getID, getIsDisplayable, getIsSortable, getListBoxIndex, getName, getOperatorID, getOperatorsMap, getSelectedDisplayValue, getSelectedOperator, getSelectedValue, getType, getWpcAttribute, getWpcAttributeType, isDefaultable, isMandatory, isSearchable, isSelected, setChildElement, setDefaultable, setDefaultOperatorID, setDisplayName, setID, setIsDisplayable, setIsSortable, setListBoxIndex, setMandatory, setName, setOperatorID, setOperatorMap, setSearchable, setSelectedOperator, setSelectedOperator, setSelectedValue, setType, setWpcAttribute, setWpcAttributeType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectSearchElement

public SelectSearchElement()
Construcs an emptry SelectSearchElement object


SelectSearchElement

public SelectSearchElement(java.lang.String aElementName,
                           int aDefaultValueIndex,
                           NVPair[] possibleValues,
                           java.lang.String aDefaultOperator,
                           java.util.HashMap aOperatorsMap)
Constructs the SelectSearchElement for the specified name, defaault value index,possible values, default operator and operatormap This constructor sets the mandatory presence as true and defaultable as false.

Parameters:
aElementName - - The name of the select search element
aDefaultValueIndex - - The default selected Index
possibleValues - - The possible select Values, whcih should contain the tagAttribueData Objects
aDefaultOperator - - The default operator
aOperatorsMap - - The available operators map

SelectSearchElement

public SelectSearchElement(java.lang.String aElementName,
                           int aDefaultValueIndex,
                           NVPair[] possibleValues,
                           java.lang.String aDefaultOperator,
                           java.util.HashMap aOperatorsMap,
                           boolean aIsMandatory,
                           boolean aIsDefaultable)
Constructs the SelectSearchElement for the specified name, defaault value index,possible values, default operator,operatormap ,mandatory and defaultable flags

Parameters:
aElementName - - The name of the select search element
aDefaultValueIndex - - The default selected Index
possibleValues - - The possible select Values, whcih should contain the tagAttribueData Objects
aDefaultOperator - - The default operator
aOperatorsMap - - The available operators map
aIsMandatory - - The mandatory presence of this element
aIsDefaultable - - The defaultability of this element
Method Detail

setSelectedIndex

public void setSelectedIndex(int aSelectedValueIndex)
assigning the index

Parameters:
aSelectedValueIndex - index value

setValue

public void setValue(java.lang.String aSelectedValueIndexStr)
assigning the index value

Parameters:
aSelectedValueIndexStr - index value

setDefaultIndex

public void setDefaultIndex(int aDefaultValueIndex)
assign the default index

Parameters:
aDefaultValueIndex -

getPossibleValues

public NVPair[] getPossibleValues()
Gets the possibleValuesList

Returns:
Returns a ArrayList

setPossibleValues

public void setPossibleValues(NVPair[] possibleValues)
Sets the possibleValuesList

Parameters:
possibleValues - The possibleValuesList to set

getSelectedIndex

public int getSelectedIndex()
get the seletec index

Returns:
int

getDefaultIndex

public int getDefaultIndex()
get the default index

Returns:
int

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class BaseSearchElement
Throws:
java.lang.CloneNotSupportedException