Package com.microstrategy.web.objects
Interface WebHeaders
-
public interface WebHeaders
WebHeaders represent the group of headings that are laid out in a single table row, as is the case when laying out columns and row headers, which could span several table rows. For page headers, there can only be ONE group of WebHeaders retrieved fromWebGridHeaders
.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Enumeration<WebHeader>
elements()
WebHeader
get(int index)
Returns the WebHeader at the given index (starting from 0).WebHeader
getCurrentElement()
Returns the WebHeader in this collection which has been selected as the current element.WebRow
getGridRow()
Returns the grid row associated with this WebHeaders object.int
getPositionInContainer()
returns the position of this collection in its containerboolean
isEmpty()
int
size()
-
-
-
Method Detail
-
size
int size()
- Returns:
- the number of WebHeader objects in the collection.
-
getPositionInContainer
int getPositionInContainer()
returns the position of this collection in its container- Returns:
-
get
WebHeader get(int index)
Returns the WebHeader at the given index (starting from 0).- Parameters:
index
- index of the element to return.- Returns:
- the element at the specified position.
- Throws:
java.lang.IndexOutOfBoundsException
- if index is out of range(index < 0 || index >= size())
.- See Also:
WebHeader
-
isEmpty
boolean isEmpty()
-
getGridRow
WebRow getGridRow()
Returns the grid row associated with this WebHeaders object. Not supported in page and column headers.- Returns:
- the grid row.
- Throws:
java.lang.UnsupportedOperationException
- if invoked from a page or column.
-
getCurrentElement
WebHeader getCurrentElement() throws java.lang.UnsupportedOperationException
Returns the WebHeader in this collection which has been selected as the current element. This only makes sense for page headers. If no current element is found, null will be returned.- Returns:
- the current element.
- Throws:
java.lang.UnsupportedOperationException
- if invoked from a row or column.
-
-