|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.qualifiers.QualifiersSelectorAdapter
public class QualifiersSelectorAdapter
Constructor Summary | |
---|---|
QualifiersSelectorAdapter()
Constructor for QualifierSelectorAdapter. |
|
QualifiersSelectorAdapter(com.sas.iquery.metadata.business.BusinessModel model)
|
|
QualifiersSelectorAdapter(com.sas.iquery.metadata.business.BusinessQuery query)
|
|
QualifiersSelectorAdapter(com.sas.iquery.metadata.business.BusinessQuery query,
java.util.Map map)
|
Method Summary | |
---|---|
void |
clearButtonText(java.lang.String text)
Set the text displayed by the "clear" button, e.g. |
com.sas.iquery.metadata.business.BusinessModel |
getBusinessModel()
Returns the businessModel. |
com.sas.iquery.metadata.business.BusinessQuery |
getBusinessQuery()
Returns the businessQuery. |
java.lang.String |
getCubeName()
|
com.sas.iquery.metadata.business.DataItem |
getDataItem(java.lang.String id)
|
java.lang.String |
getDescription(int item)
The description for an item in the list. |
int |
getIndexForTreeValue(java.lang.String name)
|
java.util.Map |
getInitialValues()
Get a map containing the initial values for each item. |
java.lang.String |
getItemName()
Get the name of the item which the qualifiers apply to, e.g. |
MetadataInterface |
getMetadata()
|
java.lang.String |
getName(int item)
The display name for an item in the list. |
int |
getNumberOfItems()
The number of items in the list. |
java.lang.Object |
getSelectedNodeFor(int index,
javax.swing.tree.TreeModel treemodel)
|
java.lang.String |
getSelectedValue(int item)
|
java.lang.String |
getSkipItem()
Get the name of the item to skip in the list of items. |
javax.swing.tree.TreeModel |
getTreeModel(com.sas.iquery.metadata.business.DataItem dataItem)
|
javax.swing.tree.TreeModel |
getTreeModel(DimensionInterface dimension)
|
javax.swing.tree.TreeModel |
getTreeModel(int item)
Returns the TreeModel for an item in the list. |
javax.swing.tree.TreePath |
getTreePath(int item)
|
java.lang.String |
getValue(int item)
The value for an item in the list. |
void |
init(java.util.Map map)
|
void |
initialValues(java.util.Map values)
Set the initial values of the items |
boolean |
isEditOK()
Returns a status code specifying whether the user OK'ed or cancelled out of editor. |
void |
itemLabel(java.lang.String label)
Set the label of the item which the qualifiers apply to, e.g. |
void |
itemName(java.lang.String name)
Set the name of the item which the qualifiers apply to, e.g. |
void |
itemsLabel(java.lang.String label)
Set the label for the list of items which the qualifiers can be set to, e.g. |
void |
itemsListHeight(int height)
Sets the height of the list that displays the items, for Swing only, to be used together with preferredSize(). |
void |
itemsNameColumnLabel(java.lang.String label)
Set the label of the column of the item names in the list of items, e.g. |
void |
itemsValueColumnLabel(java.lang.String label)
Set the label of the column that contains the values of the qualifiers set on the items, in the list of items, e.g. |
void |
releaseMetadata()
|
java.util.Map |
selectedValues()
Returns the values that have been selected in the editor. |
void |
setBusinessModel(com.sas.iquery.metadata.business.BusinessModel businessModel)
Sets the businessModel. |
void |
setBusinessQuery(com.sas.iquery.metadata.business.BusinessQuery model)
Sets the businessQuery. |
void |
setInitialValues(java.util.Map map)
|
void |
setItemName(java.lang.String string)
|
void |
setSelectedValues(java.util.List newValues)
|
void |
setSkipItem(java.lang.String string)
|
void |
showEditor(java.lang.Object userData)
Displays the editor. |
void |
size(int width,
int height)
Set the size of the dialog being displayed, only for Swing |
void |
skipItem(java.lang.String itemID)
Set the index of the item not to be displayed in the list of items. |
Constructor Detail |
---|
public QualifiersSelectorAdapter(com.sas.iquery.metadata.business.BusinessQuery query, java.util.Map map)
public QualifiersSelectorAdapter(com.sas.iquery.metadata.business.BusinessQuery query)
public QualifiersSelectorAdapter(com.sas.iquery.metadata.business.BusinessModel model)
public QualifiersSelectorAdapter()
Method Detail |
---|
public void init(java.util.Map map)
public com.sas.iquery.metadata.business.BusinessQuery getBusinessQuery()
public void setBusinessQuery(com.sas.iquery.metadata.business.BusinessQuery model)
businessQuery
- The businessQuery to setpublic com.sas.iquery.metadata.business.BusinessModel getBusinessModel()
public void setBusinessModel(com.sas.iquery.metadata.business.BusinessModel businessModel)
businessModel
- The businessModel to setpublic java.lang.String getCubeName()
public int getNumberOfItems()
QualifiersSelectorInterface
getNumberOfItems
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
QualifiersSelectorInterface.getNumberOfItems()
public java.lang.String getName(int item)
QualifiersSelectorInterface
getName
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
item
- index of the item
QualifiersSelectorInterface.getName(int)
public java.lang.String getDescription(int item)
QualifiersSelectorInterface
getDescription
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
item
- index of the item
QualifiersSelectorInterface.getDescription(int)
public java.lang.String getValue(int item)
QualifiersSelectorInterface
getValue
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
item
- index of the item
public javax.swing.tree.TreeModel getTreeModel(int item)
QualifiersSelectorInterface
getTreeModel
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
item
- index of the item
public com.sas.iquery.metadata.business.DataItem getDataItem(java.lang.String id) throws com.sas.iquery.metadata.MetadataException
com.sas.iquery.metadata.MetadataException
public javax.swing.tree.TreeModel getTreeModel(com.sas.iquery.metadata.business.DataItem dataItem)
public javax.swing.tree.TreeModel getTreeModel(DimensionInterface dimension) throws com.sas.iquery.metadata.MetadataException, OLAPException
com.sas.iquery.metadata.MetadataException
OLAPException
public MetadataInterface getMetadata() throws OLAPException, com.sas.iquery.metadata.MetadataException
OLAPException
com.sas.iquery.metadata.MetadataException
public void releaseMetadata()
public int getIndexForTreeValue(java.lang.String name) throws com.sas.iquery.metadata.MetadataException, OLAPException
com.sas.iquery.metadata.MetadataException
OLAPException
public java.lang.Object getSelectedNodeFor(int index, javax.swing.tree.TreeModel treemodel) throws OLAPException
OLAPException
public void showEditor(java.lang.Object userData)
EditorInterface
userData
argument should be used to supply the editor with
the parent Frame.
showEditor
in interface com.sas.swing.dataselectors.editors.EditorInterface
public boolean isEditOK()
EditorInterface
isEditOK
in interface com.sas.swing.dataselectors.editors.EditorInterface
public void itemLabel(java.lang.String label)
QualifiersEditorInterface
itemLabel
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
label
- - the item's labelQualifiersEditorInterface.itemLabel(java.lang.String)
public void itemName(java.lang.String name)
QualifiersEditorInterface
itemName
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
name
- - the item's name.QualifiersEditorInterface.itemName(java.lang.String)
public void itemsLabel(java.lang.String label)
QualifiersEditorInterface
itemsLabel
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
label
- - the items list labelQualifiersEditorInterface.itemsLabel(java.lang.String)
public void itemsNameColumnLabel(java.lang.String label)
QualifiersEditorInterface
itemsNameColumnLabel
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
QualifiersEditorInterface.itemsNameColumnLabel(java.lang.String)
public void itemsValueColumnLabel(java.lang.String label)
QualifiersEditorInterface
itemsValueColumnLabel
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
QualifiersEditorInterface.itemsValueColumnLabel(java.lang.String)
public void clearButtonText(java.lang.String text)
QualifiersEditorInterface
clearButtonText
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
QualifiersEditorInterface.clearButtonText(java.lang.String)
public void skipItem(java.lang.String itemID)
QualifiersEditorInterface
skipItem
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
itemID
- - The id of the item not to be displayed in the list of itemsQualifiersEditorInterface.skipItem(java.lang.String)
public java.util.Map selectedValues()
QualifiersEditorInterface
selectedValues
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
QualifiersEditorInterface.selectedValues()
public void initialValues(java.util.Map values)
QualifiersEditorInterface
initialValues
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
values
- - The Map containing the initial values for the items.
In the Map there is an element for each item that has an initial value, the
element's key is the unique id of the item while the element's
value is the unique id of the initial value.QualifiersEditorInterface.initialValues(java.util.Map)
public void size(int width, int height)
QualifiersEditorInterface
size
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
QualifiersEditorInterface.size(int, int)
public void itemsListHeight(int height)
QualifiersEditorInterface
itemsListHeight
in interface com.sas.swing.dataselectors.editors.QualifiersEditorInterface
QualifiersEditorInterface.itemsListHeight(int)
public java.util.Map getInitialValues()
QualifiersSelectorInterface
getInitialValues
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
public java.lang.String getItemName()
QualifiersSelectorInterface
getItemName
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
public java.lang.String getSkipItem()
QualifiersSelectorInterface
getSkipItem
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
public void setInitialValues(java.util.Map map)
map
- public void setItemName(java.lang.String string)
string
- public void setSkipItem(java.lang.String string)
string
- public void setSelectedValues(java.util.List newValues)
setSelectedValues
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
public javax.swing.tree.TreePath getTreePath(int item)
getTreePath
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
public java.lang.String getSelectedValue(int item)
getSelectedValue
in interface com.sas.dataselectors.qualifiers.QualifiersSelectorInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |