|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.dataselectors.filters.DefaultFilterValueList
@SASScope(value="ALL") public class DefaultFilterValueList
The default implementation of FilterValuesInterface, this class is used by the filter model to hold and maintain a list of values.
| Field Summary | |
|---|---|
protected java.util.Collection |
_itemValues
The list of values. |
protected java.util.Iterator |
_itemValuesIterator
An iterator used internal to access values in the list. |
protected java.lang.String |
_label
The label for this value list. |
static java.lang.String |
RB_KEY
The resource key prefix used when retrieving properties for this class. |
| Fields inherited from interface com.sas.dataselectors.filters.FilterValuesInterface |
|---|
GETTHRESHHOLDALLVALUES |
| Constructor Summary | |
|---|---|
DefaultFilterValueList(java.util.Collection itemValues)
Constructs a new filter value list holding the contents of the given collection as its initial values. |
|
DefaultFilterValueList(java.lang.Object[] itemValues)
Constructs a new filter value list holding the contents of the given array of objects as its initial values. |
|
| Method Summary | |
|---|---|
java.util.List |
getFirstValues(long lThreshold)
Returns the first group in a list of objects for an Item. |
java.lang.String |
getListLabel()
Returns the current label for this list of values. |
java.util.List |
getNextValues(long lThreshold)
Returns the next group in a list of objects for an Item. |
boolean |
hasMoreValues()
Returns TRUE as long as there remain values to be retrieved from the datasource. |
void |
setListLabel(java.lang.String value)
Allows setting a label for this list of values. |
java.lang.String |
toString()
Returns a text label for this list. |
| Field Detail |
|---|
public static java.lang.String RB_KEY
protected transient java.lang.String _label
protected java.util.Collection _itemValues
protected java.util.Iterator _itemValuesIterator
| Constructor Detail |
|---|
public DefaultFilterValueList(java.util.Collection itemValues)
itemValues - the initial values for the listpublic DefaultFilterValueList(java.lang.Object[] itemValues)
itemValues - the initial values for the list| Method Detail |
|---|
public boolean hasMoreValues()
hasMoreValues in interface FilterValuesInterface
public java.util.List getFirstValues(long lThreshold)
throws DataRetrievalError
getFirstValues in interface FilterValuesInterfacelThreshold - the maximum number of values to return
DataRetrievalError - if an error prevented returning any valuesFilterValuesInterface.GETTHRESHHOLDALLVALUES
public java.util.List getNextValues(long lThreshold)
throws DataRetrievalError
getNextValues in interface FilterValuesInterfacelThreshold - the maximum number of values to return
DataRetrievalError - if an error prevented returning any valuespublic void setListLabel(java.lang.String value)
value - The new label for this listpublic java.lang.String getListLabel()
getListLabel in interface FilterValuesInterfacepublic java.lang.String toString()
toString in class java.lang.Object
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||