Package com.microstrategy.web.objects
Class WebGridUnitShortcutNodeImpl
- java.lang.Object
-
- com.microstrategy.web.objects.WebGridUnitShortcutNodeImpl
-
- All Implemented Interfaces:
WebFormatHost,WebGridUnitShortcutNode,WebNode,WebPromptableNode,WebPromptSite,WebShortcutNode
public class WebGridUnitShortcutNodeImpl extends java.lang.Object implements WebGridUnitShortcutNode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendChild(WebNode newChild)Appends the given node to the end of the current node's list of child nodes.voidclear()Removes all child nodes from the current node.voidclearPlaceHolder()Deletes the place holder defined on this node.booleancontainsNonSystemPrompts()booleancontainsPrompts()Returns true if this node or any of its children has prompts.WebNodePlaceHoldercreatePlaceHolder()Creates a place holder on this node.voidgenerateFormatDelta(WebFormat f, WebPropertyObj p)booleangetCanExpand()Returns the value of the can expand property on the node.WebNodegetChild(int index)Returns the child node with the given (0-based) index in the collection.intgetChildCount()Returns the number of child nodes of the current node.WebObjectInfogetDataSetObj()Returns the data set object a metric belongs to.intgetDataType()Returns the datatype of the current node.WebDimtygetDimensionality()Returns an object which can be used to specify the dimensionality of the node.intgetDimensionalityType()Returns the dimensionality type of the current node.java.lang.StringgetDisplayName()Returns the currently set display name of this node.intgetExpressionType()Returns the expression type of the current node.WebObjectsFactorygetFactory()WebNodegetFirstChild()Returns the first child node of the current node, or null if the current node has no child nodes.WebAttributeFormgetFormInfo()return the attribute form which the shortcut node refers to.booleangetIsIndependentCSI()Returns whether this node is independent from others.booleangetIsSpliced()Returns the value of the Is spliced property This is currently used in custom group elements.intgetKey()Returns the key of this node.WebNodegetLastChild()Returns the last child node of the current node, or null if the current node has no child nodes.WebNodegetNextSibling()Returns the current node's next sibling.java.lang.StringgetNodeKey()Return the nodeKeyintgetNodeType()Returns the node type of the current node.WebNodegetParent()Returns the parent of the current node, or null if this is the root node.WebNodePlaceHoldergetPlaceHolder()Returns the place holder associated on this node.WebNodegetPreviousSibling()Returns the current node's previous sibling.WebPromptInstancesgetPromptInstances()Returns a collection of prompt instances from this prompt site.java.lang.StringgetShortXML()Return the short xml representation of the node.booleangetShowChildren()booleangetShowParent()intgetSubExpressionCount()java.lang.StringgetTag()Returns the tag which is currently set on this node.WebObjectInfogetTarget()Returns the object which the shortcut refers to.protected int[]getTypesAllowed()intgetUCFlag()Returns the value of ucFlag.booleanhasChildNodes()Returns true if this node has child nodes, false if it does not.booleanhasPlaceHolder()Returns whether this node has a place holder defined on it.voidinsertAfter(WebNode newChild, WebNode refNode)Adds the given node to the current node's list of child nodes immediately after the reference node.voidinsertBefore(WebNode newChild, WebNode refNode)Adds the given node to the current node's list of child nodes immediately before the reference node.booleanisCancelledPrompt()voidremoveChild(WebNode childNode)Removes the given node from the collection of child nodes.voidreplaceChild(WebNode newChild, WebNode oldChild)Replaces the old node with the given new node in the expression.voidsetCanExpand(boolean b)Sets the can expand property.voidsetDataSetObj(WebObjectInfo _dataSet)Sets the data set object a metric belongs to.voidsetDataType(int _dataType)Sets the datatype of the current node.voidsetDimensionalityType(int dimensionalityType)Sets the dimensionality type of the current node.voidsetDisplayName(java.lang.String _displayName)Sets the display name of this node to the given value.voidsetExpressionType(int _expressionType)Sets the expression type of the current node to the given type.voidsetFormInfo(WebAttributeForm _formInfo)set the attribute form which the shortcut node refers to.voidsetIsIndependentCSI(boolean isIndependentCSI)Sets the node whether it is independent from others.voidsetIsSpliced(boolean b)Sets the is spliced property.voidsetNodeKey(java.lang.String _nodeKey)Set the nodeKeyprotected voidsetNodeType(int _nodeType)Set node typevoidsetShowChildren(boolean value)voidsetShowParent(boolean value)voidsetTag(java.lang.String _tag)Sets the tag on the node.voidsetTarget(WebObjectInfo _objectInfo)Sets the object which the shortcut refers to.voidsetUCFlag(int flag)Sets the value of ucFlag.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.objects.WebNode
appendChild, clear, clearPlaceHolder, containsPrompts, createPlaceHolder, getCanExpand, getChild, getChildCount, getDataType, getDimensionality, getDimensionalityType, getDisplayName, getExpressionType, getFirstChild, getIsIndependentCSI, getIsSpliced, getKey, getLastChild, getNextSibling, getNodeType, getParent, getPlaceHolder, getPreviousSibling, getShortXML, getTag, getUCFlag, hasChildNodes, hasPlaceHolder, insertAfter, insertBefore, isCancelledPrompt, removeChild, replaceChild, setCanExpand, setDataType, setDimensionalityType, setDisplayName, setExpressionType, setIsIndependentCSI, setIsSpliced, setTag, setUCFlag
-
Methods inherited from interface com.microstrategy.web.objects.WebPromptableNode
containsNonSystemPrompts
-
Methods inherited from interface com.microstrategy.web.objects.WebPromptSite
getPromptInstances
-
Methods inherited from interface com.microstrategy.web.objects.WebShortcutNode
getDataSetObj, setDataSetObj
-
-
-
-
Method Detail
-
setNodeKey
public void setNodeKey(java.lang.String _nodeKey)
Description copied from interface:WebGridUnitShortcutNodeSet the nodeKey- Specified by:
setNodeKeyin interfaceWebGridUnitShortcutNode
-
getNodeKey
public java.lang.String getNodeKey()
Description copied from interface:WebGridUnitShortcutNodeReturn the nodeKey- Specified by:
getNodeKeyin interfaceWebGridUnitShortcutNode- Returns:
- {String} nodeKey
-
setTarget
public void setTarget(WebObjectInfo _objectInfo) throws java.lang.IllegalArgumentException
Description copied from interface:WebShortcutNodeSets the object which the shortcut refers to.- Specified by:
setTargetin interfaceWebGridUnitShortcutNode- Specified by:
setTargetin interfaceWebShortcutNode- Parameters:
_objectInfo- AWebObjectInfoobject which describes the object which the shortcut node will refer to.- Throws:
java.lang.IllegalArgumentException- Thrown if the given target is null.- See Also:
WebShortcutNode.getTarget()
-
getTarget
public WebObjectInfo getTarget()
Description copied from interface:WebShortcutNodeReturns the object which the shortcut refers to.- Specified by:
getTargetin interfaceWebGridUnitShortcutNode- Specified by:
getTargetin interfaceWebShortcutNode- Returns:
- A
WebObjectInfoobject which describes the object which the shortcut node refers to. - See Also:
WebShortcutNode.setTarget(com.microstrategy.web.objects.WebObjectInfo)
-
setFormInfo
public void setFormInfo(WebAttributeForm _formInfo) throws java.lang.IllegalArgumentException
Description copied from interface:WebGridUnitShortcutNodeset the attribute form which the shortcut node refers to.- Specified by:
setFormInfoin interfaceWebGridUnitShortcutNode- Parameters:
_formInfo- AWebAttributeFormobject which describes the attribute form which the shortcut node will refer to.- Throws:
java.lang.IllegalArgumentException- Thrown if the argument is null.
-
getFormInfo
public WebAttributeForm getFormInfo()
Description copied from interface:WebGridUnitShortcutNodereturn the attribute form which the shortcut node refers to.- Specified by:
getFormInfoin interfaceWebGridUnitShortcutNode- Returns:
- A
WebAttributeFormobject which describes the attribute form which the shortcut node refers to.
-
setDataSetObj
public void setDataSetObj(WebObjectInfo _dataSet) throws java.lang.IllegalArgumentException
Description copied from interface:WebShortcutNodeSets the data set object a metric belongs to. This property is used for shortcut nodes in the RS conditional formatting metric expressions.- Specified by:
setDataSetObjin interfaceWebShortcutNode- Parameters:
_dataSet- AWebObjectInfoa data set object.- Throws:
java.lang.IllegalArgumentException
-
getDataSetObj
public WebObjectInfo getDataSetObj()
Description copied from interface:WebShortcutNodeReturns the data set object a metric belongs to. This property is used for shortcut nodes in the RS conditional formatting metric expressions.- Specified by:
getDataSetObjin interfaceWebShortcutNode- Returns:
- A
WebObjectInfoa data set object.
-
getTypesAllowed
protected int[] getTypesAllowed()
-
getPromptInstances
public WebPromptInstances getPromptInstances()
Description copied from interface:WebPromptSiteReturns a collection of prompt instances from this prompt site.- Specified by:
getPromptInstancesin interfaceWebPromptSite- Returns:
- a collection of prompt instances.
-
containsPrompts
public boolean containsPrompts()
Description copied from interface:WebNodeReturns true if this node or any of its children has prompts.- Specified by:
containsPromptsin interfaceWebNode- Returns:
- true if this node or any of its children has prompts.
-
containsNonSystemPrompts
public boolean containsNonSystemPrompts()
- Specified by:
containsNonSystemPromptsin interfaceWebPromptableNode
-
getShowChildren
public boolean getShowChildren()
-
setShowChildren
public void setShowChildren(boolean value)
-
getShowParent
public boolean getShowParent()
-
setShowParent
public void setShowParent(boolean value)
-
getTag
public java.lang.String getTag()
Description copied from interface:WebNodeReturns the tag which is currently set on this node. The tag is a user-defined piece of information which can be attached to a node, and will be persisted with the expression's state.
-
isCancelledPrompt
public boolean isCancelledPrompt()
- Specified by:
isCancelledPromptin interfaceWebNode
-
setTag
public void setTag(java.lang.String _tag)
Description copied from interface:WebNodeSets the tag on the node. If this value is null, the current tag will be removed.
-
setExpressionType
public void setExpressionType(int _expressionType)
Description copied from interface:WebNodeSets the expression type of the current node to the given type.- Specified by:
setExpressionTypein interfaceWebNode- Parameters:
_expressionType- The expression type to use for the node, fromEnumDSSXMLExpressionType.- See Also:
WebNode.getExpressionType()
-
getExpressionType
public int getExpressionType()
Description copied from interface:WebNodeReturns the expression type of the current node.- Specified by:
getExpressionTypein interfaceWebNode- Returns:
- The expression type of the node, from
EnumDSSXMLExpressionType. - See Also:
WebNode.setExpressionType(int)
-
getNodeType
public int getNodeType()
Description copied from interface:WebNodeReturns the node type of the current node. This is set upon creation of the node, and cannot be changed.- Specified by:
getNodeTypein interfaceWebNode- Returns:
- The node type of the node, from
EnumDSSXMLNodeType.
-
setNodeType
protected void setNodeType(int _nodeType)
Set node type- Parameters:
_nodeType- node type
-
getDataType
public int getDataType()
Description copied from interface:WebNodeReturns the datatype of the current node.- Specified by:
getDataTypein interfaceWebNode- Returns:
- The datatype of the current node, from
EnumDSSXMLDataType. - See Also:
WebNode.setDataType(int)
-
setDataType
public void setDataType(int _dataType)
Description copied from interface:WebNodeSets the datatype of the current node.- Specified by:
setDataTypein interfaceWebNode- Parameters:
_dataType- A value fromEnumDSSXMLDataType, which will be used as the datatype of the current node.- See Also:
WebNode.getDataType()
-
getDimensionalityType
public int getDimensionalityType()
Description copied from interface:WebNodeReturns the dimensionality type of the current node.- Specified by:
getDimensionalityTypein interfaceWebNode- Returns:
- The current dimensionality type of this node, from
EnumDSSXMLNodeDimty. - See Also:
WebNode.setDimensionalityType(int)
-
getUCFlag
public int getUCFlag()
Description copied from interface:WebNodeReturns the value of ucFlag.
-
setUCFlag
public void setUCFlag(int flag)
Description copied from interface:WebNodeSets the value of ucFlag.- Specified by:
setUCFlagin interfaceWebNode- Parameters:
flag- The value to be set for ucFlag.- See Also:
WebNode.getUCFlag()
-
setDimensionalityType
public void setDimensionalityType(int dimensionalityType)
Description copied from interface:WebNodeSets the dimensionality type of the current node.- Specified by:
setDimensionalityTypein interfaceWebNode- Parameters:
dimensionalityType- The dimensionality type to assign to this node, fromEnumDSSXMLNodeDimty.- See Also:
WebNode.getDimensionalityType()
-
getDimensionality
public WebDimty getDimensionality()
Description copied from interface:WebNodeReturns an object which can be used to specify the dimensionality of the node. This will only be relevant if the dimensionality type is set to something other than the default (none).- Specified by:
getDimensionalityin interfaceWebNode- Returns:
- An object of type
WebDimty, which can then be used to specify dimensionality.
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:WebNodeReturns the currently set display name of this node.- Specified by:
getDisplayNamein interfaceWebNode- Returns:
- The current display name of this node.
- See Also:
WebNode.setDisplayName(java.lang.String)
-
setDisplayName
public void setDisplayName(java.lang.String _displayName)
Description copied from interface:WebNodeSets the display name of this node to the given value.- Specified by:
setDisplayNamein interfaceWebNode- Parameters:
_displayName- The display name to use when describing the node.- See Also:
WebNode.getDisplayName()
-
hasChildNodes
public boolean hasChildNodes()
Description copied from interface:WebNodeReturns true if this node has child nodes, false if it does not.- Specified by:
hasChildNodesin interfaceWebNode- Returns:
- Whether this node has child nodes.
-
getChildCount
public int getChildCount()
Description copied from interface:WebNodeReturns the number of child nodes of the current node.- Specified by:
getChildCountin interfaceWebNode- Returns:
- The number of child nodes, or 0 if none exist.
-
getSubExpressionCount
public int getSubExpressionCount()
-
getFirstChild
public WebNode getFirstChild()
Description copied from interface:WebNodeReturns the first child node of the current node, or null if the current node has no child nodes.- Specified by:
getFirstChildin interfaceWebNode- Returns:
- A
WebNodeobject which is the first child (the index 0 child) of this node, or null if no children are found.
-
getLastChild
public WebNode getLastChild()
Description copied from interface:WebNodeReturns the last child node of the current node, or null if the current node has no child nodes.- Specified by:
getLastChildin interfaceWebNode- Returns:
- A
WebNodeobject which is the last child (the last index child) of this node, or null if no children are found.
-
getChild
public WebNode getChild(int index) throws java.lang.IndexOutOfBoundsException
Description copied from interface:WebNodeReturns the child node with the given (0-based) index in the collection.
-
getParent
public WebNode getParent()
Description copied from interface:WebNodeReturns the parent of the current node, or null if this is the root node.
-
getPreviousSibling
public WebNode getPreviousSibling()
Description copied from interface:WebNodeReturns the current node's previous sibling. This will be a node with the same parent as the current node, but with 1 less index in the parent node's collection. This method will return null if the parent node does not exist, or if this is the first node in the parent node's collection.- Specified by:
getPreviousSiblingin interfaceWebNode- Returns:
WebNodeThe previous sibling, or null if none exists(i.e. this is the first child of its parent, or this is the root node).
-
getNextSibling
public WebNode getNextSibling()
Description copied from interface:WebNodeReturns the current node's next sibling. This will be a node with the same parent as the current node, but with 1 greater index in the parent node's collection. This method will return null if the parent node does not exist, or if this is the last node in the parent node's collection.- Specified by:
getNextSiblingin interfaceWebNode- Returns:
WebNodeThe next sibling, or null if none exists(i.e. this is the last child of its parent, or this is the root node).
-
appendChild
public void appendChild(WebNode newChild) throws java.lang.IllegalArgumentException
Description copied from interface:WebNodeAppends the given node to the end of the current node's list of child nodes. The node to be appended must be from the same expression as the node it is being appended to.- Specified by:
appendChildin interfaceWebNode- Parameters:
newChild- The node to be appended.- Throws:
java.lang.IllegalArgumentException- Thrown if the given node is null or if the node being appended is from a different expression.
-
insertBefore
public void insertBefore(WebNode newChild, WebNode refNode) throws java.lang.IllegalArgumentException
Description copied from interface:WebNodeAdds the given node to the current node's list of child nodes immediately before the reference node.- Specified by:
insertBeforein interfaceWebNode- Parameters:
newChild- The node to be appended.refNode- The node before which the new node is to be inserted.- Throws:
java.lang.IllegalArgumentException- Thrown if either node is null, if the reference node is not found, or if the node to insert belongs to a different expression.
-
replaceChild
public void replaceChild(WebNode newChild, WebNode oldChild) throws java.lang.IllegalArgumentException
Description copied from interface:WebNodeReplaces the old node with the given new node in the expression.- Specified by:
replaceChildin interfaceWebNode- Parameters:
newChild- The node to be used as the replacement.oldChild- The node to be replaced.- Throws:
java.lang.IllegalArgumentException- Signals that one or both input parameters to this method were null, the reference node is not found, or the replacement node is from a different expression.
-
removeChild
public void removeChild(WebNode childNode) throws java.lang.IllegalArgumentException
Description copied from interface:WebNodeRemoves the given node from the collection of child nodes.- Specified by:
removeChildin interfaceWebNode- Parameters:
childNode- TheWebNodeobject to be removed from the child collection.- Throws:
java.lang.IllegalArgumentException- Signals that the given node is null or not found.
-
clear
public void clear()
Description copied from interface:WebNodeRemoves all child nodes from the current node.
-
getKey
public int getKey()
Description copied from interface:WebNodeReturns the key of this node. Every node in an expression has a unique key, though they are not necessarily in order, or even consecutive.
-
insertAfter
public void insertAfter(WebNode newChild, WebNode refNode) throws java.lang.IllegalArgumentException
Description copied from interface:WebNodeAdds the given node to the current node's list of child nodes immediately after the reference node.- Specified by:
insertAfterin interfaceWebNode- Parameters:
newChild- The node to be appended.refNode- The node after which the new node is to be inserted.- Throws:
java.lang.IllegalArgumentException- Thrown if either node is null, if the reference node is not found, or if the node to insert belongs to a different expression.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Since:
- MicroStrategy Web 8.0.1
-
generateFormatDelta
public void generateFormatDelta(WebFormat f, WebPropertyObj p)
- Specified by:
generateFormatDeltain interfaceWebFormatHost- Since:
- MicroStrategy Web 8.1.0
-
getFactory
public WebObjectsFactory getFactory()
- Specified by:
getFactoryin interfaceWebFormatHost- Since:
- MicroStrategy Web 8.1.0
-
setCanExpand
public void setCanExpand(boolean b)
Description copied from interface:WebNodeSets the can expand property. This is currently used in custom group elements.- Specified by:
setCanExpandin interfaceWebNode- See Also:
WebNode.getCanExpand()
-
setIsSpliced
public void setIsSpliced(boolean b)
Description copied from interface:WebNodeSets the is spliced property. This is currently used in custom group elements.- Specified by:
setIsSplicedin interfaceWebNode- See Also:
WebNode.getIsSpliced()
-
getCanExpand
public boolean getCanExpand()
Description copied from interface:WebNodeReturns the value of the can expand property on the node. This is currently used in custom group elements.- Specified by:
getCanExpandin interfaceWebNode- Returns:
- See Also:
WebNode.setCanExpand(boolean)
-
getIsSpliced
public boolean getIsSpliced()
Description copied from interface:WebNodeReturns the value of the Is spliced property This is currently used in custom group elements.- Specified by:
getIsSplicedin interfaceWebNode- Returns:
- See Also:
WebNode.setCanExpand(boolean)
-
getShortXML
public java.lang.String getShortXML()
Description copied from interface:WebNodeReturn the short xml representation of the node.- Specified by:
getShortXMLin interfaceWebNode- Returns:
-
hasPlaceHolder
public boolean hasPlaceHolder()
Description copied from interface:WebNodeReturns whether this node has a place holder defined on it.- Specified by:
hasPlaceHolderin interfaceWebNode- Returns:
- true if it has a place holder
-
getPlaceHolder
public WebNodePlaceHolder getPlaceHolder()
Description copied from interface:WebNodeReturns the place holder associated on this node.- Specified by:
getPlaceHolderin interfaceWebNode- Returns:
WebNodePlaceHolderobject. Null if there is no place holder.
-
clearPlaceHolder
public void clearPlaceHolder()
Description copied from interface:WebNodeDeletes the place holder defined on this node.- Specified by:
clearPlaceHolderin interfaceWebNode
-
createPlaceHolder
public WebNodePlaceHolder createPlaceHolder()
Description copied from interface:WebNodeCreates a place holder on this node.- Specified by:
createPlaceHolderin interfaceWebNode- Returns:
- the newly created place holder
-
getIsIndependentCSI
public boolean getIsIndependentCSI()
Description copied from interface:WebNodeReturns whether this node is independent from others. It is used for metric qualifications.- Specified by:
getIsIndependentCSIin interfaceWebNode- Returns:
- true if it is independent
-
setIsIndependentCSI
public void setIsIndependentCSI(boolean isIndependentCSI)
Description copied from interface:WebNodeSets the node whether it is independent from others.- Specified by:
setIsIndependentCSIin interfaceWebNode
-
-