com.plumtree.xpshared.htmlconstructs
Class PTDynamicQueryTable

java.lang.Object
  extended by com.plumtree.xpshared.htmlconstructs.PTDynamicQueryTable

public class PTDynamicQueryTable
extends java.lang.Object

Author:
sample This class generates html necessary to construct a table containing DIVs of table rows that are revealed and hidden from the last visible row of the table. A total of five calls will generate all of the necessary elements: 1) setBlankQueryCondition(PTQueryCondition) // defines the row template 2) generateTable (numberOfRows) // gets a table of hidden rows 3) getJavaScriptFunctions() // gets necessary script elements 4) getAddConditionButton(strAdd) // button to reveal a row 5) getRemoveLastConditionButton(strRemove) // button to hide last row The "Add Condition" and "Remove Last Condition" buttons must be retrieved with separate calls.

Constructor Summary
PTDynamicQueryTable(java.lang.String strName, int Depth)
          Creates a new PTDynamicQueryTable object.
 
Method Summary
static void AddGlobalElements(java.lang.String strActiveClause, int groupCount, HTMLElementCollection result)
           
 void addTableToCollection(HTMLElementCollection result)
           
static void AddTopLevelSearchBoxAndOperator(java.lang.String searchstring, boolean AllMustPass, HTMLElementCollection result)
           
static HTMLElement GetAddConditionButton(java.lang.String strLabel)
           
static HTMLElement GetAddNewClauseButton(java.lang.String strLabel)
           
 boolean GetAllMustPass()
           
 PTQueryCondition GetDefinedQueryCondition(int iIndex)
           
static HTMLElement GetJavaScript(java.lang.String submitString)
           
static HTMLElement GetRemoveClauseButton(java.lang.String strLabel)
           
static HTMLElement GetRemoveLastConditionButton(java.lang.String strLabel)
           
 void loadDefinedQueryCondition(PTQueryCondition qc)
           
 void removeDefinedQueryCondition(int iIndex)
           
 void setAllMustPass(boolean bOperator)
           
 void setBlankQueryCondition(PTQueryCondition qc)
           
 void setTableSize(int nRows)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTDynamicQueryTable

public PTDynamicQueryTable(java.lang.String strName,
                           int Depth)
Creates a new PTDynamicQueryTable object.

Parameters:
strName -
Depth -
Method Detail

setAllMustPass

public void setAllMustPass(boolean bOperator)
Parameters:
bOperator -

setBlankQueryCondition

public void setBlankQueryCondition(PTQueryCondition qc)
Parameters:
qc -

setTableSize

public void setTableSize(int nRows)
Parameters:
nRows -
Throws:
XPException

AddGlobalElements

public static void AddGlobalElements(java.lang.String strActiveClause,
                                     int groupCount,
                                     HTMLElementCollection result)
Parameters:
strActiveClause -
groupCount -
result -
Throws:
java.lang.Exception

AddTopLevelSearchBoxAndOperator

public static void AddTopLevelSearchBoxAndOperator(java.lang.String searchstring,
                                                   boolean AllMustPass,
                                                   HTMLElementCollection result)
Parameters:
searchstring -
AllMustPass -
result -
Throws:
java.lang.Exception

GetAddConditionButton

public static HTMLElement GetAddConditionButton(java.lang.String strLabel)
Parameters:
strLabel -
Returns:
Throws:
java.lang.Exception

GetAddNewClauseButton

public static HTMLElement GetAddNewClauseButton(java.lang.String strLabel)
Parameters:
strLabel -
Returns:
Throws:
java.lang.Exception

GetAllMustPass

public boolean GetAllMustPass()
Returns:

GetDefinedQueryCondition

public PTQueryCondition GetDefinedQueryCondition(int iIndex)
Parameters:
iIndex -
Returns:
Throws:
XPException

GetJavaScript

public static HTMLElement GetJavaScript(java.lang.String submitString)
Parameters:
submitString -
Returns:
Throws:
java.lang.Exception

GetRemoveClauseButton

public static HTMLElement GetRemoveClauseButton(java.lang.String strLabel)
Parameters:
strLabel -
Returns:
Throws:
java.lang.Exception

GetRemoveLastConditionButton

public static HTMLElement GetRemoveLastConditionButton(java.lang.String strLabel)
Parameters:
strLabel -
Returns:
Throws:
java.lang.Exception

addTableToCollection

public void addTableToCollection(HTMLElementCollection result)
Parameters:
result -
Throws:
XPException

loadDefinedQueryCondition

public void loadDefinedQueryCondition(PTQueryCondition qc)
Parameters:
qc -

removeDefinedQueryCondition

public void removeDefinedQueryCondition(int iIndex)
Parameters:
iIndex -
Throws:
XPException



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.