|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.entities.BaseEntity
|
+--com.sas.commands.BaseCommand
|
+--com.sas.commands.dataselectors.BaseSelectorCommand
|
+--com.sas.commands.dataselectors.AdvancedFilterSelectorCommand
This class implements the Advanced Filter Selector Command. Ideally, the command class will perform all the modifications to the Selector model. The selector should react to the ContentsChangedEvents fired off after the model changes.
| Field Summary | |
protected HashMap |
actionInfo
The action map |
static String |
ADD_ACTION
pendingAction value when the ADD_ACTION is executed. |
static String |
AND_ACTION
pendingAction value when the AND_ACTION is executed. |
static String |
CANCEL_ACTION
pendingAction value when the CANCEL_ACTION is executed. |
static String |
CLEAR_ACTION
pendingAction value when the CLEAR_ACTION is executed. |
static String |
CLEARALL_ACTION
pendingAction value when the CLEARALL_ACTION is executed. |
static String |
CONDITION_CHANGED
pendingAction value when the condition is changed. |
static String |
DELETE_ACTION
pendingAction value when the DELETE_ACTION is executed. |
static String |
DELETEALL_ACTION
pendingAction value when the DELETEALL_ACTION is executed. |
static String |
DOWN_ACTION
pendingAction value when the DOWN_ACTION is executed. |
static String |
EDIT_ACTION
pendingAction value when the EDIT_ACTION is executed. |
static String |
FILTERITEM_CHANGED
pendingAction value when the filter item changed. |
static String |
GROUP_ACTION
pendingAction value when the GROUP_ACTION is executed. |
static String |
IMPORT_ACTION
pendingAction value when the IMPORT_ACTION is executed. |
static String |
NOT_ACTION
pendingAction value when the NOT_ACTION is executed. |
static String |
OLAPOK_ACTION
pendingAction value when the OLAPOK_ACTION is executed. |
static String |
OR_ACTION
pendingAction value when the OR_ACTION is executed. |
static String |
QUALIFIER_ACTION
pendingAction value when the QUALIFIER_ACTION is executed. |
static String |
QUALIFIER_APPLIED
pendingAction when the qualifier is applied |
static String |
QUALIFIER_CHANGED
pendingAction value when the qualifier changed. |
static String |
QUALIFIER_CHECKED
pendingAction value when the qualifier is activated. |
static String |
RB_KEY2
|
static String |
SELECTED_CONDITION
|
static String |
SET_ACTION
pendingAction value when the SET_ACTION is executed. |
static String |
SPLIT_ACTION
pendingAction value when the SPLIT_ACTION is executed. |
static String |
UP_ACTION
pendingAction value when the UP_ACTION is executed. |
static String |
UPDATE_ACTION
pendingAction value when the UPDATE_ACTION is executed. |
| Fields inherited from class com.sas.commands.dataselectors.BaseSelectorCommand |
actionClass, CANCEL_MODE, COMMIT_MODE, complete, contentsChanged, eventInfo, eventSource, modal, mode, model, PROCESS_MODE, selector, selectorModel, SHOW_MODE |
| Fields inherited from interface com.sas.actionprovider.CommandStatusInterface |
DISABLED, ENABLED, IS_CURRENT_STATE_DISABLED, MODEL_MEMBER_DISABLED, MODEL_STATE_DISABLED, MODEL_TYPE_DISABLED |
| Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface |
COMMAND_NAME_PREFIX |
| Constructor Summary | |
AdvancedFilterSelectorCommand()
The default constructor for this command. |
|
AdvancedFilterSelectorCommand(String name)
Constructor that accepts a command name. |
|
AdvancedFilterSelectorCommand(String name,
String actionClass)
Constructor that accepts a command name and an action class type. |
|
| Method Summary | |
void |
cancel(Object o)
The cancel method resets the model to its original state and hides or destroys the selector visual. |
protected void |
cleanUp()
|
protected void |
commit(Object o)
The commit method alters the original model to reflect any changes made by the user and hides or destroys the selector visual. |
String |
getAction()
Returns the current action of the selector command. |
String |
getAddFilter()
Returns the ADD_ACTION |
String |
getAndFilter()
Returns the AND_ACTION |
protected List |
getCalendar(long type)
|
protected FilterLogicEditableTestNodeInterface |
getChangableSelectionModel()
Returns a version of the selection model that is modifiable. |
protected FilterLogicEditableTestNodeInterface |
getChangableSelectionModel(FilterLogicTestNodeInterface node)
|
String |
getClearAllFilter()
Returns the clearAllFilter action value |
String |
getClearFilter()
Returns the clearFilter action value. |
int |
getCommandStatus(ActionSupportFilter filter)
Returns a int value indicating whether the command is enabled for the given area as specified by the current area information encapsulate in the ActionSupportFilter. |
AdvancedFilterModelInterface |
getCurrentValidatedModel()
|
String |
getDeleteAllFilters()
Returns the DELETEALL_ACTION |
String |
getDeleteFilter()
Returns the DELETE_ACTION |
String |
getDownFilter()
Returns the DOWN_ACTION |
String |
getEditFilter()
Returns the EDIT_ACTION |
String |
getEndCalendar()
Return the end calendar value |
String |
getFilterDescription()
Gets the current filter description from the selection model. |
String |
getFilterItem()
Returns the filter item |
Map |
getFilterItemMap()
Gets the map for the FilterItemInterface instances in the data model. |
String |
getFilterName()
Gets the current filter name from the selection model. |
String |
getFilterOperator()
Returns the filter operator |
String |
getFilterQualifier()
Returns the filter qualifier value |
String |
getFilterValue()
Returns the filter value. |
protected FilterValueInterface |
getFilterValue(String uniqueId,
AdvancedFilterModelInterface afsModel)
|
String |
getFilterValueMax()
Returns the maximum filter value |
String |
getFilterValueMaxText()
Returns the maximum filter value |
String |
getFilterValueMin()
Returns the minimum filter value. |
String |
getFilterValueMinText()
Returns the minimum filter value. |
String |
getFilterValueText()
Returns the filter value for the text entry. |
String |
getFilterValueTyped()
Returns the typed filter value |
String |
getGroupFilter()
Returns the GROUP_ACTION |
protected static String |
getID(Object object)
|
String |
getImportFilter()
|
String |
getNotFilter()
Returns the NOT_ACTION |
String |
getOlapOkAction()
Returns the OLAPOK_ACTION |
String |
getOrFilter()
Returns the OR_ACTION |
String |
getPendingAction()
|
String[] |
getQualifiedMeasure()
Returns the qualified measure value used when the model is OLAP |
protected QualifiersEditorInterface |
getQualifierEditor()
Returns the Qualifier Editor |
String |
getQualifierMode()
Returns the OLAPOK_ACTION |
String |
getSelectedCondition()
|
String[] |
getSelectedFilterValues()
Returns the selected filter values |
String |
getSelectedQualifier()
Returns the selected qualifier |
protected FilterLogicTestNodeInterface |
getSelection()
|
protected FilterLogicTestNodeInterface |
getSelectionModel()
Returns the selection portion of the selector model if it is valid. |
String |
getSplitFilter()
Returns the OLAPOK_ACTION |
String |
getStartCalendar()
Return the start calendar value |
String |
getTypedFilterValueMax()
Returns the typed maximum filter value. |
String |
getTypedFilterValueMin()
Returns the typed filter minimum value. |
String |
getTypedFilterValues()
Returns the typed filter values |
String |
getUpdateFilter()
Returns the UPDATE_FILTER action. |
String |
getUpFilter()
Returns the UP_ACTION |
AdvancedFilterModelInterface |
getValidatedModel(boolean updateSelector)
|
String |
getValueEntryType()
|
String |
getValueListItem()
Returns the filter value list |
String |
getWhereCheckbox()
|
protected boolean |
isOlap()
|
boolean |
isSupported(ActionSupportFilter actionFilter)
Returns TRUE if the command is supported given the contents of the support filter. |
protected boolean |
isSwing()
|
protected void |
process(Object o)
Processes the request object to manipulate the model. |
void |
setAction(String value)
Sets the current action of the selector command. |
void |
setAddFilter(String value)
Sets pendingAction to ADD_ACTION |
void |
setAndFilter(String itemID)
Sets pendingAction to AND_ACTION |
void |
setClearAllFilter(String all)
Sets the CLEARALL_ACTION as the pending action. |
void |
setClearFilter(String itemID)
Sets the CLEAR_ACTION as the pending action. |
void |
setDeleteAllFilters(String dummy)
Sets pendingAction to DELETEALL_ACTION |
void |
setDeleteFilter(String itemID)
Sets pendingAction to DELETE_ACTION |
void |
setDownFilter(String itemID)
Sets pendingAction to DOWN_ACTION |
void |
setEditFilter(String itemID)
Sets pendingAction to EDIT_ACTION |
protected void |
setEditor(AdvancedFilterModelInterface filterModel,
EditorInterface editor)
|
protected void |
setEditors(AdvancedFilterModelInterface filterModel,
List editors)
|
protected void |
setEditors(FilterableListModelInterface filterableList,
List editors)
|
void |
setEndCalendar(String calendar)
Sets the end calendar value |
void |
setFilterDescription(String description)
Sets the filter description in the selection model. |
void |
setFilterItem(String itemID)
Sets the filter item |
void |
setFilterItemMap(List list)
Sets the map for the FilterItemInterface instances in the data model. |
void |
setFilterName(String name)
Sets the filter name in the selection model. |
void |
setFilterOperator(String itemID)
Sets the filter operator value |
void |
setFilterQualifier(String itemID)
Sets the filter qualifier values |
void |
setFilterValue(String value)
Sets the filter value |
void |
setFilterValueMax(String value)
Sets the maximum filter value when condition is In Between or Not In Between |
void |
setFilterValueMaxText(String value)
Sets the maximum filter value when condition is In Between or Not In Between |
void |
setFilterValueMin(String value)
Sets the minimum filter value when condition is In Between or Not In Between |
void |
setFilterValueMinText(String value)
Sets the minimum filter value when condition is In Between or Not In Between |
void |
setFilterValueText(String value)
Sets the filter value for the text entry. |
void |
setFilterValueTyped(String value)
Sets the typed filter values |
void |
setGroupFilter(String items)
Sets pendingAction to GROUP_ACTION |
void |
setImportFilter(String itemID)
|
void |
setNotFilter(String itemID)
Sets pendingAction to NOT_ACTION |
void |
setOlapOkAction(String value)
Sets pendingAction to OLAPOK_ACTION |
void |
setOrFilter(String itemID)
Sets pendingAction to OR_ACTION |
void |
setPendingAction(String value)
|
void |
setQualifiedMeasure(String[] values)
Sets qualified measures |
void |
setQualifierMode(String itemID)
Sets pendingAction to QUALIFIER_ACTION |
void |
setSelectedCondition(String itemID)
|
void |
setSelectedFilterValues(List values)
Sets the selected filter values |
void |
setSelectedFilterValues(String[] values)
Sets the selected filter values |
void |
setSelectedQualifier(String itemID)
Sets the selected qualifier on the command |
protected void |
setSelection(FilterLogicTestNodeInterface selection)
|
void |
setSplitFilter(String itemID)
Sets pendingAction to SPLIT_ACTION |
void |
setStartCalendar(String calendar)
Sets the start calendar value |
void |
setTypedFilterValueMax(String value)
Sets the typed filter maximum value |
void |
setTypedFilterValueMin(String value)
Sets the typed minimum filter value. |
void |
setTypedFilterValues(String value)
Sets the typed filter values |
void |
setUpdateFilter(String itemID)
Sets pendingAction to UPDATE_ACTION |
void |
setUpFilter(String itemID)
Sets pendingAction to UP_ACTION |
void |
setValueEntryType(String type)
|
void |
setValueListItem(String itemID)
Sets the filter value list. |
void |
setWhereCheckbox(String state)
|
protected void |
show(Object o)
Creates the initial selector model from the stored data model and supplies it to the associated selector. |
protected boolean |
updatable(FilterLogicEditableTestNodeInterface changableSelection)
Returns true if all required values for an update are available. |
boolean |
updateSelectionCombination(AdvancedFilterModelInterface afsModel,
FilterLogicEditableTestNodeInterface changableSelection,
FilterLogicTestNodeObjectMap objectMap)
Updates the model with the combination actions such as ADD_ACTION, DELETE_ACTION, UPDATE_ACTION, EDIT_ACTION, MOVEUP_ACTION, MOVEDOWN_ACTION, GROUP_ACTION and SPLIT_ACTION. |
boolean |
updateSelectionModel()
Updates the current selection model with the selector's value |
protected boolean |
updateSelectionModel(FilterLogicEditableTestNodeInterface changableSelection,
AdvancedFilterModelInterface afsModel)
Updates the selection model |
| Methods inherited from class com.sas.commands.dataselectors.BaseSelectorCommand |
cancel, closeSelector, execute, getEventInfo, getEventSource, getMode, getModel, getSelector, getSelectorModel, isComplete, isContentsChanged, isModal, setComplete, setModal, setMode, setModel, setSelector, setSelectorModel |
| Methods inherited from class com.sas.commands.BaseCommand |
getLocale, getName, getNextCommandName, getText, isExecutable, isUndoable, setLocale, setName, setText, undo |
| Methods inherited from class com.sas.entities.BaseEntity |
clone, containsAttributeNamed, equals, equals, getAttribute, getAttribute, getAttributeCount, getAttributes, getEntityKey, getPropertyDescriptors, getStringAttribute, listAttributeNames, removeAllAttributes, removeAttribute, reset, sameEntity, setAttribute, setAttributes, setEntityKey, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sas.entities.BaseEntityValueInterface |
getAttribute, setAttribute |
| Methods inherited from interface com.sas.util.Command |
clone |
| Field Detail |
public static final String RB_KEY2
public static final String SELECTED_CONDITION
public static final String ADD_ACTION
public static final String UPDATE_ACTION
public static final String DELETE_ACTION
public static final String DELETEALL_ACTION
public static final String SET_ACTION
public static final String EDIT_ACTION
public static final String AND_ACTION
public static final String OR_ACTION
public static final String NOT_ACTION
public static final String SPLIT_ACTION
public static final String GROUP_ACTION
public static final String UP_ACTION
public static final String DOWN_ACTION
public static final String QUALIFIER_ACTION
public static final String CLEAR_ACTION
public static final String CLEARALL_ACTION
public static final String CANCEL_ACTION
public static final String OLAPOK_ACTION
public static final String IMPORT_ACTION
public static final String FILTERITEM_CHANGED
public static final String CONDITION_CHANGED
public static final String QUALIFIER_CHANGED
public static final String QUALIFIER_CHECKED
public static final String QUALIFIER_APPLIED
protected HashMap actionInfo
| Constructor Detail |
public AdvancedFilterSelectorCommand()
public AdvancedFilterSelectorCommand(String name)
name - the name of this command
public AdvancedFilterSelectorCommand(String name,
String actionClass)
name - the name of this commandactionClass - the class name for the appropriate action| Method Detail |
protected void show(Object o)
show in class BaseSelectorCommando - ignored in this implementation
protected void setEditors(FilterableListModelInterface filterableList,
List editors)
protected void cleanUp()
protected void setEditors(AdvancedFilterModelInterface filterModel,
List editors)
protected void setEditor(AdvancedFilterModelInterface filterModel,
EditorInterface editor)
protected boolean isSwing()
protected void process(Object o)
process in class BaseSelectorCommando - ignored in this implementationpublic void cancel(Object o)
cancel in class BaseSelectorCommando - ignored in this implementation
protected void commit(Object o)
throws IOException
commit in class BaseSelectorCommando - ignored in this implementationprotected void setSelection(FilterLogicTestNodeInterface selection)
protected FilterLogicTestNodeInterface getSelection()
public boolean updateSelectionModel()
protected boolean updatable(FilterLogicEditableTestNodeInterface changableSelection)
changableSelection - the current selection model to update
protected boolean updateSelectionModel(FilterLogicEditableTestNodeInterface changableSelection,
AdvancedFilterModelInterface afsModel)
changableSelection - the current selection modelafsModel - the modelprotected List getCalendar(long type)
protected QualifiersEditorInterface getQualifierEditor()
public void setQualifiedMeasure(String[] values)
values - qualified measurespublic String[] getQualifiedMeasure()
public boolean updateSelectionCombination(AdvancedFilterModelInterface afsModel,
FilterLogicEditableTestNodeInterface changableSelection,
FilterLogicTestNodeObjectMap objectMap)
afsModel - The AdvancedFilterModelInterface used for this commandchangableSelection - the editable test nodeobjectMap - map containing the model informationprotected FilterLogicTestNodeInterface getSelectionModel()
public void setFilterName(String name)
name - the new filter namepublic String getFilterName()
public void setFilterDescription(String description)
name - the new filter descriptionpublic String getFilterDescription()
public void setSelectedQualifier(String itemID)
itemID - the selected qualifier valuepublic String getSelectedQualifier()
public void setSelectedCondition(String itemID)
public String getSelectedCondition()
public void setSelectedFilterValues(String[] values)
values - filter valuespublic void setSelectedFilterValues(List values)
values - filter values
protected FilterValueInterface getFilterValue(String uniqueId,
AdvancedFilterModelInterface afsModel)
public String[] getSelectedFilterValues()
public void setFilterValue(String value)
value - filter valuepublic String getFilterValue()
public void setFilterValueText(String value)
value - filter valuepublic String getFilterValueText()
public void setFilterValueMax(String value)
In Between or Not In Between value - the filter valuepublic String getFilterValueMax()
public void setFilterValueMin(String value)
In Between or Not In Between value - the filter valuepublic String getFilterValueMin()
public void setFilterValueMaxText(String value)
In Between or Not In Between value - the filter valuepublic String getFilterValueMaxText()
public void setFilterValueMinText(String value)
In Between or Not In Between value - the filter valuepublic String getFilterValueMinText()
public void setTypedFilterValues(String value)
value - filter valuespublic String getTypedFilterValues()
public void setFilterValueTyped(String value)
value - typed valuepublic String getFilterValueTyped()
public void setTypedFilterValueMax(String value)
value - the maximum valuepublic String getTypedFilterValueMax()
public void setTypedFilterValueMin(String value)
value - the minimum filter valuepublic String getTypedFilterValueMin()
public void setValueListItem(String itemID)
itemID - filter value unique idpublic String getValueListItem()
public void setFilterItem(String itemID)
itemID - filterItem unique idpublic String getFilterItem()
public void setFilterQualifier(String itemID)
itemID - filter qualifierpublic String getFilterQualifier()
public void setFilterOperator(String itemID)
itemID - filter operatorpublic String getFilterOperator()
public void setAddFilter(String value)
value - pendingAction valuepublic String getAddFilter()
public void setUpdateFilter(String itemID)
value - pendingAction valuepublic String getUpdateFilter()
public void setEditFilter(String itemID)
value - pendingAction valuepublic String getEditFilter()
public void setDeleteFilter(String itemID)
value - pendingAction valuepublic String getDeleteFilter()
public void setDeleteAllFilters(String dummy)
value - pendingAction valuepublic String getDeleteAllFilters()
public void setAndFilter(String itemID)
value - pendingAction valuepublic String getAndFilter()
public void setOrFilter(String itemID)
value - pendingAction valuepublic String getOrFilter()
public void setNotFilter(String itemID)
value - pendingAction valuepublic String getNotFilter()
public void setGroupFilter(String items)
value - pendingAction valuepublic String getGroupFilter()
public void setSplitFilter(String itemID)
value - pendingAction valuepublic String getSplitFilter()
public void setUpFilter(String itemID)
value - pendingAction valuepublic String getUpFilter()
public void setDownFilter(String itemID)
value - pendingAction valuepublic String getDownFilter()
public void setQualifierMode(String itemID)
value - pendingAction valuepublic String getQualifierMode()
public void setOlapOkAction(String value)
value - pendingAction valuepublic String getOlapOkAction()
public void setAction(String value)
value - the action being executedpublic String getAction()
public void setClearFilter(String itemID)
itemID - the CLEAR_ACTION valuepublic String getClearFilter()
public void setClearAllFilter(String all)
all - public String getClearAllFilter()
public void setImportFilter(String itemID)
public String getImportFilter()
public String getStartCalendar()
public void setStartCalendar(String calendar)
calendar - start calendarpublic String getEndCalendar()
public void setEndCalendar(String calendar)
calendar - end calendarpublic String getValueEntryType()
public void setValueEntryType(String type)
protected FilterLogicEditableTestNodeInterface getChangableSelectionModel()
protected FilterLogicEditableTestNodeInterface getChangableSelectionModel(FilterLogicTestNodeInterface node)
protected static String getID(Object object)
protected boolean isOlap()
public Map getFilterItemMap()
public void setFilterItemMap(List list)
map - the new FilterItemInterface mappublic AdvancedFilterModelInterface getValidatedModel(boolean updateSelector)
public int getCommandStatus(ActionSupportFilter filter)
getCommandStatus in interface CommandStatusInterfacefilter - The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.public boolean isSupported(ActionSupportFilter actionFilter)
isSupported in interface CommandSupportedInterfacecom.sas.actionprovider.CommandSupportedInterfacefilter - The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.BaseAction.setReturnStatus(int)public String getPendingAction()
public void setPendingAction(String value)
public AdvancedFilterModelInterface getCurrentValidatedModel()
public void setWhereCheckbox(String state)
public String getWhereCheckbox()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||