|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.dataselectors.filters.OLAPMemberTreeNode
public class OLAPMemberTreeNode
This class defines a single node within an OLAP member tree model. It combines the
FilterValueInterface and LabeledStringValueInterface to
provide for selectable entries in both the filter model and qualifier selector model.
| Constructor Summary | |
|---|---|
|
OLAPMemberTreeNode(com.sas.iquery.metadata.business.DataItem dataItem)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(DimensionInterface dimension)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(HierarchyInterface hierarchy)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(LevelInterface level)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(MemberInterface member)
Constructs a new tree node from the given source model object. |
protected |
OLAPMemberTreeNode(MetadataEntityInterface entity)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(java.lang.Object userObject)
Constructs a new tree node containing the specified data object. |
|
OLAPMemberTreeNode(java.lang.Object userObject,
boolean allowsChildren)
Constructs a new tree node containing the specified data object. |
|
OLAPMemberTreeNode(TupleElementInterface element)
Constructs a new tree node from the given source model object. |
| Method Summary | |
|---|---|
java.lang.Object |
getData()
Returns the data for this node. |
int |
getDataType()
Returns the data type this value represents. |
java.lang.Object |
getFormat()
Returns the format for this value. |
java.lang.String |
getFormattedValue()
Returns the formatted representation of this value. |
java.lang.String |
getLabel()
Returns the label for this node. |
java.lang.Object |
getUnformattedValue()
Returns the unformatted representation of this value. |
java.lang.String |
getValue()
Returns the value for this node. |
void |
setDataType(int i)
Sets the data type this value represents. |
void |
setFormat(java.lang.Object object)
Sets the format for this value. |
void |
setLabel(java.lang.String string)
Sets the label for this node. |
void |
setValue(java.lang.Object object)
Sets the data for this node. |
java.lang.String |
toString()
Returns a text representation of this node. |
| Constructor Detail |
|---|
public OLAPMemberTreeNode(java.lang.Object userObject)
userObject - the data for this node
public OLAPMemberTreeNode(java.lang.Object userObject,
boolean allowsChildren)
userObject - the data for this nodeallowsChildren - if true, the node is allowed to have child
nodes -- otherwise, it is always a leaf nodeDefaultMutableTreeNode.getAllowsChildren()
protected OLAPMemberTreeNode(MetadataEntityInterface entity)
throws OLAPException
entity - the source object to examine
OLAPException - if any errors occur while gathering metadata
public OLAPMemberTreeNode(HierarchyInterface hierarchy)
throws OLAPException
hierarchy - the source object to examine
OLAPException - if any errors occur while gathering metadata
public OLAPMemberTreeNode(DimensionInterface dimension)
throws OLAPException
dimension - the source object to examine
OLAPException - if any errors occur while gathering metadata
public OLAPMemberTreeNode(LevelInterface level)
throws OLAPException
level - the source object to examine
OLAPException - if any errors occur while gathering metadata
public OLAPMemberTreeNode(MemberInterface member)
throws OLAPException
member - the source object to examine
OLAPException - if any errors occur while gathering metadata
public OLAPMemberTreeNode(com.sas.iquery.metadata.business.DataItem dataItem)
throws com.sas.iquery.metadata.MetadataException
dataItem - the source object to examine
com.sas.iquery.metadata.MetadataException - if any errors occur while gathering metadata
public OLAPMemberTreeNode(TupleElementInterface element)
throws OLAPException
element - the source object to examine
OLAPException - if any errors occur while gathering metadata| Method Detail |
|---|
public java.lang.String getLabel()
getLabel in interface LabeledStringValueInterfacepublic java.lang.String getValue()
getValue in interface LabeledStringValueInterfacepublic void setLabel(java.lang.String string)
string - the new label for this nodepublic java.lang.String getFormattedValue()
getFormattedValue in interface FilterValueInterfaceFilterValueInterface.getFormattedValue()public java.lang.Object getUnformattedValue()
getUnformattedValue in interface FilterValueInterfaceFilterValueInterface.getUnformattedValue()public int getDataType()
getDataType in interface FilterValueInterfacepublic java.lang.Object getFormat()
getFormat in interface FilterValueInterfacepublic java.lang.Object getData()
getData in interface FilterValueInterfacepublic java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNodepublic void setDataType(int i)
i - the new data typepublic void setFormat(java.lang.Object object)
object - the new format for this valuepublic void setValue(java.lang.Object object)
object - the data for this node
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||