|
| 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.AdvancedFilterSelectorCommandFacade
This class is a facade that unifies the functionalities of the AdvancedFilterSelectorCommand plus the additional filtering funcionalities provided by the OLAPTimeBasedFilterCommand. This class is intended to be used in place of the existing AdvancedFilterSelectorCommand. It's an extended version of the existing AdvancedFilterSelectorCommand without subclassing the it.
| Field Summary | |
static String |
ADVANCED_FILTER_SELECTOR_COMMAND
|
protected boolean |
isImportOLAPRelativeTimeFilter
|
static String |
OLAP_TIME_BASED_FILTER_COMMAND
|
protected Map |
selectorCommands
The list of filtering selector commands unified by this facade, example the AdvancedFilterSelectorCommand and the OLAPTimeBasedFilterCommand |
protected boolean |
swing
|
| 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 | |
AdvancedFilterSelectorCommandFacade()
The default constructor for this command. |
|
AdvancedFilterSelectorCommandFacade(String name)
Constructor that accepts a command name |
|
AdvancedFilterSelectorCommandFacade(String name,
boolean swing)
Constructor that accepts a command name and boolean attribute for specifying the swing attribute. |
|
AdvancedFilterSelectorCommandFacade(String name,
String actionClass)
Constructor that accepts a command name and an action class type |
|
| Method Summary | |
void |
cancel()
Cancels the command. |
void |
cancel(Object o)
The cancel method resets the model to its original state and hides or destroys the selector visual. |
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 AdvancedFilterSelectorCommand command. |
String |
getAddFilter()
Returns the ADD_ACTION |
String |
getAndFilter()
Returns the AND_ACTION |
String |
getClearAllFilter()
Returns the clearAllFilter action value |
String |
getClearFilter()
Returns the clearFilter action value. |
Collection |
getCommandAttributeNames()
Returns a collection containing the names of all the composite command's dynamic attributes. |
int |
getCommandStatus(ActionSupportFilter filter)
Returns a status value indicating whether the command is enabled for a specific area as described by various filter attributes. |
BaseSelectorCommand |
getComponentSelectorCommand(String key)
Returns the child data selector command that has been stored into the children's list with a specific key |
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 |
getEndingPeriodOption()
|
HashMap |
getEventInfo()
Returns a HashMap with information about the pending ContentsChangedEvent or null if no event is pending. |
Object |
getEventSource()
Returns the source of a pending ContentsChangedEvent event. |
String |
getFilterDescription()
Gets the current filter description from the selection model. |
String |
getFilterItem()
Returns the filter item from the AdvancedFilterSelectorCommand |
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. |
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 |
String |
getImportFilter()
|
String |
getNotFilter()
Returns the NOT_ACTION |
String |
getNumberOfPeriods()
|
String |
getOlapOkAction()
Returns the OLAPOK_ACTION |
String |
getOrFilter()
Returns the OR_ACTION |
String |
getPendingAction()
|
String |
getPeriodType()
|
String[] |
getQualifiedMeasure()
Returns the qualified measure value used when the model is OLAP |
String |
getQualifierMode()
Returns the OLAPOK_ACTION |
String |
getRemoteAction()
|
String |
getSelectedCondition()
|
String |
getSelectedEndingPeriod()
|
String[] |
getSelectedFilterValues()
Returns the selected filter values |
String[] |
getSelectedPeriods()
|
String |
getSelectedQualifier()
Returns the selected qualifier |
String |
getSelectedStartingPeriod()
|
String |
getSelectOption()
|
String |
getShowOption()
|
String |
getSplitFilter()
Returns the OLAPOK_ACTION |
String |
getStartCalendar()
Return the start calendar value |
String |
getStartingPeriodOption()
|
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 |
String |
getValueEntryType()
|
String |
getValueListItem()
Returns the filter value list |
String |
getWhereCheckbox()
|
boolean |
isComplete()
Returns a boolean indicating whether the command has been explicitly committed or cancelled. |
boolean |
isContentsChanged()
Returns true if a ContentsChangedEvent should be generated, false otherwise. |
boolean |
isSupported(ActionSupportFilter actionFilter)
Returns a boolean indicating whether the command is supported for the given area as specified by the current area information encapsulated in the ActionSupportFilter. |
boolean |
isSwing()
Returns the property identifying whether or not this command is operating in the Swing environment. |
protected void |
process(Object o)
Processes the request object to manipulate the model. |
void |
setAction(String value)
Sets the current action of the AdvancedFilterSelectorCommand command. |
void |
setAddFilter(String value)
Sets pendingAction to ADD_ACTION |
void |
setAndFilter(String value)
Sets pendingAction to AND_ACTION |
void |
setClearAllFilter(String value)
Sets the CLEARALL_ACTION as the pending action. |
void |
setClearFilter(String value)
Sets the CLEAR_ACTION as the pending action. |
void |
setCommonAttribute(String attributeName,
Object attributeValue)
Sets the specified attribute on all sub-commands. |
void |
setComplete(boolean complete)
Set the boolean indicating whether the command has been explicitly committed or cancelled. |
void |
setComponentSelectorCommand(BaseSelectorCommand component,
String key)
Adds a data selector command to the list of children commands with a specific key |
void |
setDeleteAllFilters(String value)
Sets pendingAction to DELETEALL_ACTION |
void |
setDeleteFilter(String value)
Sets pendingAction to DELETE_ACTION |
void |
setDownFilter(String value)
Sets pendingAction to DOWN_ACTION |
void |
setEditFilter(String value)
Sets pendingAction to EDIT_ACTION |
void |
setEndCalendar(String value)
Sets the end calendar value |
void |
setEndingPeriodOption(String value)
|
void |
setFilterDescription(String value)
Sets the filter description in the selection model. |
void |
setFilterItem(String value)
Sets the filter item |
void |
setFilterItemMap(List value)
Sets the map for the FilterItemInterface instances in the data model. |
void |
setFilterName(String value)
Sets the filter name in the selection model. |
void |
setFilterOperator(String value)
Sets the filter operator value |
void |
setFilterQualifier(String value)
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 value)
Sets pendingAction to GROUP_ACTION |
void |
setImportFilter(String value)
|
void |
setModal(boolean modal)
|
void |
setMode(String value)
Sets the mode of execution for this command. |
void |
setModel(Object model)
Sets the data model being viewed or manipulated by the selector. |
void |
setNotFilter(String value)
Sets pendingAction to NOT_ACTION |
void |
setNumberOfPeriods(String value)
|
void |
setOlapOkAction(String value)
Sets pendingAction to OLAPOK_ACTION |
void |
setOrFilter(String value)
Sets pendingAction to OR_ACTION |
void |
setPendingAction(String value)
|
void |
setPeriodType(String value)
|
void |
setQualifiedMeasure(String[] value)
Sets qualified measures |
void |
setQualifierMode(String value)
Sets pendingAction to QUALIFIER_ACTION |
void |
setRemoteAction(String value)
|
void |
setSelectedCondition(String value)
|
void |
setSelectedEndingPeriod(String value)
|
void |
setSelectedFilterValues(String[] value)
Sets the selected filter values |
void |
setSelectedPeriods(String[] values)
|
void |
setSelectedQualifier(String value)
Sets the selected qualifier on the command |
void |
setSelectedStartingPeriod(String value)
|
void |
setSelectOption(String value)
|
void |
setSelector(DataSelectorInterface value)
Sets the command's reference to it's parent selector. |
void |
setShowOption(String value)
|
void |
setSplitFilter(String value)
Sets pendingAction to SPLIT_ACTION |
void |
setStartCalendar(String value)
Sets the start calendar value |
void |
setStartingPeriodOption(String value)
|
void |
setSwing(boolean mode)
Sets the property identifying whether or not this command is operating in the Swing environment. |
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 value)
Sets pendingAction to UPDATE_ACTION |
void |
setUpFilter(String value)
Sets pendingAction to UP_ACTION |
void |
setValueEntryType(String value)
|
void |
setValueListItem(String value)
Sets the filter value list. |
void |
setWhereCheckbox(String value)
Sets the state value for the 'where' checkbox. |
protected void |
show(Object o)
Creates the initial selector model from the stored data model and supplies it to the associated selector. |
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 |
| Methods inherited from class com.sas.commands.dataselectors.BaseSelectorCommand |
closeSelector, execute, getMode, getModel, getSelector, getSelectorModel, isModal, 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 ADVANCED_FILTER_SELECTOR_COMMAND
public static final String OLAP_TIME_BASED_FILTER_COMMAND
protected Map selectorCommands
protected boolean swing
protected boolean isImportOLAPRelativeTimeFilter
| Constructor Detail |
public AdvancedFilterSelectorCommandFacade()
public AdvancedFilterSelectorCommandFacade(String name)
public AdvancedFilterSelectorCommandFacade(String name,
String actionClass)
public AdvancedFilterSelectorCommandFacade(String name,
boolean swing)
name - the command's nameswing - true if command used in a Swing environment, false otherwise;| Method Detail |
public void setSwing(boolean mode)
mode - Set to true for Swing environment, false otherwise.public boolean isSwing()
public boolean isContentsChanged()
BaseSelectorCommandisContentsChanged in class BaseSelectorCommandcom.sas.commands.dataselectors.BaseSelectorCommandpublic boolean isComplete()
BaseSelectorCommandisComplete in class BaseSelectorCommandcom.sas.commands.dataselectors.BaseSelectorCommandpublic void setMode(String value)
BaseSelectorCommandsetMode in class BaseSelectorCommandcom.sas.commands.dataselectors.BaseSelectorCommandvalue - the mode for this commandpublic void setModal(boolean modal)
setModal in class BaseSelectorCommandpublic void setComplete(boolean complete)
BaseSelectorCommandsetComplete in class BaseSelectorCommandcom.sas.commands.dataselectors.BaseSelectorCommandcomplete - the boolean indicating whether the command has been explicitly
committed or cancelled.public void setModel(Object model)
BaseSelectorCommandsetModel in class BaseSelectorCommandcom.sas.commands.dataselectors.BaseSelectorCommandmodel - the modelpublic void setSelector(DataSelectorInterface value)
BaseSelectorCommandsetSelector in class BaseSelectorCommandcom.sas.commands.dataselectors.BaseSelectorCommandvalue - the selector associated with this commandprotected void show(Object o)
show in class BaseSelectorCommando - ignored in this implementationprotected void process(Object o)
process in class BaseSelectorCommando - ignored in this implementationpublic void cancel(Object o)
cancel in class BaseSelectorCommando - ignored in this implementationpublic void cancel()
CancelInterfaceCommon things done in this method:
cancel in class BaseSelectorCommand
protected void commit(Object o)
throws IOException
commit in class BaseSelectorCommando - ignored in this implementationpublic HashMap getEventInfo()
BaseSelectorCommandgetEventInfo in class BaseSelectorCommandcom.sas.commands.dataselectors.BaseSelectorCommandpublic Object getEventSource()
BaseSelectorCommandgetEventSource in class BaseSelectorCommandcom.sas.commands.dataselectors.BaseSelectorCommandpublic String getAction()
public void setAction(String value)
value - the action being executedpublic String getAddFilter()
public void setAddFilter(String value)
value - pendingAction valuepublic String getAndFilter()
public void setAndFilter(String value)
value - pendingAction valuepublic String getClearAllFilter()
public void setClearAllFilter(String value)
value - public String getClearFilter()
public void setClearFilter(String value)
value - the CLEAR_ACTION valuepublic String getDeleteAllFilters()
public void setDeleteAllFilters(String value)
value - a dummy valuepublic String getDeleteFilter()
public void setDeleteFilter(String value)
value - a dummy valuepublic String getDownFilter()
public void setDownFilter(String value)
value - pendingAction valuepublic String getEditFilter()
public void setEditFilter(String value)
value - pendingAction valuepublic String getEndCalendar()
public void setEndCalendar(String value)
value - end calendarpublic String getFilterDescription()
public void setFilterDescription(String value)
value - the new filter descriptionpublic String getFilterItem()
public void setFilterItem(String value)
value - filterItem unique idpublic Map getFilterItemMap()
public void setFilterItemMap(List value)
value - the new FilterItemInterface mappublic String getFilterName()
public void setFilterName(String value)
value - the new filter namepublic String getFilterOperator()
public void setFilterOperator(String value)
value - filter operatorpublic String getFilterQualifier()
public void setFilterQualifier(String value)
value - filter qualifierpublic String getFilterValue()
public void setFilterValue(String value)
value - filter valuepublic String getFilterValueMax()
public void setFilterValueMax(String value)
In Between or Not In Between value - the filter valuepublic String getFilterValueMaxText()
public void setFilterValueMaxText(String value)
In Between or Not In Between value - the filter valuepublic String getFilterValueMin()
public void setFilterValueMin(String value)
In Between or Not In Between value - the filter valuepublic String getFilterValueMinText()
public void setFilterValueMinText(String value)
In Between or Not In Between value - the filter valuepublic String getFilterValueText()
public void setFilterValueText(String value)
value - filter valuepublic String getFilterValueTyped()
public void setFilterValueTyped(String value)
value - typed valuepublic String getGroupFilter()
public void setGroupFilter(String value)
value - pendingAction valuepublic String getImportFilter()
public void setImportFilter(String value)
public String getNotFilter()
public void setNotFilter(String value)
value - pendingAction valuepublic String getOlapOkAction()
public void setOlapOkAction(String value)
value - pendingAction valuepublic String getOrFilter()
public void setOrFilter(String value)
value - pendingAction valuepublic String getPendingAction()
public void setPendingAction(String value)
public String[] getQualifiedMeasure()
public void setQualifiedMeasure(String[] value)
value - qualified measurespublic String getQualifierMode()
public void setQualifierMode(String value)
value - pendingAction valuepublic String getSelectedCondition()
public void setSelectedCondition(String value)
public String[] getSelectedFilterValues()
public void setSelectedFilterValues(String[] value)
value - filter valuespublic String getSelectedQualifier()
public void setSelectedQualifier(String value)
value - the selected qualifier valuepublic String getSplitFilter()
public void setSplitFilter(String value)
value - pendingAction valuepublic String getStartCalendar()
public void setStartCalendar(String value)
value - start calendarpublic String getTypedFilterValueMax()
public void setTypedFilterValueMax(String value)
value - the maximum valuepublic String getTypedFilterValueMin()
public void setTypedFilterValueMin(String value)
value - the minimum filter valuepublic String getTypedFilterValues()
public void setTypedFilterValues(String value)
value - filter valuespublic String getUpdateFilter()
public void setUpdateFilter(String value)
value - pendingAction valuepublic String getUpFilter()
public void setUpFilter(String value)
value - pendingAction valuepublic String getValueEntryType()
public void setValueEntryType(String value)
public String getValueListItem()
public void setValueListItem(String value)
value - filter value unique id
public boolean updateSelectionCombination(AdvancedFilterModelInterface afsModel,
FilterLogicEditableTestNodeInterface changableSelection,
FilterLogicTestNodeObjectMap objectMap)
afsModel - The AdvancedFilterModelInterface used for this commandchangableSelection - the editable test nodeobjectMap - map containing the model informationpublic boolean updateSelectionModel()
public void setComponentSelectorCommand(BaseSelectorCommand component,
String key)
CompositeDataSelectorCommandInterfacesetComponentSelectorCommand in interface CompositeDataSelectorCommandInterfacecom.sas.commands.dataselectors.CompositeDataSelectorCommandInterfacecomponent - the data selector command to add to the list of childrenpublic BaseSelectorCommand getComponentSelectorCommand(String key)
CompositeDataSelectorCommandInterfacegetComponentSelectorCommand in interface CompositeDataSelectorCommandInterfacecom.sas.commands.dataselectors.CompositeDataSelectorCommandInterfacekey - the key to retrieve the child data selector command into the list of children commandspublic boolean isSupported(ActionSupportFilter actionFilter)
CommandSupportedInterfaceReturns a boolean indicating whether the command is supported for the given area as specified by the current area information encapsulated in the ActionSupportFilter.
isSupported in interface CommandSupportedInterfacecom.sas.actionprovider.CommandSupportedInterfacefilter - The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.BaseAction.setReturnStatus(int)public int getCommandStatus(ActionSupportFilter filter)
CommandStatusInterface
If enabled, the value is:
CommandStatusInterface.ENABLED
If disabled, the value may be one of the following values which indicate why the command is disabled.
CommandStatusInterface.MODEL_TYPE_DISABLED CommandStatusInterface.MODEL_STATE_DISABLED CommandStatusInterface.MODEL_MEMBER_DISABLED CommandStatusInterface.IS_CURRENT_STATE_DISABLED CommandStatusInterface.DISABLED getCommandStatus in interface CommandStatusInterfacecom.sas.actionprovider.CommandStatusInterfacefilter - The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.BaseAction.setReturnStatus(int)
public void setCommonAttribute(String attributeName,
Object attributeValue)
CompositeDynamicAttributeCommandInterfaceFor use when all sub-commands need the same attribute set with the same value.
setCommonAttribute in interface CompositeDynamicAttributeCommandInterfacecom.sas.commands.CompositeDynamicAttributeCommandInterfaceattributeName - The name of the attribute to set on all sub-commands.attributeValue - The value of the attribute.public Collection getCommandAttributeNames()
CompositeDynamicAttributeCommandInterfacegetCommandAttributeNames in interface CompositeDynamicAttributeCommandInterfacecom.sas.commands.CompositeDynamicAttributeCommandInterfacepublic String getPeriodType()
public void setPeriodType(String value)
public String getNumberOfPeriods()
public void setNumberOfPeriods(String value)
public String getSelectOption()
public void setSelectOption(String value)
public String getStartingPeriodOption()
public void setStartingPeriodOption(String value)
public String getEndingPeriodOption()
public void setEndingPeriodOption(String value)
public String[] getSelectedPeriods()
public void setSelectedPeriods(String[] values)
public String getShowOption()
public void setShowOption(String value)
public String getSelectedStartingPeriod()
public void setSelectedStartingPeriod(String value)
public String getSelectedEndingPeriod()
public void setSelectedEndingPeriod(String value)
public void setRemoteAction(String value)
public String getRemoteAction()
public void setWhereCheckbox(String value)
value - the state of the 'where' checkboxpublic String getWhereCheckbox()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||