|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portaluiinfrastructure.filter.QueryCondition
public class QueryCondition
Field Summary | |
---|---|
static java.lang.String |
HTMLHIDDEN_ROWINDEX
|
static java.lang.String |
HTMLHIDDEN_ROWINDEX_ID
|
static int |
IDX_PROPINFO_ID
|
static int |
IDX_PROPINFO_NAME
|
static int |
IDX_PROPINFO_TYPE
|
static int |
IDX_RELATIVEDATA_MAX
|
static int |
IDX_RELATIVEDATA_UNITS
|
static int |
IDX_RELATIVEDATA_VALUE
|
static java.lang.String |
JAVASCRIPT_GROUP_CHOOSER_GETVALUE
|
static java.lang.String |
JAVASCRIPT_OPEN_GROUP_CHOOSER
|
static long |
MAX_VALUE_DAY
|
static long |
MAX_VALUE_HOUR
|
static long |
MAX_VALUE_MIN
|
static long |
MAX_VALUE_WEEK
|
static int |
MS_PER_DAY
|
static int |
MS_PER_HOUR
|
static int |
MS_PER_MIN
|
static int |
MS_PER_WEEK
|
static java.lang.String |
SUBSPACE_KEY_GROUP_CHOOSER
|
Constructor Summary | |
---|---|
QueryCondition(AActivitySpace owner)
Creates a new QueryCondition object. |
|
QueryCondition(AActivitySpace owner,
IPTSession session)
Creates a new QueryCondition object with a reference to the current user's session. |
Method Summary | |
---|---|
void |
AddProperty(java.lang.String propName,
int propID,
int propType)
Tell this QueryCondition about another property that could be selected. |
boolean |
ContainsProperty(int propID)
Helper method to lookup a property given its ID |
protected HTMLAnchor |
GetGroupChooserOpenAnchor(java.lang.String _sGroupIndex,
java.lang.String _sRowIndex,
java.lang.String sCurValue)
Returns anchor for add button |
java.lang.Object[][] |
GetPropInfo()
The property IDs, Names, & Types that are in this condition. |
int |
GetStatementProperty()
|
HTMLElement |
GetTableRow(java.lang.String strTag,
java.lang.String strStatementID,
boolean showError,
boolean showRemovalCheckbox,
JSDateTimePickerMgr jsDateTimePickerMgr,
PageMgr _ptPageMgr,
boolean jitDatePicker)
|
HTMLElement |
GetTableRow(java.lang.String strPrefix,
java.lang.String strTag,
java.lang.String strStatementID,
boolean showError,
boolean showRemovalCheckbox,
JSDateTimePickerMgr jsDateTimePickerMgr,
PageMgr _ptPageMgr,
boolean jitDatePicker)
|
int |
GetTypeExpectedForProperty(int propID)
Helper method to lookup a property type given its ID |
QueryCondition |
MakeDuplicate()
Creates a deep copy of this QueryCondition. |
void |
PadCheckBox(boolean val)
|
void |
SetDivID(java.lang.String divID)
Set the dp div id. |
void |
SetFormName(java.lang.String formname)
Set the form name. |
void |
SetIsDynamicGroupView(boolean dynGroupView)
Is this QueryCondition part of a dynamic group view? If so, we should use the proper operators for that UI. |
void |
SetSelections(int propID,
int iOperator,
java.lang.String strValue)
Sets this condition to be selected to the indicated property ID, operator, and String value. |
void |
SetStyleClass(PTStyleClass styleClass)
Set a background style class for this row. |
void |
SetVisible(boolean visible)
Make this QueryCondition visible or invisible the next time the page is rendered |
java.lang.String |
ValidateSelections()
Checks that the current selections are valid and returns a localized error string if they are not |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JAVASCRIPT_OPEN_GROUP_CHOOSER
public static final java.lang.String JAVASCRIPT_GROUP_CHOOSER_GETVALUE
public static final java.lang.String HTMLHIDDEN_ROWINDEX
public static final java.lang.String HTMLHIDDEN_ROWINDEX_ID
public static final java.lang.String SUBSPACE_KEY_GROUP_CHOOSER
public static final int MS_PER_MIN
public static final int MS_PER_HOUR
public static final int MS_PER_DAY
public static final int MS_PER_WEEK
public static final long MAX_VALUE_MIN
public static final long MAX_VALUE_HOUR
public static final long MAX_VALUE_DAY
public static final long MAX_VALUE_WEEK
public static final int IDX_RELATIVEDATA_UNITS
public static final int IDX_RELATIVEDATA_VALUE
public static final int IDX_RELATIVEDATA_MAX
public static final int IDX_PROPINFO_ID
public static final int IDX_PROPINFO_NAME
public static final int IDX_PROPINFO_TYPE
Constructor Detail |
---|
public QueryCondition(AActivitySpace owner)
owner
- owning activity spacepublic QueryCondition(AActivitySpace owner, IPTSession session)
owner
- owning activity spacesession
- the current user's sessionMethod Detail |
---|
public void SetFormName(java.lang.String formname)
form
- namepublic void SetDivID(java.lang.String divID)
div
- idpublic void SetStyleClass(PTStyleClass styleClass)
styleClass
- desired style classpublic void PadCheckBox(boolean val)
public void SetVisible(boolean visible)
visible
- true for visible, false for invisiblepublic void SetIsDynamicGroupView(boolean dynGroupView)
dynGroupView
- true for dgroup view, false for search & friendspublic void SetSelections(int propID, int iOperator, java.lang.String strValue)
propID
- property ID to selectoperator
- operator to select, must be valid for given property IDstrValue
- value to selectpublic QueryCondition MakeDuplicate()
public HTMLElement GetTableRow(java.lang.String strTag, java.lang.String strStatementID, boolean showError, boolean showRemovalCheckbox, JSDateTimePickerMgr jsDateTimePickerMgr, PageMgr _ptPageMgr, boolean jitDatePicker)
strTag
- strStatementID
- showError
-
public HTMLElement GetTableRow(java.lang.String strPrefix, java.lang.String strTag, java.lang.String strStatementID, boolean showError, boolean showRemovalCheckbox, JSDateTimePickerMgr jsDateTimePickerMgr, PageMgr _ptPageMgr, boolean jitDatePicker)
strTag
- strStatementID
- showError
-
public java.lang.String ValidateSelections()
public void AddProperty(java.lang.String propName, int propID, int propType)
propName
- Name of property (localized)propID
- ID of propertypropType
- Type of property (PT_PROPERTY_TYPES)public int GetTypeExpectedForProperty(int propID)
public int GetStatementProperty()
public boolean ContainsProperty(int propID)
public java.lang.Object[][] GetPropInfo()
protected HTMLAnchor GetGroupChooserOpenAnchor(java.lang.String _sGroupIndex, java.lang.String _sRowIndex, java.lang.String sCurValue)
_nRowIndex
- Current row index
java.lang.Exception
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |