Package com.microstrategy.web.objects
Interface WebHyperLinks
-
public interface WebHyperLinksThe WebHyperLinks interface represents the collection ofWebHyperLinkassociated with grid report cell or RWD text field.- Since:
- MicroStrategy Web 8.1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebHyperLinkadd()add a Hyperlink to this link collectionvoidclear()clear all Hyperlinks in this link collection.java.util.Iterator<WebHyperLink>elements()Returns an iterator over the Hyperlinks collectionWebHyperLinkget(int i)Returns the i-th hyperlink in this collectionWebHyperLinkgetDefault()Returns default HyperLink or null if there is no Hyperlink set as defaultbooleangetOpenInNewWindow()Returns true if target URL or report or document shall be displayed in the new window.voidsetOpenInNewWindow(boolean b)Sets/Unsets whether target URL or report or document shall be displayed in the new window.intsize()Returns the number of Hyeprlinks in link collection.
-
-
-
Method Detail
-
size
int size()
Returns the number of Hyeprlinks in link collection.- Returns:
- the number of Hyperlinks in link collection.
-
elements
java.util.Iterator<WebHyperLink> elements()
Returns an iterator over the Hyperlinks collection- Returns:
Iteratorover the Hyperlinks collection
-
get
WebHyperLink get(int i)
Returns the i-th hyperlink in this collection- Parameters:
i- the index (starting from 0)- Returns:
- the i-th hyperlink
- Throws:
java.lang.IllegalArgumentException- thrown if there is no hyperlink at the given index.
-
getDefault
WebHyperLink getDefault()
Returns default HyperLink or null if there is no Hyperlink set as default- Returns:
WebHyperLinkthe default Hyperlink or null if there is no Hyperlink set as default
-
getOpenInNewWindow
boolean getOpenInNewWindow()
Returns true if target URL or report or document shall be displayed in the new window.- Returns:
- true if target URL or report or document shall be displayed in the new window.
-
setOpenInNewWindow
void setOpenInNewWindow(boolean b)
Sets/Unsets whether target URL or report or document shall be displayed in the new window.- Parameters:
b- the flag to open a new window if b is true, the target Hyperlink will be opened in a new window if b is false, the target Hyperlink will be opened in current window- Since:
- MicroStrategy Web 9.0.0
-
add
WebHyperLink add() throws WebObjectsException
add a Hyperlink to this link collection- Returns:
- a new
WebHyperLink - Throws:
WebObjectsException
-
clear
void clear()
clear all Hyperlinks in this link collection.
-
-