|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.dataitems.DataItemSelectorModel
public class DataItemSelectorModel
This class extends the base DataItemSelector model to provide data logic specific to the BusinessModel/BusinessQuery API. Subclasses of this model can exist to provide specific sets of roles for a given entity such as a relational table or a bar chart.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sas.dataselectors.dataitems.BaseDataItemSelectorModel |
---|
BaseDataItemSelectorModel.Role |
Field Summary | |
---|---|
protected com.sas.iquery.metadata.business.BusinessModel |
_businessModel
|
protected com.sas.iquery.metadata.business.InformationMap |
iMap
|
static java.lang.String |
RB_KEY
|
Fields inherited from class com.sas.dataselectors.dataitems.BaseDataItemSelectorModel |
---|
_dataItemMap, _locale, _rolesList, action, CANCEL_MODE, CHANGE_QUERY_TYPE, CHANGE_ROLE, COMMIT, COMMIT_MODE, data, MOVE_ITEM_DOWN, MOVE_ITEM_TO_POSITION, MOVE_ITEM_UP, MOVE_ITEMS, originalItemList, positionToMoveTo, PROCESS_MODE, queryType, role, selectedItems, SHOW_MODE, SORT_ITEMS, unselectedItems, UPDATE_ITEMS |
Fields inherited from interface com.sas.dataselectors.dataitems.DataItemSelectorInterface |
---|
DISPLAY_DETAIL_VALUES, GROUP_BY_CATEGORY_VALUES |
Fields inherited from interface com.sas.dataselectors.SelectorCommitInterface |
---|
EXCEPTION_OCCURRED |
Constructor Summary | |
---|---|
DataItemSelectorModel()
|
|
DataItemSelectorModel(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
Constructor. |
|
DataItemSelectorModel(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
com.sas.iquery.metadata.business.InformationMap imap)
|
Method Summary | |
---|---|
protected void |
addItemToRole(java.lang.Object item,
com.sas.util.RoleInterface role,
java.util.List roleList,
java.util.Map itemMap)
|
void |
cleanUp(java.lang.String mode)
For each added role, removes from the business model all DataItemReference objects created during processing of the selector. |
protected void |
createRoles()
|
protected javax.swing.tree.TreeModel |
getAvailableTreeModel(java.util.List allItems,
java.util.List availableItems,
com.sas.util.transforms.TransformInterface transform)
|
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. |
protected java.lang.Object |
getBaseItem(java.lang.Object item)
|
protected java.lang.String |
getItemCategory(java.lang.Object item)
|
protected java.lang.String |
getItemDefaultImage(java.lang.Object item)
|
protected java.lang.String |
getItemDescription(java.lang.Object item)
|
protected java.lang.String |
getItemDisabledImage(java.lang.Object item)
|
protected java.lang.String |
getItemID(java.lang.Object item)
|
protected java.lang.String |
getItemLabel(java.lang.Object item)
|
java.util.List |
getMoveTargetRoles()
Returns a list of RoleInterface objects that the items contained in the selectedItems parameter can be moved to. |
java.util.List |
getRoleItems()
|
protected java.lang.String |
getRoleLabel(java.lang.String role)
|
com.sas.util.RoleInterface[] |
getRoles()
|
protected javax.swing.tree.TreeNode |
getSelectedTreeNode(com.sas.util.RoleInterface role,
com.sas.util.transforms.TransformInterface transform,
java.lang.String selectedRole)
|
protected boolean |
isCalculatedItem(java.lang.Object item)
|
protected boolean |
isDetailUsageSupported(java.lang.Object item)
|
protected boolean |
isItemActionSupported(java.lang.Object item,
java.lang.String queryType)
|
protected boolean |
isItemAReference(java.lang.Object item)
|
protected boolean |
isItemUsageDetail(java.lang.Object item)
|
protected boolean |
isMeasure(java.lang.Object item)
|
protected java.util.List |
removeDuplicateItems(java.util.List allItems)
Convenience method to create a list of items such that each item in the list is unique. |
protected void |
removeItemFromRole(java.lang.Object item,
java.util.List roleList,
java.util.List refList)
|
protected java.util.List |
removeItemsNotSupportingDetail(java.util.List items)
Removes the items from the passed in list that do not support the detail usage. |
protected java.util.List |
removeNotUsableItems(java.util.List allDataItems)
Convenience method that removes all items in the list that are not usable in the query for some reason. |
protected void |
setItemUsage(java.lang.Object item,
java.lang.String queryType)
|
protected void |
setOriginalItemList(java.util.List allItems)
Maintains a list of item IDs for the specified items. |
Field Detail |
---|
protected com.sas.iquery.metadata.business.BusinessModel _businessModel
protected com.sas.iquery.metadata.business.InformationMap iMap
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public DataItemSelectorModel()
public DataItemSelectorModel(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
businessquery
- - the data model to query for the adapter informationpublic DataItemSelectorModel(com.sas.iquery.metadata.business.BusinessQuery businessQuery, com.sas.iquery.metadata.business.InformationMap imap)
Method Detail |
---|
public java.util.List getRoleItems()
getRoleItems
in interface com.sas.util.RoleProviderInterface
getRoleItems
in class BaseDataItemSelectorModel
public com.sas.util.RoleInterface[] getRoles()
getRoles
in interface com.sas.util.RoleProviderInterface
getRoles
in class BaseDataItemSelectorModel
public javax.swing.tree.TreeModel getAvailableTreeModel(com.sas.util.transforms.TransformInterface transform, java.lang.String selectedRole)
DataItemSelectorInterface
getAvailableTreeModel
in interface DataItemSelectorInterface
getAvailableTreeModel
in class BaseDataItemSelectorModel
transform
- - an optional transform objectselectedRole
- - the currently selected role
public void cleanUp(java.lang.String mode)
DataItemSelectorInterface
cleanUp
in interface DataItemSelectorInterface
cleanUp
in class BaseDataItemSelectorModel
mode
- - an optional mode identifier (this can be null)protected javax.swing.tree.TreeModel getAvailableTreeModel(java.util.List allItems, java.util.List availableItems, com.sas.util.transforms.TransformInterface transform)
getAvailableTreeModel
in class BaseDataItemSelectorModel
protected javax.swing.tree.TreeNode getSelectedTreeNode(com.sas.util.RoleInterface role, com.sas.util.transforms.TransformInterface transform, java.lang.String selectedRole)
getSelectedTreeNode
in class BaseDataItemSelectorModel
protected java.util.List removeNotUsableItems(java.util.List allDataItems)
removeNotUsableItems
in class BaseDataItemSelectorModel
allDataItems
- - a list of DataItems
protected java.util.List removeDuplicateItems(java.util.List allItems)
removeDuplicateItems
in class BaseDataItemSelectorModel
allItems
- - a list of items
protected java.util.List removeItemsNotSupportingDetail(java.util.List items)
removeItemsNotSupportingDetail
in class BaseDataItemSelectorModel
items
- - a list of items
protected void setOriginalItemList(java.util.List allItems)
setOriginalItemList
in class BaseDataItemSelectorModel
protected java.lang.String getItemID(java.lang.Object item)
getItemID
in class BaseDataItemSelectorModel
protected java.lang.String getItemLabel(java.lang.Object item)
getItemLabel
in class BaseDataItemSelectorModel
protected java.lang.String getItemDescription(java.lang.Object item)
getItemDescription
in class BaseDataItemSelectorModel
protected java.lang.String getItemCategory(java.lang.Object item)
getItemCategory
in class BaseDataItemSelectorModel
protected java.lang.String getItemDefaultImage(java.lang.Object item)
getItemDefaultImage
in class BaseDataItemSelectorModel
protected java.lang.String getItemDisabledImage(java.lang.Object item)
getItemDisabledImage
in class BaseDataItemSelectorModel
protected boolean isCalculatedItem(java.lang.Object item)
isCalculatedItem
in class BaseDataItemSelectorModel
protected boolean isDetailUsageSupported(java.lang.Object item)
isDetailUsageSupported
in class BaseDataItemSelectorModel
protected boolean isItemUsageDetail(java.lang.Object item)
isItemUsageDetail
in class BaseDataItemSelectorModel
protected boolean isItemActionSupported(java.lang.Object item, java.lang.String queryType)
isItemActionSupported
in class BaseDataItemSelectorModel
protected void setItemUsage(java.lang.Object item, java.lang.String queryType)
setItemUsage
in class BaseDataItemSelectorModel
protected java.lang.Object getBaseItem(java.lang.Object item)
getBaseItem
in class BaseDataItemSelectorModel
protected java.lang.String getRoleLabel(java.lang.String role)
getRoleLabel
in class BaseDataItemSelectorModel
protected boolean isItemAReference(java.lang.Object item)
isItemAReference
in class BaseDataItemSelectorModel
protected boolean isMeasure(java.lang.Object item)
isMeasure
in class BaseDataItemSelectorModel
protected void addItemToRole(java.lang.Object item, com.sas.util.RoleInterface role, java.util.List roleList, java.util.Map itemMap)
addItemToRole
in class BaseDataItemSelectorModel
protected void removeItemFromRole(java.lang.Object item, java.util.List roleList, java.util.List refList)
removeItemFromRole
in class BaseDataItemSelectorModel
protected void createRoles()
public java.util.List getMoveTargetRoles()
DataItemSelectorInterface
getMoveTargetRoles
in interface DataItemSelectorInterface
getMoveTargetRoles
in class BaseDataItemSelectorModel
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |