com.plumtree.portalpages.common.search
Class RepostQueryTable
java.lang.Object
com.plumtree.portalpages.common.search.RepostQueryTable
- All Implemented Interfaces:
- IFilterQueryTable
public class RepostQueryTable
- extends java.lang.Object
- implements IFilterQueryTable
- Author:
- MikeS, modified by CraigS
Similar to DynamicQueryTable, but avoids use of javascript to
hide or reveal individual statement rows.
A total of five calls will generate all of the necessary
elements:
1) SetBlankQueryCondition(QueryCondition) // 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.
Method Summary |
static void |
AddGlobalElements(java.lang.String strActiveClause,
int groupCount,
HTMLElementCollection result)
|
void |
addTableToCollection(HTMLElementCollection result,
boolean showErrorsNextToInputs,
JSDateTimePickerMgr jsDateTimePickerMgr,
PageMgr _ptPageMgr)
displays the table of property conditions in the search criteria filter |
static void |
AddTopLevelSearchBoxAndOperator(java.lang.String searchstring,
boolean AllMustPass,
boolean useVerboseTerminology,
HTMLElement textboxLabel,
HTMLElementCollection result,
java.lang.String strLang,
AActivitySpace asOwner)
Displays the HTML for "return results based on" and search text box section in the search criteria filter |
static void |
AddTopLevelSearchBoxAndOperator(java.lang.String searchstring,
boolean AllMustPass,
HTMLElementCollection result,
java.lang.String strLang,
AActivitySpace asOwner)
|
static HTMLElement |
GetAddConditionButton(java.lang.String strLabel,
java.lang.String strLang)
|
static HTMLElement |
GetAddNewClauseButton(java.lang.String strLabel,
java.lang.String strLang)
|
boolean |
GetAllMustPass()
|
QueryCondition |
GetDefinedQueryCondition(int iIndex)
|
HTMLTableRow |
GetHeaderRow()
|
static HTMLElement |
GetJavaScript(java.lang.String submitString)
|
static HTMLElement |
GetRemoveClauseButton(java.lang.String strLabel,
java.lang.String strLang)
|
static HTMLElement |
GetRemoveLastConditionButton(java.lang.String strLabel,
java.lang.String strLang)
|
void |
loadDefinedQueryCondition(QueryCondition qc)
|
void |
removeDefinedQueryCondition(int iIndex)
|
void |
SetAllMustPass(boolean bOperator)
|
void |
SetBlankQueryCondition(QueryCondition qc)
|
void |
SetExtraRowBelowGroupHeader(HTMLElement e)
|
void |
SetExtraRowBelowGroupHeader(java.lang.String s)
|
void |
SetHideGroupHeaderRow(boolean hide)
|
void |
SetLabel(java.lang.String label)
|
void |
SetSuppressCheckbox(boolean b)
|
void |
SetTableSize(int nRows)
|
void |
SetUseVerboseTerminology(boolean b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepostQueryTable
public RepostQueryTable(java.lang.String strName,
int Depth,
AActivitySpace owner)
- Creates a new RepostQueryTable object.
- Parameters:
strName
- Depth
- owner
-
SetAllMustPass
public void SetAllMustPass(boolean bOperator)
- Specified by:
SetAllMustPass
in interface IFilterQueryTable
- Parameters:
bOperator
-
SetBlankQueryCondition
public void SetBlankQueryCondition(QueryCondition qc)
- Specified by:
SetBlankQueryCondition
in interface IFilterQueryTable
- Parameters:
qc
-
SetExtraRowBelowGroupHeader
public void SetExtraRowBelowGroupHeader(java.lang.String s)
- Specified by:
SetExtraRowBelowGroupHeader
in interface IFilterQueryTable
- Parameters:
s
-
SetExtraRowBelowGroupHeader
public void SetExtraRowBelowGroupHeader(HTMLElement e)
- Specified by:
SetExtraRowBelowGroupHeader
in interface IFilterQueryTable
- Parameters:
s
-
SetHideGroupHeaderRow
public void SetHideGroupHeaderRow(boolean hide)
- Specified by:
SetHideGroupHeaderRow
in interface IFilterQueryTable
SetLabel
public void SetLabel(java.lang.String label)
- Specified by:
SetLabel
in interface IFilterQueryTable
- Parameters:
label
-
SetSuppressCheckbox
public void SetSuppressCheckbox(boolean b)
- Specified by:
SetSuppressCheckbox
in interface IFilterQueryTable
- Parameters:
b
-
SetTableSize
public void SetTableSize(int nRows)
- Specified by:
SetTableSize
in interface IFilterQueryTable
- Parameters:
nRows
-
SetUseVerboseTerminology
public void SetUseVerboseTerminology(boolean b)
- Specified by:
SetUseVerboseTerminology
in interface IFilterQueryTable
- Parameters:
b
-
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,
java.lang.String strLang,
AActivitySpace asOwner)
- Parameters:
searchstring
- AllMustPass
- result
-
- Throws:
java.lang.Exception
AddTopLevelSearchBoxAndOperator
public static void AddTopLevelSearchBoxAndOperator(java.lang.String searchstring,
boolean AllMustPass,
boolean useVerboseTerminology,
HTMLElement textboxLabel,
HTMLElementCollection result,
java.lang.String strLang,
AActivitySpace asOwner)
- Displays the HTML for "return results based on" and search text box section in the search criteria filter
- Parameters:
searchstring
- AllMustPass
- useVerboseTerminology
- textboxLabel
- result
-
- Throws:
java.lang.Exception
GetAddConditionButton
public static HTMLElement GetAddConditionButton(java.lang.String strLabel,
java.lang.String strLang)
- Parameters:
strLabel
-
- Returns:
-
- Throws:
java.lang.Exception
GetAddNewClauseButton
public static HTMLElement GetAddNewClauseButton(java.lang.String strLabel,
java.lang.String strLang)
- Parameters:
strLabel
-
- Returns:
-
- Throws:
java.lang.Exception
GetAllMustPass
public boolean GetAllMustPass()
- Specified by:
GetAllMustPass
in interface IFilterQueryTable
- Returns:
GetDefinedQueryCondition
public QueryCondition GetDefinedQueryCondition(int iIndex)
- Specified by:
GetDefinedQueryCondition
in interface IFilterQueryTable
- Parameters:
iIndex
-
- Returns:
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,
java.lang.String strLang)
- Parameters:
strLabel
-
- Returns:
-
- Throws:
java.lang.Exception
GetRemoveLastConditionButton
public static HTMLElement GetRemoveLastConditionButton(java.lang.String strLabel,
java.lang.String strLang)
- Parameters:
strLabel
-
- Returns:
-
- Throws:
java.lang.Exception
addTableToCollection
public void addTableToCollection(HTMLElementCollection result,
boolean showErrorsNextToInputs,
JSDateTimePickerMgr jsDateTimePickerMgr,
PageMgr _ptPageMgr)
- displays the table of property conditions in the search criteria filter
- Specified by:
addTableToCollection
in interface IFilterQueryTable
- Parameters:
result
- showErrorsNextToInputs
-
GetHeaderRow
public HTMLTableRow GetHeaderRow()
loadDefinedQueryCondition
public void loadDefinedQueryCondition(QueryCondition qc)
- Specified by:
loadDefinedQueryCondition
in interface IFilterQueryTable
- Parameters:
qc
-
removeDefinedQueryCondition
public void removeDefinedQueryCondition(int iIndex)
- Specified by:
removeDefinedQueryCondition
in interface IFilterQueryTable
- Parameters:
iIndex
-