|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.dataselectors.calculateditems.BaseCalculatedItemListAdapter
public abstract class BaseCalculatedItemListAdapter
Description: This is the base adapter for going from a CalculatedObjectFactoryInterface to a CalculatedItemListInterface. The super implementation should mint a CalculatedObjectFactoryInterface as needed. Copyright: Copyright (c) 2002 Company: SAS
| Nested Class Summary | |
|---|---|
class |
BaseCalculatedItemListAdapter.InnerListOfCalculatedItems
Description: List implementation to work with calculated items |
| Field Summary | |
|---|---|
protected java.util.List |
_calculatedItemList
The List storing the calculated items in this dataselection. |
protected java.lang.String |
_description
The description of this calculated item. |
protected java.lang.String |
_name
The name of this calculated item. |
protected CalculatedObjectFactoryInterface |
_objectFactory
The factory for getting objects and metadata |
protected int |
_selectionIndex
The currently selected Calculated Item index (-1 = unselected) |
static java.lang.String |
RB_KEY
|
| Method Summary | |
|---|---|
boolean |
addCalculatedItem(CalculatedItemInterface value)
adds to the end of the list (cursor position undefined after an add) |
boolean |
canRemoveAllCalculatedItems()
returns true if the list can be empty upon commit and false if at least one item must exist |
void |
clearSelectionCursor()
resets the selection cursor so that the isCalculatedItemSelected() call returns false |
boolean |
commitChanges()
Commit changed data |
com.sas.expressions.visuals.DataSourceTreeInterface |
getBusinessDataSourceTree()
Get the DataSource tree model from the Business (Data Item) view of the business model |
java.util.List |
getCalculatedItemList()
get the list of filter test nodes |
com.sas.expressions.visuals.DataSourceTreeInterface |
getDataSourceTree()
Get the Default DataSource tree model for this business model |
java.lang.String |
getDescription()
Gets the description of this calculated item list. |
FormatAdapterInterface |
getFormatAdapter()
returns the format adapter |
com.sas.expressions.visuals.FunctionTreeInterface |
getFunctionListTree()
Get the Category Tree with Function Lists model |
boolean |
getLevelHasMembers()
Determines if the levels of data contained by this adapter have members or not. |
java.util.Map |
getLevelNameMap(boolean includeHierarchyName)
Gets the level names in a map with the Level Display names as the keys and the insertable text as the values. |
java.lang.String[] |
getLevelNames(boolean includeHierarchyName)
Gets the level names. |
java.util.Locale |
getLocale()
|
int |
getMaxLengthOfItemName()
returns the maximum length of the name of a calculated item |
int |
getMaxOutputObservations()
Returns the current maximum number of output observations returned when gathering a list of possible values for a data item or physical item in the data source tree. |
java.util.Map |
getMeasureNameMap()
Gets the measure names and each insertable value. |
java.lang.String[] |
getMeasureNames()
Gets the measure names. |
java.lang.String[] |
getMemberNames(java.lang.String levelName)
Get the member names for a given level. |
java.lang.String |
getName()
Gets the name of this calculated item list. |
com.sas.expressions.visuals.OperationListInterface |
getOperationList()
Get the Operations List model |
com.sas.expressions.visuals.DataSourceTreeInterface |
getPhysicalDataSourceTree()
Get the DataSource tree model from the Physical view of the business model |
com.sas.expressions.visuals.DataSourceTreeInterface |
getPromptDataSourceTree()
Get the DataSource tree model containing the prompts of the business model |
CalculatedItemInterface |
getSelectedCalculatedItem()
Get the CalculatedItemInterface of the current selection |
int |
getSelectionCount()
get the number of selectable entries in the model |
int |
getSelectionCursor()
get the index of the selection model cursor |
java.lang.Object |
getTimeHierarchy()
|
boolean |
isCalculatedItemSelected()
true if there is a selected calculated item |
boolean |
isTimeDimensionPresent()
Returns if a time dimension is present in the query |
CalculatedItemInterface |
newCalculatedItem()
creates a new CalculatedItemInterface that is not persisted or added to the list yet |
CalculatedItemInterface |
newCalculatedItem(CalculatedItemInterface toBeCloned)
creates a clone of a CalculatedItemInterface that is not persisted or added to the list yet |
void |
removeAllCalculatedItems()
removes all of the items from the List |
void |
removeSelectedCalculatedItem()
removes the current selection from the List (cursor position is undefined after remove) Calculated Items are not fully removed from presistance until the commit call is made. |
void |
setDescription(java.lang.String description)
Sets the description of this calculated item list. |
void |
setLocale(java.util.Locale locale)
|
void |
setMaxOutputObservations(int max)
Sets the current maximum number of output observations to be returned when gathering a list of possible values for a data item or physical item in the data source tree. |
void |
setName(java.lang.String name)
Sets the name of this calculated item list. |
void |
setSelectionCursor(int index)
move the selection model cursor to a new selection index |
void |
updateSelectedCalculatedItem(CalculatedItemInterface value)
Update the CalculatedItemInterface of the current selection |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
protected java.lang.String _name
protected java.lang.String _description
protected java.util.List _calculatedItemList
protected CalculatedObjectFactoryInterface _objectFactory
protected int _selectionIndex
| Method Detail |
|---|
public java.lang.String getName()
CalculatedItemListInterface
getName in interface CalculatedItemListInterfaceCalculatedItemListInterface.getName()public void setName(java.lang.String name)
CalculatedItemListInterface
setName in interface CalculatedItemListInterfacename - the name of this calculated item listCalculatedItemListInterface.setName(String)public java.lang.String getDescription()
CalculatedItemListInterface
getDescription in interface CalculatedItemListInterfaceCalculatedItemListInterface.getDescription()public void setDescription(java.lang.String description)
CalculatedItemListInterface
setDescription in interface CalculatedItemListInterfacedescription - the description of this calculated item listCalculatedItemListInterface.setDescription(String)public java.util.List getCalculatedItemList()
CalculatedItemListInterface
getCalculatedItemList in interface CalculatedItemListInterfaceCalculatedItemListInterface.getCalculatedItemList()public boolean commitChanges()
commitChanges in interface CalculatedItemListInterfacepublic boolean getLevelHasMembers()
CalculatedItemMetadataInterface
getLevelHasMembers in interface CalculatedItemMetadataInterfaceCalculatedItemMetadataInterface.getMemberNames(String)public java.lang.String[] getMeasureNames()
CalculatedItemMetadataInterface
getMeasureNames in interface CalculatedItemMetadataInterfacepublic java.lang.String[] getMemberNames(java.lang.String levelName)
CalculatedItemMetadataInterface
getMemberNames in interface CalculatedItemMetadataInterfacelevelName - the level for which to get the member names
CalculatedItemMetadataInterface.getLevelHasMembers()public java.lang.String[] getLevelNames(boolean includeHierarchyName)
CalculatedItemMetadataInterface
getLevelNames in interface CalculatedItemMetadataInterfaceincludeHierarchyName - set to true if the hierarchy name for a given level is to
be returned (only used if getLevelHasMembers() is true)
CalculatedItemMetadataInterface.getLevelHasMembers()public java.util.Map getMeasureNameMap()
CalculatedItemMetadataInterface
getMeasureNameMap in interface CalculatedItemMetadataInterfacepublic java.util.Map getLevelNameMap(boolean includeHierarchyName)
CalculatedItemMetadataInterface
getLevelNameMap in interface CalculatedItemMetadataInterfaceincludeHierarchyName - set to true if the hierarchy name for a given level is to
be returned (only used if getLevelHasMembers() is true)
CalculatedItemMetadataInterface.getLevelHasMembers()public com.sas.expressions.visuals.DataSourceTreeInterface getDataSourceTree()
CalculatedItemMetadataInterface
getDataSourceTree in interface CalculatedItemMetadataInterfacepublic com.sas.expressions.visuals.FunctionTreeInterface getFunctionListTree()
CalculatedItemMetadataInterface
getFunctionListTree in interface CalculatedItemMetadataInterfacepublic com.sas.expressions.visuals.OperationListInterface getOperationList()
CalculatedItemMetadataInterface
getOperationList in interface CalculatedItemMetadataInterfacepublic com.sas.expressions.visuals.DataSourceTreeInterface getPhysicalDataSourceTree()
CalculatedItemMetadataInterface
getPhysicalDataSourceTree in interface CalculatedItemMetadataInterfacepublic com.sas.expressions.visuals.DataSourceTreeInterface getBusinessDataSourceTree()
CalculatedItemMetadataInterface
getBusinessDataSourceTree in interface CalculatedItemMetadataInterfacepublic com.sas.expressions.visuals.DataSourceTreeInterface getPromptDataSourceTree()
CalculatedItemMetadataInterface
getPromptDataSourceTree in interface CalculatedItemMetadataInterfacepublic void removeAllCalculatedItems()
CalculatedItemListInterface
removeAllCalculatedItems in interface CalculatedItemListInterfacepublic boolean isTimeDimensionPresent()
CalculatedItemListV2Interface
isTimeDimensionPresent in interface CalculatedItemListV2Interfacepublic java.lang.Object getTimeHierarchy()
getTimeHierarchy in interface CalculatedItemListV2Interfacepublic void setLocale(java.util.Locale locale)
setLocale in interface CalculatedItemListV2Interfacepublic java.util.Locale getLocale()
getLocale in interface CalculatedItemListV2Interfacepublic CalculatedItemInterface newCalculatedItem()
CalculatedItemListInterface
newCalculatedItem in interface CalculatedItemListInterfacepublic CalculatedItemInterface newCalculatedItem(CalculatedItemInterface toBeCloned)
CalculatedItemListInterface
newCalculatedItem in interface CalculatedItemListInterfacepublic boolean addCalculatedItem(CalculatedItemInterface value)
CalculatedItemListInterface
addCalculatedItem in interface CalculatedItemListInterfacepublic boolean isCalculatedItemSelected()
CalculatedItemListInterface
isCalculatedItemSelected in interface CalculatedItemListInterfacepublic void clearSelectionCursor()
CalculatedItemListInterface
clearSelectionCursor in interface CalculatedItemListInterfacepublic int getSelectionCount()
CalculatedItemListInterface
getSelectionCount in interface CalculatedItemListInterfacepublic int getSelectionCursor()
CalculatedItemListInterface
getSelectionCursor in interface CalculatedItemListInterfacepublic void setSelectionCursor(int index)
CalculatedItemListInterface
setSelectionCursor in interface CalculatedItemListInterfacepublic CalculatedItemInterface getSelectedCalculatedItem()
CalculatedItemListInterface
getSelectedCalculatedItem in interface CalculatedItemListInterfacepublic void updateSelectedCalculatedItem(CalculatedItemInterface value)
CalculatedItemListInterface
updateSelectedCalculatedItem in interface CalculatedItemListInterfacepublic void removeSelectedCalculatedItem()
CalculatedItemListInterface
removeSelectedCalculatedItem in interface CalculatedItemListInterfacepublic boolean canRemoveAllCalculatedItems()
CalculatedItemListInterface
canRemoveAllCalculatedItems in interface CalculatedItemListInterfacepublic int getMaxOutputObservations()
getMaxOutputObservations in interface CalculatedItemMetadataInterfacepublic void setMaxOutputObservations(int max)
setMaxOutputObservations in interface CalculatedItemMetadataInterfacemax - the new maximum number of output observationsGoverningpublic FormatAdapterInterface getFormatAdapter()
CalculatedItemListInterface
getFormatAdapter in interface CalculatedItemListInterfacepublic int getMaxLengthOfItemName()
CalculatedItemListInterface
getMaxLengthOfItemName in interface CalculatedItemListInterface
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||