|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
@SASScope(value="ALL") public interface DataItemSelectorInterface
Defines the basic set of methods required of a model for the DataItemSelector.
| Field Summary | |
|---|---|
static java.lang.String |
DISPLAY_DETAIL_VALUES
Constant for the Detail query type |
static java.lang.String |
GROUP_BY_CATEGORY_VALUES
Constant for the Group By query type |
| Method Summary | |
|---|---|
abstract boolean |
allQueryItemsAreDetailUsage()
Indicates if all items selected for each role are set to detail usage. |
abstract void |
cleanUp(java.lang.String mode)
For each added role, removes from the business model all DataItemReference objects created during processing of the selector. |
abstract java.util.List |
getAllAvailableNodeIds(boolean useOriginalIds)
Returns a list of the ids for all items in the available list. |
abstract java.util.List |
getAvailableEnabledNodeIds(java.lang.String selectedRole)
Returns a list of the item ids for the items available for selection for the selected role. |
abstract java.util.List |
getAvailableItemInfoList(java.lang.String selectedRole)
Returns a list of DataItemTreeNodeInfo objects, representing the list of items available for the selected role. |
abstract javax.swing.tree.TreeModel |
getAvailableTreeModel(com.sas.util.transforms.TransformInterface transform,
java.lang.String selectedRole)
Creates a tree model representing the available items for the business model. |
abstract java.lang.String |
getBaseItemId(java.lang.String itemid)
Returns the base item id of the DataItemReference in the stored dataItem map identified by itemid. |
abstract java.util.Map |
getDataItemMap()
Returns the map of DataItems stored by their id |
abstract java.lang.Object |
getItemFromItemMap(java.lang.String itemid)
Returns the data item in the stored itemmap that corresponds to the itemid. |
abstract java.util.Locale |
getLocale()
Returns the locale object |
abstract java.util.List |
getMoveTargetRoles()
Returns a list of RoleInterface objects that the items contained in the selectedItems parameter can be moved to. |
abstract java.lang.String |
getQueryType()
Returns the current query type |
abstract java.util.List |
getSelectedItemInfoList(java.lang.String selectedRole)
Returns a list of DataItemTreeNodeInfo objects, representing the list of items assigned to the selected role. |
abstract javax.swing.tree.TreeModel |
getSelectedTreeModel(com.sas.util.transforms.TransformInterface transform,
java.lang.String selectedRole)
Creates a tree model representing the selected items for the business model. |
abstract java.lang.String |
getStatusMessage()
Checks for basic validity/completeness of the adapter and returns a status message indicating what is wrong with the adapter. |
abstract boolean |
isCalculatedItemSelected()
Indicates if a calculated item is selected for any of the assigned roles. |
abstract boolean |
isItemMoveDownValid()
Returns true if the items contained in the selectedItems parameter can be moved down in the model order. |
abstract boolean |
isItemMoveUpValid()
Returns true if the items contained in the selectedItems parameter can be moved up in the model order. |
abstract boolean |
isThisItemAReferenceInItemMap(java.lang.String itemid)
Convenience method that indicates if the item in the stored dataitem map identified by the passed in id is a DataItemReference. |
abstract boolean |
isThisItemInAvailableList(java.lang.String itemid,
com.sas.util.RoleInterface role)
Convenience method to determine if the data item identified by the passed in item id is available for selection for the indicated role. |
abstract boolean |
isThisItemInRoleRefList(java.lang.String itemid,
com.sas.util.RoleInterface role)
Indicates if the item identified by the passed in item id is in the list of DataItemReferences created by addRoleItem for the indicated role. |
abstract boolean |
queryItemsSupportDetailUsage()
Indicates if all items selected for each role support the detail usage. |
abstract void |
setLocale(java.util.Locale locale)
Sets the locale object to ensure that all messages returned are properly translated. |
abstract void |
setQueryType(java.lang.String queryType)
Sets the value for the query type for relational queries. |
abstract void |
setSelectedItems(java.lang.String[] items)
Sets the array of selected data items. |
abstract void |
setSelectedItemsQueryType(java.lang.String queryType)
Sets the DataItem usage for each of the selected items. |
| Methods inherited from interface com.sas.util.RoleProviderInterface |
|---|
getRoleItems, getRoles |
| Field Detail |
|---|
static final java.lang.String GROUP_BY_CATEGORY_VALUES
static final java.lang.String DISPLAY_DETAIL_VALUES
| Method Detail |
|---|
javax.swing.tree.TreeModel getAvailableTreeModel(com.sas.util.transforms.TransformInterface transform,
java.lang.String selectedRole)
transform - - an optional transform objectselectedRole - - the currently selected role
java.util.List getAvailableEnabledNodeIds(java.lang.String selectedRole)
selectedRole - - the currently selected role
java.util.List getAllAvailableNodeIds(boolean useOriginalIds)
userOriginalIds - - if true, the list will contain the ids of the baseDataItem for each
DataItemReference in the available list
java.util.List getAvailableItemInfoList(java.lang.String selectedRole)
role - The role of interest
DataItemTreeNodeInfojava.util.List getSelectedItemInfoList(java.lang.String selectedRole)
selectedRole - The role of interest
DataItemTreeNodeInfo
javax.swing.tree.TreeModel getSelectedTreeModel(com.sas.util.transforms.TransformInterface transform,
java.lang.String selectedRole)
transform - - an optional transform objectselectedRole - - the currently selected role
java.util.Map getDataItemMap()
void cleanUp(java.lang.String mode)
mode - - an optional mode identifier (this can be null)void setLocale(java.util.Locale locale)
locale - - the locale objectjava.util.Locale getLocale()
java.lang.Object getItemFromItemMap(java.lang.String itemid)
itemid - - the id of the item to return
java.lang.String getBaseItemId(java.lang.String itemid)
itemid - - the id of the DataItemReference to find in the map
boolean isThisItemAReferenceInItemMap(java.lang.String itemid)
itemid - - the id of the item to search for in the dataitem map
boolean isThisItemInAvailableList(java.lang.String itemid,
com.sas.util.RoleInterface role)
itemid - - the id of the item in the available listrole - - the role of interest
boolean isThisItemInRoleRefList(java.lang.String itemid,
com.sas.util.RoleInterface role)
itemid - - the id of the DataItemrole - - the role of interest
boolean isCalculatedItemSelected()
boolean queryItemsSupportDetailUsage()
DataItemActionTypeboolean allQueryItemsAreDetailUsage()
DataItemActionTypevoid setSelectedItemsQueryType(java.lang.String queryType)
queryType - - The query type string. This should be "group" or "detail".DataItemActionTypevoid setQueryType(java.lang.String queryType)
role - The query typejava.lang.String getQueryType()
boolean isItemMoveUpValid()
boolean isItemMoveDownValid()
java.lang.String getStatusMessage()
java.util.List getMoveTargetRoles()
void setSelectedItems(java.lang.String[] items)
items - The array of selected items
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||