|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.SimpleFilterListEditorModelBase
public class SimpleFilterListEditorModelBase
The base implementation of the SimpleFilterListEditorModelInterface, this class provides the ability to construct and maintain a simple list of filter definitions to treat as a single compound filter.
Field Summary | |
---|---|
protected SimpleLogicListAdapterInterface |
_adapter
|
protected FilterLogicListInterface |
_filterLogicList
|
protected int |
_selectionIndex
|
protected FilterLogicTestNodeInterface |
_selectionModel
|
Constructor Summary | |
---|---|
SimpleFilterListEditorModelBase()
Constructs a new list model with default properties. |
|
SimpleFilterListEditorModelBase(SimpleLogicListAdapterInterface adapter)
Constructs a new list model from the given logic list adapter. |
Method Summary | |
---|---|
boolean |
addSelection(FilterLogicTestNodeInterface value)
adds a new selection to the end of the FilterLogicList (cursor position unchanged after an add) |
boolean |
commitChanges()
Commit any changes to the filter model and apply them to the native model. |
java.lang.Object |
getApplicationData()
Used to retrieve application specific data. |
protected FilterLogicEditableTestNodeInterface |
getChangableSelectionModel(FilterLogicTestNodeInterface selectionModel)
Returns a test node, based on the given test node, that can be modified. |
FilterItemListInterface |
getDataSource()
Gets the primary model for the adapter. |
FilterLogicListInterface |
getFilterLogicList()
Returns the filter logic list. |
java.lang.Object |
getRootFilterObject()
Returns the native filter object. |
FilterLogicTestNodeInterface |
getSelection()
Gets the selection model for the adapter. |
int |
getSelectionCount()
Get 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 (cursor position is undefined after remove) |
protected void |
setAdapter(SimpleLogicListAdapterInterface adapter)
Sets the adapter used as a container for the list model. |
void |
setApplicationData(java.lang.Object data)
Used to store application specific data. |
void |
setSelection(FilterLogicTestNodeInterface value)
Sets the selection model for the adapter. |
void |
setSelectionCursor(int index)
Move the model cursor to a new selection index. |
Field Detail |
---|
protected SimpleLogicListAdapterInterface _adapter
protected FilterLogicTestNodeInterface _selectionModel
protected FilterLogicListInterface _filterLogicList
protected int _selectionIndex
Constructor Detail |
---|
public SimpleFilterListEditorModelBase()
public SimpleFilterListEditorModelBase(SimpleLogicListAdapterInterface adapter)
adapter
- the source model for the list modelMethod Detail |
---|
protected void setAdapter(SimpleLogicListAdapterInterface adapter)
adapter
- the source model for the list modelpublic FilterItemListInterface getDataSource()
getDataSource
in interface SimpleFilterDefinitionModelInterface
SimpleFilterDefinitionModelInterface.getDataSource()
public FilterLogicTestNodeInterface getSelection()
getSelection
in interface SimpleFilterDefinitionModelInterface
SimpleFilterDefinitionModelInterface.getSelection()
public void setSelection(FilterLogicTestNodeInterface value)
setSelection
in interface SimpleFilterDefinitionModelInterface
value
- the new selectionSimpleFilterDefinitionModelInterface.setSelection(FilterLogicTestNodeInterface)
public void setApplicationData(java.lang.Object data)
setApplicationData
in interface SimpleFilterDefinitionModelInterface
data
- to be stored with this object for application useSimpleFilterDefinitionModelInterface.setApplicationData(Object)
public java.lang.Object getApplicationData()
getApplicationData
in interface SimpleFilterDefinitionModelInterface
SimpleFilterDefinitionModelInterface.getApplicationData()
public boolean commitChanges()
commitChanges
in interface SimpleFilterDefinitionModelInterface
SimpleFilterDefinitionModelInterface.commitChanges()
public java.lang.Object getRootFilterObject()
getRootFilterObject
in interface SimpleFilterDefinitionModelInterface
public FilterLogicListInterface getFilterLogicList()
getFilterLogicList
in interface SimpleFilterListEditorModelInterface
SimpleFilterListEditorModelInterface.getFilterLogicList()
public void setSelectionCursor(int index)
setSelectionCursor
in interface SimpleFilterListEditorModelInterface
index
- the target index for the cursorSimpleFilterListEditorModelInterface.setSelectionCursor(int)
public int getSelectionCount()
getSelectionCount
in interface SimpleFilterListEditorModelInterface
SimpleFilterListEditorModelInterface.getSelectionCursor()
public int getSelectionCursor()
getSelectionCursor
in interface SimpleFilterListEditorModelInterface
SimpleFilterListEditorModelInterface.getSelectionCursor()
public boolean addSelection(FilterLogicTestNodeInterface value)
addSelection
in interface SimpleFilterListEditorModelInterface
FilterLogicTestNodeInterface
- logic test node values to make up the new object
SimpleFilterListEditorModelInterface.addSelection(FilterLogicTestNodeInterface)
public void removeSelection()
removeSelection
in interface SimpleFilterListEditorModelInterface
SimpleFilterListEditorModelInterface.removeSelection()
protected FilterLogicEditableTestNodeInterface getChangableSelectionModel(FilterLogicTestNodeInterface selectionModel)
selectionModel
- the test node to process
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |