|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleFilterLogicInterface
This interface is intended to provide list-like access to the methods required by the selector.
Field Summary | |
---|---|
static int |
ADD_AT_END
Constant to specify for the index of the 'addLeafAt' method when the new node should be added at the end of the list of leaves. |
Method Summary | |
---|---|
boolean |
addLeaf(int index,
FilterLogicTestNodeInterface leaf)
Adds the given test node at the specified index. |
boolean |
canGroupLeaves(int startIndex,
int endIndex)
Returns TRUE if the leaves (or the groups they're members of) at the given indices can be grouped together. |
void |
clear()
Removes all existing filter logic from the model. |
ConditionalRelationType |
getConditionalRelationType(int index)
Gets the logical relationship between the leaf at the given index and the leaf at the next index. |
FilterLogicTestNodeInterface |
getLeaf(int index)
|
int |
getLeafCount()
|
boolean |
groupLeaves(int startIndex,
int endIndex)
Groups the leaves (including any groups they are members of) at the specified locations together (along with any nodes in between them). |
boolean |
isLeafGrouped(int index)
Returns TRUE if the leaf at the given index is part of a group. |
boolean |
isLeafNegated(int index)
Returns TRUE if the leaf at the given index has been negated, FALSE otherwise. |
boolean |
isModifiable()
A flag specifying whether the tree can/should be modified. |
boolean |
isModified()
A flag specifying whether the tree has been modified since it was last initialized. |
boolean |
moveLeafDown(int index)
Moves the leaf at the given index down a position in the list of leaves. |
boolean |
moveLeafUp(int index)
Moves the leaf at the given index up a position in the list of leaves. |
void |
refreshFilterList()
Refreshes the list of leaf nodes in the tree. |
FilterLogicTestNodeInterface |
removeLeaf(int index)
Removes the test node at the given index. |
void |
setConditionalRelationType(int index,
ConditionalRelationType value)
Sets the logical relationship between the leaf at the given index and the leaf at the next index. |
boolean |
setFilterObject(java.lang.Object filterObject)
|
FilterLogicTestNodeInterface |
setLeaf(int index,
FilterLogicTestNodeInterface leaf)
Sets the test node at the given index. |
void |
setLeafNegated(int index,
boolean value)
Sets the negation flag for the leaf at the given index. |
boolean |
splitOnMember(int indexOfMember)
Splits the inner-most group containing the leaf at the specified index. |
Methods inherited from interface com.sas.dataselectors.filters.FilterLogicListInterface |
---|
getFilterList, getFilterListDescription, getFilterListLabel |
Field Detail |
---|
static final int ADD_AT_END
Method Detail |
---|
boolean isLeafGrouped(int index)
index
- the index in the list of understood nodes of the leaf to check
FilterLogicTestNodeInterface setLeaf(int index, FilterLogicTestNodeInterface leaf)
index
- the index of the test node, in the list of understood nodes, to be assignedleaf
- the test node to assign to the specified index
FilterLogicTestNodeInterface removeLeaf(int index)
index
- the index of the test node, in the list of understood nodes, to be removed
boolean addLeaf(int index, FilterLogicTestNodeInterface leaf)
index
- the index of the test node, in the list of understood nodes, to be removedleaf
- the test node to add to the filter logic
FilterLogicTestNodeInterface getLeaf(int index)
index
- the index of the leaf to retrieve
void setConditionalRelationType(int index, ConditionalRelationType value)
index
- the index of the first leaf in the pairvalue
- the logical conditionConditionalRelationType getConditionalRelationType(int index)
index
- the index of the first leaf in the pair
void refreshFilterList()
void setLeafNegated(int index, boolean value)
index
- the index of the leaf to modifyvalue
- the new value for the negation flag for that leafboolean isLeafNegated(int index)
index
- the index of the leaf to examine
boolean canGroupLeaves(int startIndex, int endIndex)
startIndex
- the start of the new groupendIndex
- the end of the new group
boolean groupLeaves(int startIndex, int endIndex)
startIndex
- the start of the new groupendIndex
- the end of the new groupboolean splitOnMember(int indexOfMember)
indexOfMember
- the index of a member of the group to be splitboolean moveLeafUp(int index)
index
- the index of the leaf to manipulateboolean moveLeafDown(int index)
index
- the index of the leaf to manipulateboolean isModifiable()
boolean isModified()
void clear()
int getLeafCount()
boolean setFilterObject(java.lang.Object filterObject)
filterObject
-
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |