|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.globalSearch.ui.commonTree.BaseTreeItem oracle.apps.fnd.applcore.globalSearch.ui.commonTree.DateRangeTreeItem
public class DateRangeTreeItem
A node in a JSF tree, used in the common filters tree as a date range.
Nested Class Summary | |
---|---|
static class |
DateRangeTreeItem.RangeType
Type of Date to use in a date range. |
Constructor Summary | |
---|---|
DateRangeTreeItem(java.lang.String displayValue,
DateRangeTreeItem.RangeType type)
Construct this Date Range Tree Item. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.Date |
getDateFrom()
Get the date from for this custom range. |
java.util.Date |
getDateTo()
Get the date to for this custom range. |
SearchFilterItem.FilterType |
getFilterType()
What type of Filter type this Tree Item represents. |
java.lang.String |
getFromValueAsString()
Get the From value as a String in the format that SES likes - MM/dd/yyyy. |
java.lang.String |
getToValueAsString()
Get the To value as a String in the format that SES likes - MM/dd/yyyy. |
DateRangeTreeItem.RangeType |
getType()
Get the type of this Range. |
int |
hashCode()
|
boolean |
isCustomRange()
Does this TreeItem represent a custom range, if so more ui will be needed to render from/to values in the ui, instead of a single selectable string. |
boolean |
isSelectable()
Is this node selectedable. |
boolean |
isSelected()
Is this node selected. |
boolean |
isSomeUserData()
Does this node have some user-data? This hint allows the tree to auto-disclose some nodes with user-modified data. |
void |
setDateFrom(java.util.Date dateFrom)
Set the date from for this custom range. |
void |
setDateTo(java.util.Date dateTo)
Set the date to for this custom range. |
static DateRangeTreeItem |
toDateRangeTreeItem(java.util.List<BaseTreeItem> commonTreeItems,
java.lang.String dateFrom,
java.lang.String dateTo,
java.util.List<PersistentSearchFilter> psf)
A factory method to turn a date range (possibly open ended) into one of our Range Types. |
SearchFilterItem |
toSearchFilterItem()
Create an appropriate SearchFilterItem for this tree item.. |
Methods inherited from class oracle.apps.fnd.applcore.globalSearch.ui.commonTree.BaseTreeItem |
---|
getChildren, getDefaultCommonTreeItems, getDisplayValue, getToolTip, getValue, isBranch |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateRangeTreeItem(java.lang.String displayValue, DateRangeTreeItem.RangeType type)
displayValue
- value to be shown to the user.type
- enumerated type.Method Detail |
---|
public DateRangeTreeItem.RangeType getType()
public boolean isCustomRange()
isCustomRange
in class BaseTreeItem
public static DateRangeTreeItem toDateRangeTreeItem(java.util.List<BaseTreeItem> commonTreeItems, java.lang.String dateFrom, java.lang.String dateTo, java.util.List<PersistentSearchFilter> psf)
commonTreeItems
- The Date Range tree items in the tree. One of these
will be returned indicating the appropriate selection.dateFrom
- custom date from, possibly null.dateTo
- custom date to, possibly null.psf
- persistent search filters containing storage of which filter was
selected by the user.
public SearchFilterItem toSearchFilterItem()
toSearchFilterItem
in class BaseTreeItem
public SearchFilterItem.FilterType getFilterType()
getFilterType
in class BaseTreeItem
public java.lang.String getFromValueAsString()
public java.lang.String getToValueAsString()
public boolean isSelected()
isSelected
in class BaseTreeItem
public boolean isSelectable()
isSelectable
in class BaseTreeItem
public void setDateFrom(java.util.Date dateFrom)
dateFrom
- date from.public java.util.Date getDateFrom()
public void setDateTo(java.util.Date dateTo)
dateTo
- date to.public java.util.Date getDateTo()
public boolean isSomeUserData()
isSomeUserData
in class BaseTreeItem
public int hashCode()
hashCode
in class BaseTreeItem
public boolean equals(java.lang.Object obj)
equals
in class BaseTreeItem
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |