Package com.microstrategy.web.objects.rw
Interface RWUnitDef
-
- All Superinterfaces:
WebThresholdsContainer
- All Known Subinterfaces:
RWControlDef
,RWFieldDef
,RWFieldGroupDef
,RWGridGraphDef
,RWHTMLDef
,RWImageDef
,RWLayoutSectionDef
,RWLineDef
,RWPanelStackDef
,RWSectionDef
,RWShapeDef
,RWSubsectionDef
,RWTextDef
public interface RWUnitDef extends WebThresholdsContainer
A root interface for all definition units- Since:
- MicroStrategy Web 8.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
copyFormat(RWUnitDef fromUnit)
Copies formatting properties from the fromUnit to this unit.void
flushFormatChanges(boolean applyToAllViews)
flush the current formatting manipulations, so that it would be submitted to iserver if needed.java.util.List
getAllControlGroupBys()
Returns a list of all the controlGroupBysRWControlGroupBy
on this unit including element selector and metric selector targeting control groupBysRWControlGroupBys
getElementControlGroupBys()
Returns aRWControlGroupBys
object, which is a collection of all element selectionRWControlGroupBy
objectsFilterDetailsFormatting
getFilterDetailsFormatting()
WebFormat
getFormat()
Returns formatting objectWebFormat
getFormat(int formatType)
Returns a format object for the given format type.WebFormat
getFormat(java.lang.String id)
Deprecated.int[]
getFormatTypes()
Returns a list of format types applicable to the given objectjava.lang.String
getKey()
Returns unit IDjava.lang.String
getKeyContext()
Returns a unique id to be used by the backend to identify any unit.java.lang.String
getName()
This is a convenience method for reading the name of the object This is equivalent to reading the name property from the FormattingAppearance propertySet of the format definition associated with this objectRWSectionDef
getParent()
Returns unit's parentRWDefinition
getRwDefinition()
Returns parent RwDefinitonWebTheme
getTheme()
RWThreshold
getThreshold(int i)
Deprecated.RWThreshold
getThreshold(java.lang.String id)
Deprecated.int
getThresholdCount()
Deprecated.java.lang.String
getTreeType()
int
getType()
Returns unit typeboolean
isFirst()
Returns true if this unit is the first on its parent collectionboolean
isLast()
Returns true if this unit is the last on its parent collectionboolean
isVisible()
Retyrns true if this unit is visibleRWUnitDef
nextSibling()
Returns next siblengRWUnitDef
prevSibling()
Returns previous siblingvoid
revertToFormatDefaults()
Resets the unit's format to the control default valuesvoid
setName(java.lang.String name)
This is a convenience method for setting the name of the object This is equivalent to setting the name property from the FormattingAppearance propertySet of the format definition associated with this objectvoid
setVisible(boolean value)
Sets visible property on the unit-
Methods inherited from interface com.microstrategy.web.objects.WebThresholdsContainer
getID, getObjectType, getThresholds, getTransactions, initElementSource
-
-
-
-
Method Detail
-
getType
int getType()
Returns unit type- Specified by:
getType
in interfaceWebThresholdsContainer
- Returns:
- unit type
-
getKey
java.lang.String getKey()
Returns unit ID- Returns:
- unit ID
-
getRwDefinition
RWDefinition getRwDefinition()
Returns parent RwDefiniton- Returns:
- parent RwDefiniton
-
getParent
RWSectionDef getParent()
Returns unit's parent- Returns:
- unit's parent
-
getFormat
WebFormat getFormat()
Returns formatting object- Specified by:
getFormat
in interfaceWebThresholdsContainer
- Returns:
- formatting object
-
copyFormat
void copyFormat(RWUnitDef fromUnit) throws WebObjectsException
Copies formatting properties from the fromUnit to this unit. This method copies only subset of properties, which is determined by the list of "copyable" properties. There is a separate list of copyable properties for each unit type. Those lists are stored in metadata.- Parameters:
fromUnit
- a unit from which formatting propertis will be copied- Throws:
WebObjectsException
-
isFirst
boolean isFirst()
Returns true if this unit is the first on its parent collection- Returns:
- true if this unit is the first on its parent collection
-
isLast
boolean isLast()
Returns true if this unit is the last on its parent collection- Returns:
- true if this unit is the last on its parent collection
-
nextSibling
RWUnitDef nextSibling()
Returns next sibleng- Returns:
- next sibleng
-
prevSibling
RWUnitDef prevSibling()
Returns previous sibling- Returns:
- previous sibling
-
isVisible
boolean isVisible() throws WebObjectsException
Retyrns true if this unit is visible- Returns:
- true if this unit is visible
- Throws:
WebObjectsException
-
setVisible
void setVisible(boolean value) throws WebObjectsException
Sets visible property on the unit- Parameters:
value
- if value is false the unit will not be visible- Throws:
WebObjectsException
-
revertToFormatDefaults
void revertToFormatDefaults()
Resets the unit's format to the control default values
-
getThresholdCount
int getThresholdCount()
Deprecated.Returns number of thresholds on the unit- Returns:
- number of thresholds on the unit
-
getThreshold
RWThreshold getThreshold(int i)
Deprecated.Returns i-th threshold- Parameters:
i
- index- Returns:
- RWThreshold i-th threshold
-
getThreshold
RWThreshold getThreshold(java.lang.String id)
Deprecated.Returns threshold by its ID- Parameters:
id
- threshold ID- Returns:
- threshold
-
getFormat
WebFormat getFormat(java.lang.String id)
Deprecated.Returns format of the threshold with specified ID- Parameters:
id
- threshold ID- Returns:
- threshold format
-
getName
java.lang.String getName()
This is a convenience method for reading the name of the object This is equivalent to reading the name property from the FormattingAppearance propertySet of the format definition associated with this object- Specified by:
getName
in interfaceWebThresholdsContainer
- Returns:
- name
- Since:
- MicroStrategy Web 8.1.0
-
setName
void setName(java.lang.String name)
This is a convenience method for setting the name of the object This is equivalent to setting the name property from the FormattingAppearance propertySet of the format definition associated with this object- Parameters:
name
-- Since:
- MicroStrategy Web 8.1.0
-
getFormatTypes
int[] getFormatTypes()
Returns a list of format types applicable to the given object- Returns:
- int[]
- Since:
- MicroStrategy Web 8.1.0
-
getFormat
WebFormat getFormat(int formatType)
Returns a format object for the given format type.- Parameters:
formatType
- format type- Returns:
- WebFormat
- Since:
- MicroStrategy Web 8.1.0
-
getKeyContext
java.lang.String getKeyContext()
Returns a unique id to be used by the backend to identify any unit.- Returns:
- unique identifier
- Since:
- MicroStrategy Web 8.1.0
-
getFilterDetailsFormatting
FilterDetailsFormatting getFilterDetailsFormatting()
- Since:
- MicroStrategy Web 9.0.0
-
getTreeType
java.lang.String getTreeType()
- Since:
- MicroStrategy Web 9.0.0
-
getElementControlGroupBys
RWControlGroupBys getElementControlGroupBys()
Returns aRWControlGroupBys
object, which is a collection of all element selectionRWControlGroupBy
objects- Since:
- MicroStrategy Web 9.0.0
-
getAllControlGroupBys
java.util.List getAllControlGroupBys()
Returns a list of all the controlGroupBysRWControlGroupBy
on this unit including element selector and metric selector targeting control groupBys- Since:
- MicroStrategy Web 9.0.1
-
flushFormatChanges
void flushFormatChanges(boolean applyToAllViews)
flush the current formatting manipulations, so that it would be submitted to iserver if needed. If @param applyToAllViews is true, the formatting would be applied to all views, other wise the current view.- Parameters:
applyToAllViews
-
-
getTheme
WebTheme getTheme()
-
-