|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.tree.SimpleFilterLogicTreeAdapter
public class SimpleFilterLogicTreeAdapter
TODO Supply JavaDoc for class
Field Summary |
---|
Fields inherited from interface com.sas.dataselectors.filters.SimpleFilterLogicTreeInterface |
---|
AND, OR |
Constructor Summary | |
---|---|
SimpleFilterLogicTreeAdapter(SimpleFilterLogicTree logic)
|
|
SimpleFilterLogicTreeAdapter(SimpleFilterLogicTree logic,
com.sas.util.transforms.TransformInterface inTransform,
com.sas.util.transforms.TransformInterface outTransform)
|
Method Summary | |
---|---|
void |
add(FilterLogicBaseNodeInterface rootNode)
Appends the given logic tree structure to this one. |
void |
add(SimpleFilterLogicTreeInterface tree)
Appends the given logic tree to this one. |
void |
addLeafAt(int index,
FilterLogicTestNodeInterface leaf)
Add a new test node at the given index in the list of understood test nodes. |
boolean |
areAllNodesUnderstood()
Returns TRUE if all leaf nodes in the tree have been marked as "understood", FALSE otherwise. |
void |
cancel(java.lang.Object initialFilter)
Returns the filter model to the state specified by the given filter object. |
boolean |
canGroupLeaves(int firstIndex,
int lastIndex)
Returns TRUE if the leaves (or the groups they're members of) at the given indices can be grouped together. |
void |
clear()
Removes all leaves from the tree and collapses any remaining support structure. |
boolean |
commitTree()
Commits any changes in the tree to the underlying native filter model. |
SimpleFilterLogicTreeInterface |
copy()
Constructs and returns a copy of this tree. |
SimpleFilterLogicTreeInterface |
copy(boolean copyTestNodes)
Copies the tree and optionally makes duplicates of the test nodes within it. |
FilterItemInterface |
findMatchingFilterItem(java.lang.Object itemObject)
Attempts to locate and return the filter model object that matches the specified search item from the native model. |
int |
getFirstLeafInGroup(int memberIndex)
Returns the index of the first leaf in the group that includes the leaf at the given index. |
com.sas.util.transforms.TransformInterface |
getInputTransform()
|
int |
getLastLeafInGroup(int memberIndex)
Returns the index of the last leaf in the group that includes the leaf at the given index. |
FilterLogicTestNodeInterface |
getLeafAt(int index)
Returns the test node at the given index. |
java.lang.String |
getLeafConditionalRelationType(int index)
Returns the conditional relation type (AND/OR) between the leaf at the given index and the leaf at the next index. |
SimpleFilterLogicTree |
getLogicTree()
|
com.sas.util.transforms.TransformInterface |
getOutputTransform()
|
FilterLogicBaseNodeInterface |
getRoot()
Returns the root node of the logic tree. |
java.lang.Object |
getRootFilterItem()
Returns the root native filter object. |
java.util.List |
getUnderstoodTestNodeList()
Returns the list of understood nodes in the tree. |
void |
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 or group that leaf is a member of is negated, FALSE otherwise. |
void |
moveLeafDown(int index)
Moves the leaf at the given index down one. |
void |
moveLeafUp(int index)
Moves the leaf at the given index up one. |
void |
refreshNodeList()
Refreshes the list of leaf nodes in the tree. |
FilterLogicTestNodeInterface |
removeLeafAt(int index)
Removes the test node at the given index. |
void |
setFilterObject(java.lang.Object filterObject)
|
void |
setInputTransform(com.sas.util.transforms.TransformInterface inTransform)
|
FilterLogicTestNodeInterface |
setLeafAt(int index,
FilterLogicTestNodeInterface leaf)
Sets the test node at the given index in the list of understood test nodes. |
void |
setLeafConditionalRelationType(int index,
java.lang.String value)
Sets the logical relationship between the leaf at the given index and the leaf at the next index. |
void |
setLeafNegated(int index,
boolean value)
Sets whether the leaf at the given index or group that leaf is a member of is negated. |
void |
setLogicTree(SimpleFilterLogicTree logicTree)
|
void |
setOutputTransform(com.sas.util.transforms.TransformInterface outTransform)
|
FilterLogicBaseNodeInterface |
setRoot(FilterLogicBaseNodeInterface root)
Sets the root tree node for this tree. |
void |
splitGroup(int indexOfMember)
Splits the inner-most group containing the member at the specified index. |
Constructor Detail |
---|
public SimpleFilterLogicTreeAdapter(SimpleFilterLogicTree logic)
public SimpleFilterLogicTreeAdapter(SimpleFilterLogicTree logic, com.sas.util.transforms.TransformInterface inTransform, com.sas.util.transforms.TransformInterface outTransform)
Method Detail |
---|
public void addLeafAt(int index, FilterLogicTestNodeInterface leaf)
SimpleFilterLogicTreeInterface
addLeafAt
in interface SimpleFilterLogicTreeInterface
index
- the index in the list at which the new node will be insertedleaf
- the new node to addpublic FilterLogicTestNodeInterface setLeafAt(int index, FilterLogicTestNodeInterface leaf)
SimpleFilterLogicTreeInterface
setLeafAt
in interface SimpleFilterLogicTreeInterface
index
- the index in the list at which the new node will be setleaf
- the new node to put at the given index
public FilterLogicTestNodeInterface removeLeafAt(int index)
SimpleFilterLogicTreeInterface
removeLeafAt
in interface SimpleFilterLogicTreeInterface
index
- the index of the test node, in the list of understood nodes, to be removed
public FilterLogicTestNodeInterface getLeafAt(int index)
SimpleFilterLogicTreeInterface
getLeafAt
in interface SimpleFilterLogicTreeInterface
index
- the index of the desired test node
public void refreshNodeList()
SimpleFilterLogicTreeInterface
refreshNodeList
in interface SimpleFilterLogicTreeInterface
public boolean areAllNodesUnderstood()
SimpleFilterLogicTreeInterface
areAllNodesUnderstood
in interface SimpleFilterLogicTreeInterface
public java.util.List getUnderstoodTestNodeList()
SimpleFilterLogicTreeInterface
getUnderstoodTestNodeList
in interface SimpleFilterLogicTreeInterface
public java.lang.Object getRootFilterItem()
SimpleFilterLogicTreeInterface
getRootFilterItem
in interface SimpleFilterLogicTreeInterface
public boolean isLeafNegated(int index)
SimpleFilterLogicTreeInterface
isLeafNegated
in interface SimpleFilterLogicTreeInterface
isLeafNegated
in interface com.sas.dataselectors.filters.tree.ExtendedNegationLogicInterface
public void setLeafNegated(int index, boolean value)
SimpleFilterLogicTreeInterface
setLeafNegated
in interface SimpleFilterLogicTreeInterface
setLeafNegated
in interface com.sas.dataselectors.filters.tree.ExtendedNegationLogicInterface
value
- the new negation valuepublic java.lang.String getLeafConditionalRelationType(int index)
SimpleFilterLogicTreeInterface
getLeafConditionalRelationType
in interface SimpleFilterLogicTreeInterface
public void setLeafConditionalRelationType(int index, java.lang.String value)
SimpleFilterLogicTreeInterface
setLeafConditionalRelationType
in interface SimpleFilterLogicTreeInterface
index
- the index of the first leaf in the pairvalue
- the logical conditionpublic void splitGroup(int indexOfMember)
SimpleFilterLogicTreeInterface
splitGroup
in interface SimpleFilterLogicTreeInterface
indexOfMember
- the index of the member of the group to splitpublic void groupLeaves(int startIndex, int endIndex)
SimpleFilterLogicTreeInterface
groupLeaves
in interface SimpleFilterLogicTreeInterface
startIndex
- the start of the new groupendIndex
- the end of the new grouppublic void moveLeafUp(int index)
SimpleFilterLogicTreeInterface
moveLeafUp
in interface SimpleFilterLogicTreeInterface
index
- the index of the leaf to movepublic void moveLeafDown(int index)
SimpleFilterLogicTreeInterface
moveLeafDown
in interface SimpleFilterLogicTreeInterface
index
- the index of the leaf to movepublic boolean isLeafGrouped(int index)
SimpleFilterLogicTreeInterface
isLeafGrouped
in interface SimpleFilterLogicTreeInterface
index
- the index in the list of understood nodes of the leaf to check
public boolean canGroupLeaves(int firstIndex, int lastIndex)
SimpleFilterLogicTreeInterface
canGroupLeaves
in interface SimpleFilterLogicTreeInterface
firstIndex
- the index of the first leaf selectedlastIndex
- the index of the last leaf selected
public void clear()
SimpleFilterLogicTreeInterface
clear
in interface SimpleFilterLogicTreeInterface
public boolean commitTree()
SimpleFilterLogicTreeInterface
commitTree
in interface SimpleFilterLogicTreeInterface
public void cancel(java.lang.Object initialFilter)
SimpleFilterLogicTreeInterface
cancel
in interface SimpleFilterLogicTreeInterface
initialFilter
- the initial filter state to return topublic void setFilterObject(java.lang.Object filterObject)
public SimpleFilterLogicTreeInterface copy()
SimpleFilterLogicTreeInterface
copy
in interface SimpleFilterLogicTreeInterface
public SimpleFilterLogicTreeInterface copy(boolean copyTestNodes)
SimpleFilterLogicTreeInterface
copy
in interface SimpleFilterLogicTreeInterface
copyTestNodes
- TRUE if the test nodes in this tree should be duplicated
public FilterLogicBaseNodeInterface getRoot()
SimpleFilterLogicTreeInterface
getRoot
in interface SimpleFilterLogicTreeInterface
public FilterLogicBaseNodeInterface setRoot(FilterLogicBaseNodeInterface root)
SimpleFilterLogicTreeInterface
setRoot
in interface SimpleFilterLogicTreeInterface
root
- the new root node of the tree
public FilterItemInterface findMatchingFilterItem(java.lang.Object itemObject)
SimpleFilterLogicTreeInterface
findMatchingFilterItem
in interface SimpleFilterLogicTreeInterface
itemObject
- the search item
public int getFirstLeafInGroup(int memberIndex)
SimpleFilterLogicTreeInterface
getFirstLeafInGroup
in interface SimpleFilterLogicTreeInterface
memberIndex
- the index of the node that is a member of the group to return the
index of its first leaf
public int getLastLeafInGroup(int memberIndex)
SimpleFilterLogicTreeInterface
getLastLeafInGroup
in interface SimpleFilterLogicTreeInterface
memberIndex
- the index of the node that is a member of the group to return the
index of its last leaf
public com.sas.util.transforms.TransformInterface getInputTransform()
public void setInputTransform(com.sas.util.transforms.TransformInterface inTransform)
inTransform
- The inTransform to set.public com.sas.util.transforms.TransformInterface getOutputTransform()
public void setOutputTransform(com.sas.util.transforms.TransformInterface outTransform)
outTransform
- The outTransform to set.public SimpleFilterLogicTree getLogicTree()
public void setLogicTree(SimpleFilterLogicTree logicTree)
logicTree
- The logicTree to set.public void add(SimpleFilterLogicTreeInterface tree)
SimpleFilterLogicTreeInterface
add
in interface SimpleFilterLogicTreeInterface
tree
- the tree to addpublic void add(FilterLogicBaseNodeInterface rootNode)
SimpleFilterLogicTreeInterface
add
in interface SimpleFilterLogicTreeInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |