|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.pageobjects.gadgets.GadgetContainer
public class GadgetContainer
The container of gadgets on the dashboard page
DashboardPage
Field Summary | |
---|---|
protected com.atlassian.pageobjects.elements.PageElement |
addDialogLink
|
protected com.atlassian.pageobjects.elements.PageElement |
dashboard
|
protected com.atlassian.pageobjects.PageBinder |
pageBinder
|
Constructor Summary | |
---|---|
GadgetContainer()
|
Method Summary | ||
---|---|---|
boolean |
canAddGadget()
|
|
|
get(Class<G> gadgetClass,
String gadgetId)
Equivalent to getGadget(Class, String) . |
|
it.com.atlassian.gadgets.pages.Gadget |
get(String gadgetId)
Equivalent to getGadget(String) . |
|
|
getByTitle(Class<G> gadgetClass,
String gadgetTitle)
Equivalent to getGadgetByTitle(Class, String) . |
|
it.com.atlassian.gadgets.pages.Gadget |
getByTitle(String gadgetTitle)
Equivalent to getGadgetByTitle(String) }. |
|
it.com.atlassian.gadgets.pages.DashboardToolsMenu |
getDashboardTools()
|
|
|
getGadget(Class<G> gadgetClass,
String gadgetId)
|
|
it.com.atlassian.gadgets.pages.Gadget |
getGadget(String gadgetId)
|
|
|
getGadgetByTitle(Class<G> gadgetClass,
String gadgetTitle)
Get gadget of given type by it's title as visible on the dashboard. |
|
it.com.atlassian.gadgets.pages.Gadget |
getGadgetByTitle(String gadgetTitle)
Get gadget by it's title as visible on the dashboard. |
|
LoginGadget |
getLoginGadget()
Login gadget is always on the Dashboard if not logged in. |
|
protected com.atlassian.pageobjects.elements.PageElement |
getTabContainer()
|
|
protected List<com.atlassian.pageobjects.elements.PageElement> |
getTabContainers()
|
|
boolean |
hasGaddget(String gadgetId)
|
|
boolean |
hasTabs()
|
|
it.com.atlassian.gadgets.pages.AddGadgetDialog |
openAddGadgetDialog()
|
|
it.com.atlassian.gadgets.pages.DashboardToolsMenu |
openDashboardTools()
|
|
DashboardPage |
switchDashboard(String dashboardName)
Switches dashboard using the side tabs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder
protected com.atlassian.pageobjects.elements.PageElement addDialogLink
protected com.atlassian.pageobjects.elements.PageElement dashboard
Constructor Detail |
---|
public GadgetContainer()
Method Detail |
---|
protected com.atlassian.pageobjects.elements.PageElement getTabContainer()
protected List<com.atlassian.pageobjects.elements.PageElement> getTabContainers()
public boolean hasTabs()
public boolean canAddGadget()
public it.com.atlassian.gadgets.pages.AddGadgetDialog openAddGadgetDialog()
public LoginGadget getLoginGadget()
IllegalStateException
- if an user is logged inpublic boolean hasGaddget(String gadgetId)
public it.com.atlassian.gadgets.pages.Gadget getGadget(String gadgetId)
public <G extends it.com.atlassian.gadgets.pages.Gadget> G getGadget(Class<G> gadgetClass, String gadgetId)
public it.com.atlassian.gadgets.pages.Gadget get(String gadgetId)
getGadget(String)
.
gadgetId
- gadget ID
public <G extends it.com.atlassian.gadgets.pages.Gadget> G get(Class<G> gadgetClass, String gadgetId)
getGadget(Class, String)
.
gadgetId
- gadget IDgadgetClass
- expected gadget type
public it.com.atlassian.gadgets.pages.Gadget getGadgetByTitle(String gadgetTitle)
gadgetTitle
- title of the gadget
IllegalArgumentException
- if gadget with given title does not existpublic <G extends it.com.atlassian.gadgets.pages.Gadget> G getGadgetByTitle(Class<G> gadgetClass, String gadgetTitle)
gadgetClass
- expected gadget typegadgetTitle
- title of the gadget
IllegalArgumentException
- if gadget with given title does not existpublic it.com.atlassian.gadgets.pages.Gadget getByTitle(String gadgetTitle)
getGadgetByTitle(String)
}.
gadgetTitle
- title of the gadget
IllegalArgumentException
- if gadget with given title does not existpublic <G extends it.com.atlassian.gadgets.pages.Gadget> G getByTitle(Class<G> gadgetClass, String gadgetTitle)
getGadgetByTitle(Class, String)
.
gadgetClass
- expected gadget typegadgetTitle
- gadget title
public it.com.atlassian.gadgets.pages.DashboardToolsMenu getDashboardTools()
public it.com.atlassian.gadgets.pages.DashboardToolsMenu openDashboardTools()
public DashboardPage switchDashboard(String dashboardName)
hasTabs()
returns true
.
dashboardName
- name of the dashboard to switch to
IllegalStateException
- if there is no tabs (e.g. user not logged in or there is only one
dashboard configured for the user), or there is no dashboard with given name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |