|
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 CalculatedItemListInterface
CalculatedItemListInterface.getName()
public void setName(java.lang.String name)
CalculatedItemListInterface
setName
in interface CalculatedItemListInterface
name
- the name of this calculated item listCalculatedItemListInterface.setName(String)
public java.lang.String getDescription()
CalculatedItemListInterface
getDescription
in interface CalculatedItemListInterface
CalculatedItemListInterface.getDescription()
public void setDescription(java.lang.String description)
CalculatedItemListInterface
setDescription
in interface CalculatedItemListInterface
description
- the description of this calculated item listCalculatedItemListInterface.setDescription(String)
public java.util.List getCalculatedItemList()
CalculatedItemListInterface
getCalculatedItemList
in interface CalculatedItemListInterface
CalculatedItemListInterface.getCalculatedItemList()
public boolean commitChanges()
commitChanges
in interface CalculatedItemListInterface
public boolean getLevelHasMembers()
CalculatedItemMetadataInterface
getLevelHasMembers
in interface CalculatedItemMetadataInterface
CalculatedItemMetadataInterface.getMemberNames(String)
public java.lang.String[] getMeasureNames()
CalculatedItemMetadataInterface
getMeasureNames
in interface CalculatedItemMetadataInterface
public java.lang.String[] getMemberNames(java.lang.String levelName)
CalculatedItemMetadataInterface
getMemberNames
in interface CalculatedItemMetadataInterface
levelName
- the level for which to get the member names
CalculatedItemMetadataInterface.getLevelHasMembers()
public java.lang.String[] getLevelNames(boolean includeHierarchyName)
CalculatedItemMetadataInterface
getLevelNames
in interface CalculatedItemMetadataInterface
includeHierarchyName
- 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 CalculatedItemMetadataInterface
public java.util.Map getLevelNameMap(boolean includeHierarchyName)
CalculatedItemMetadataInterface
getLevelNameMap
in interface CalculatedItemMetadataInterface
includeHierarchyName
- 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 CalculatedItemMetadataInterface
public com.sas.expressions.visuals.FunctionTreeInterface getFunctionListTree()
CalculatedItemMetadataInterface
getFunctionListTree
in interface CalculatedItemMetadataInterface
public com.sas.expressions.visuals.OperationListInterface getOperationList()
CalculatedItemMetadataInterface
getOperationList
in interface CalculatedItemMetadataInterface
public com.sas.expressions.visuals.DataSourceTreeInterface getPhysicalDataSourceTree()
CalculatedItemMetadataInterface
getPhysicalDataSourceTree
in interface CalculatedItemMetadataInterface
public com.sas.expressions.visuals.DataSourceTreeInterface getBusinessDataSourceTree()
CalculatedItemMetadataInterface
getBusinessDataSourceTree
in interface CalculatedItemMetadataInterface
public com.sas.expressions.visuals.DataSourceTreeInterface getPromptDataSourceTree()
CalculatedItemMetadataInterface
getPromptDataSourceTree
in interface CalculatedItemMetadataInterface
public void removeAllCalculatedItems()
CalculatedItemListInterface
removeAllCalculatedItems
in interface CalculatedItemListInterface
public boolean isTimeDimensionPresent()
CalculatedItemListV2Interface
isTimeDimensionPresent
in interface CalculatedItemListV2Interface
public java.lang.Object getTimeHierarchy()
getTimeHierarchy
in interface CalculatedItemListV2Interface
public void setLocale(java.util.Locale locale)
setLocale
in interface CalculatedItemListV2Interface
public java.util.Locale getLocale()
getLocale
in interface CalculatedItemListV2Interface
public CalculatedItemInterface newCalculatedItem()
CalculatedItemListInterface
newCalculatedItem
in interface CalculatedItemListInterface
public CalculatedItemInterface newCalculatedItem(CalculatedItemInterface toBeCloned)
CalculatedItemListInterface
newCalculatedItem
in interface CalculatedItemListInterface
public boolean addCalculatedItem(CalculatedItemInterface value)
CalculatedItemListInterface
addCalculatedItem
in interface CalculatedItemListInterface
public boolean isCalculatedItemSelected()
CalculatedItemListInterface
isCalculatedItemSelected
in interface CalculatedItemListInterface
public void clearSelectionCursor()
CalculatedItemListInterface
clearSelectionCursor
in interface CalculatedItemListInterface
public int getSelectionCount()
CalculatedItemListInterface
getSelectionCount
in interface CalculatedItemListInterface
public int getSelectionCursor()
CalculatedItemListInterface
getSelectionCursor
in interface CalculatedItemListInterface
public void setSelectionCursor(int index)
CalculatedItemListInterface
setSelectionCursor
in interface CalculatedItemListInterface
public CalculatedItemInterface getSelectedCalculatedItem()
CalculatedItemListInterface
getSelectedCalculatedItem
in interface CalculatedItemListInterface
public void updateSelectedCalculatedItem(CalculatedItemInterface value)
CalculatedItemListInterface
updateSelectedCalculatedItem
in interface CalculatedItemListInterface
public void removeSelectedCalculatedItem()
CalculatedItemListInterface
removeSelectedCalculatedItem
in interface CalculatedItemListInterface
public boolean canRemoveAllCalculatedItems()
CalculatedItemListInterface
canRemoveAllCalculatedItems
in interface CalculatedItemListInterface
public int getMaxOutputObservations()
getMaxOutputObservations
in interface CalculatedItemMetadataInterface
public void setMaxOutputObservations(int max)
setMaxOutputObservations
in interface CalculatedItemMetadataInterface
max
- the new maximum number of output observationsGoverning
public FormatAdapterInterface getFormatAdapter()
CalculatedItemListInterface
getFormatAdapter
in interface CalculatedItemListInterface
public int getMaxLengthOfItemName()
CalculatedItemListInterface
getMaxLengthOfItemName
in interface CalculatedItemListInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |