com.atlassian.jira.webtest.framework.dialog
Interface AddGadgetDialog

All Superinterfaces:
Dialog<AddGadgetDialog>, Localizable, Openable<AddGadgetDialog>, PageDialog<AddGadgetDialog,Dashboard>, PageObject
All Known Implementing Classes:
AddGadgetDialogImpl

public interface AddGadgetDialog
extends PageDialog<AddGadgetDialog,Dashboard>

The 'Add gadget dialog' on the JIRA dashboard.

Since:
v4.3

Nested Class Summary
static interface AddGadgetDialog.CloseMode
           
 
Method Summary
<T extends Gadget>
AddGadgetDialog
addGadget(Class<T> gadgetType)
           Add gadget of given type to the dashboard.
<T extends Gadget>
AddGadgetDialog
addGadget(Class<T> gadgetType, String sourceUrl)
           Add gadget of given type and sourceUrl to the dashboard.
 TimedCondition canAddGadget(Class<? extends Gadget> gadgetType)
          Check if given gadget type can be added.
 TimedCondition canAddGadget(Class<? extends Gadget> gadgetType, String sourceUrl)
           Check if given gadget type can be added.
 AddGadgetDialog.CloseMode close()
          Close the dialog.
 
Methods inherited from interface com.atlassian.jira.webtest.framework.dialog.PageDialog
page
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Openable
isClosed, isOpen, isOpenable, open
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable
locator
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Method Detail

addGadget

<T extends Gadget> AddGadgetDialog addGadget(Class<T> gadgetType)

Add gadget of given type to the dashboard. This will also close the dialog.

NOTE: there may be more then one gadgets of given type to add. Use addGadget(Class, String) to add a gadget from particular source.

Type Parameters:
T - type parameter
Parameters:
gadgetType - class of gadget to add
Returns:
gadget instance

addGadget

<T extends Gadget> AddGadgetDialog addGadget(Class<T> gadgetType,
                                             String sourceUrl)

Add gadget of given type and sourceUrl to the dashboard. This will also close the dialog.

Type Parameters:
T - type parameter
Parameters:
gadgetType - class of gadget to add
sourceUrl - URL of the gadget spec source
Returns:
gadget instance

canAddGadget

TimedCondition canAddGadget(Class<? extends Gadget> gadgetType)
Check if given gadget type can be added. This means that the dialog is open and the 'Add gadget' button is available (i.e. not already waiting for adding a gadget).

Parameters:
gadgetType - type of the gadget to add.
Returns:
condition checking, if gadget of given type can be added

canAddGadget

TimedCondition canAddGadget(Class<? extends Gadget> gadgetType,
                            String sourceUrl)

Check if given gadget type can be added. This means that the dialog is open and the 'Add gadget' button is available (i.e. not already waiting for adding a gadget).

Use this method if there are more than one gadgets of given type, coming from different applications.

Parameters:
gadgetType - type of the gadget to add.
sourceUrl - URL of the gadget source
Returns:
condition checking, if gadget of given type and from given source can be added

close

AddGadgetDialog.CloseMode close()
Close the dialog.

Returns:
close mode


Copyright © 2002-2012 Atlassian. All Rights Reserved.