com.sas.dataselectors.calculateditems
Interface CalculatedItemListInterface

All Superinterfaces:
CalculatedItemMetadataInterface
All Known Subinterfaces:
CalculatedItemListV2Interface
All Known Implementing Classes:
BaseCalculatedItemListAdapter, BusinessModelToCalculatedItemListAdapter, BusinessQueryToCalculatedItemListAdapter, DataSelectionToCalculatedItemListAdapter, InformationMapToCalculatedItemListAdapter

@SASScope(value="ALL")
public interface CalculatedItemListInterface
extends CalculatedItemMetadataInterface

Description: Interface to a list of calculated items Copyright: Copyright (c) 2002 Company: SAS


Method Summary
abstract  boolean addCalculatedItem(CalculatedItemInterface value)
          adds to the end of the list (cursor position undefined after an add)
abstract  boolean canRemoveAllCalculatedItems()
          returns true if the list can be empty upon commit and false if at least one item must exist
abstract  void clearSelectionCursor()
          resets the selection cursor so that the isCalculatedItemSelected() call returns false
abstract  boolean commitChanges()
          Commit changed data
abstract  java.util.List getCalculatedItemList()
          get the list of filter test nodes
abstract  java.lang.String getDescription()
          Gets the description of this calculated item list.
abstract  FormatAdapterInterface getFormatAdapter()
          returns the format adapter
abstract  int getMaxLengthOfItemName()
          returns the maximum length of the name of a calculated item
abstract  java.lang.String getName()
          Gets the name of this calculated item list.
abstract  CalculatedItemInterface getSelectedCalculatedItem()
          Get the CalculatedItemInterface of the current selection
abstract  int getSelectionCount()
          get the number of selectable entries in the model
abstract  int getSelectionCursor()
          get the index of the selection model cursor
abstract  boolean isCalculatedItemSelected()
          true if there is a selected calculated item
abstract  CalculatedItemInterface newCalculatedItem()
          creates a new CalculatedItemInterface that is not persisted or added to the list yet
abstract  CalculatedItemInterface newCalculatedItem(CalculatedItemInterface toBeCloned)
          creates a clone of a CalculatedItemInterface that is not persisted or added to the list yet
abstract  void removeAllCalculatedItems()
          removes all of the items from the List
abstract  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.
abstract  void setDescription(java.lang.String description)
          Sets the description of this calculated item list.
abstract  void setName(java.lang.String name)
          Sets the name of this calculated item list.
abstract  void setSelectionCursor(int index)
          move the selection model cursor to a new selection index
abstract  void updateSelectedCalculatedItem(CalculatedItemInterface value)
          Update the CalculatedItemInterface of the current selection
 
Methods inherited from interface com.sas.dataselectors.calculateditems.CalculatedItemMetadataInterface
getBusinessDataSourceTree, getDataSourceTree, getFunctionListTree, getLevelHasMembers, getLevelNameMap, getLevelNames, getMaxOutputObservations, getMeasureNameMap, getMeasureNames, getMemberNames, getOperationList, getPhysicalDataSourceTree, getPromptDataSourceTree, setMaxOutputObservations
 

Method Detail

getName

java.lang.String getName()
Gets the name of this calculated item list.

Returns:
the name of this calculated item list, if one has been set; null otherwise.

setName

void setName(java.lang.String name)
Sets the name of this calculated item list.

Parameters:
name - the name of this calculated item list

getDescription

java.lang.String getDescription()
Gets the description of this calculated item list.

Returns:
the description of this calculated item list, if one has been set; null otherwise.

setDescription

void setDescription(java.lang.String description)
Sets the description of this calculated item list.

Parameters:
description - the description of this calculated item list

getCalculatedItemList

java.util.List getCalculatedItemList()
get the list of filter test nodes


commitChanges

boolean commitChanges()
Commit changed data

Returns:
boolean true if data updated

removeAllCalculatedItems

void removeAllCalculatedItems()
removes all of the items from the List


addCalculatedItem

boolean addCalculatedItem(CalculatedItemInterface value)
adds to the end of the list (cursor position undefined after an add)

Parameters:
CalculatedItemInterface -
Returns:
boolean true if successful

newCalculatedItem

CalculatedItemInterface newCalculatedItem()
creates a new CalculatedItemInterface that is not persisted or added to the list yet

Returns:
CalculatedItemInterface

newCalculatedItem

CalculatedItemInterface newCalculatedItem(CalculatedItemInterface toBeCloned)
creates a clone of a CalculatedItemInterface that is not persisted or added to the list yet

Returns:
CalculatedItemInterface

clearSelectionCursor

void clearSelectionCursor()
resets the selection cursor so that the isCalculatedItemSelected() call returns false


isCalculatedItemSelected

boolean isCalculatedItemSelected()
true if there is a selected calculated item

Returns:
boolean True if there is a calculated item selected

getSelectionCount

int getSelectionCount()
get the number of selectable entries in the model


getSelectionCursor

int getSelectionCursor()
get the index of the selection model cursor

Returns:
int the 0 based indes in the list of the current selection

setSelectionCursor

void setSelectionCursor(int index)
move the selection model cursor to a new selection index

Parameters:
int - the 0 based index in the list to be the new selection

getSelectedCalculatedItem

CalculatedItemInterface getSelectedCalculatedItem()
Get the CalculatedItemInterface of the current selection


updateSelectedCalculatedItem

void updateSelectedCalculatedItem(CalculatedItemInterface value)
Update the CalculatedItemInterface of the current selection


removeSelectedCalculatedItem

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.


canRemoveAllCalculatedItems

boolean canRemoveAllCalculatedItems()
returns true if the list can be empty upon commit and false if at least one item must exist


getFormatAdapter

FormatAdapterInterface getFormatAdapter()
returns the format adapter


getMaxLengthOfItemName

int getMaxLengthOfItemName()
returns the maximum length of the name of a calculated item




Copyright © 2009 SAS Institute Inc. All Rights Reserved.