com.sas.dataselectors.filters
Interface SimpleFilterListEditorModelInterface

All Superinterfaces:
SimpleFilterDefinitionModelInterface
All Known Implementing Classes:
BusinessModelToAdvancedFilterModelAdapter, BusinessQueryToAdvancedFilterModelAdapter, BusinessQueryToSimpleFilterListEditorModelAdapter, DefaultAdvancedFilterModelAdapter, InformationMapToSimpleFilterListEditorModelAdapter, SimpleFilterListEditorModelBase

public interface SimpleFilterListEditorModelInterface
extends SimpleFilterDefinitionModelInterface

This model interface extends the SimpleFilterDefintion panel model to all functionality for working with a list of filter test nodes. No relationship between the items in the list is implied, but they must all use the same datasource domain. getSelection provides a reference to an item in the list that is to be intially selected. setSelection is called when the selected item in the list changes focus.


Method Summary
 boolean addSelection(FilterLogicTestNodeInterface value)
          Adds a new selection to the end of the FilterLogicList (cursor position undefined after an add)
 FilterLogicListInterface getFilterLogicList()
          Returns a list of test nodes.
 int getSelectionCount()
          Returns the number of selectable entries in the model.
 int getSelectionCursor()
          Returns the index of the model cursor.
 void removeSelection()
          Removes the current selection from the FilterLogicList.
 void setSelectionCursor(int index)
          Moves the model cursor to a new selection index.
 
Methods inherited from interface com.sas.dataselectors.filters.SimpleFilterDefinitionModelInterface
commitChanges, getApplicationData, getDataSource, getRootFilterObject, getSelection, setApplicationData, setSelection
 

Method Detail

getFilterLogicList

FilterLogicListInterface getFilterLogicList()
Returns a list of test nodes. See the rules in SimpleFilterDefintionModelInterface for allowing directly modfiable nodes using FilterLogicEditableTestNodeInterface. The underlying implementation of the list will have to handle inserting and updating new nodes. The objects passed in such calls will either be the objects implemented by the adapter OR in the case of an insert the new item will be of instance DefaultFilterLogicTestNode.

Returns:
the list of logical test nodes
See Also:
DefaultFilterLogicList

setSelectionCursor

void setSelectionCursor(int index)
Moves the model cursor to a new selection index.

Parameters:
index - the 0 based index in the FilterLogicList to be the new selection

getSelectionCursor

int getSelectionCursor()
Returns the index of the model cursor.

Returns:
the 0 based indes in the FilterLogicList of the current selection

addSelection

boolean addSelection(FilterLogicTestNodeInterface value)
Adds a new selection to the end of the FilterLogicList (cursor position undefined after an add)

Parameters:
value - logic test node values to make up the new object
Returns:
true if successful, false otherwise

removeSelection

void removeSelection()
Removes the current selection from the FilterLogicList. The cursor position is undefined after a removal.


getSelectionCount

int getSelectionCount()
Returns the number of selectable entries in the model.

Returns:
the number of selectable entries in the model



Copyright © 2009 SAS Institute Inc. All Rights Reserved.