com.atlassian.jira.webtest.selenium.harness.util
Class DashboardImpl
java.lang.Object
com.atlassian.jira.webtest.selenium.harness.util.AbstractSeleniumUtil
com.atlassian.jira.webtest.selenium.harness.util.DashboardImpl
- All Implemented Interfaces:
- Dashboard
public class DashboardImpl
- extends AbstractSeleniumUtil
- implements Dashboard
Method Summary |
void |
dragGadgetToTab(String gadgetId,
String targetTabName,
int targetShimIndex)
Drags a gadget to the tab specified by name. |
int |
getGadgetCount()
Returns how many gadgets are being displayed on this dashboard |
void |
view()
View this dashboard |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DashboardImpl
public DashboardImpl(String dashboardId,
com.atlassian.selenium.SeleniumClient selenium,
JIRAEnvironmentData environmentData)
view
public void view()
- Description copied from interface:
Dashboard
- View this dashboard
- Specified by:
view
in interface Dashboard
getGadgetCount
public int getGadgetCount()
- Description copied from interface:
Dashboard
- Returns how many gadgets are being displayed on this dashboard
- Specified by:
getGadgetCount
in interface Dashboard
- Returns:
- how many gadgets are being displayed on this dashboard
dragGadgetToTab
public void dragGadgetToTab(String gadgetId,
String targetTabName,
int targetShimIndex)
- Description copied from interface:
Dashboard
- Drags a gadget to the tab specified by name.
The targetShimIndex is a bit of a workaround to fire the mouseup event when dropping the gadget on the right
element.
Basically every writable tab will have a hotspot shim. The index starts with 1 for the first tab, and is
incremented by 1 for every subsequent writable tab.
E.g. if we have the following tabs:
- Tab 1 (current tab)
- Tab 2
- Tab 3 (read-only)
- Tab 4
- Tab 5
- Tab 6
If we want to drag and drop the gadget with id 10010 to Tab 5, we'd have to call this method: dragGadgetToTab("10010", "Tab5",3);
- Specified by:
dragGadgetToTab
in interface Dashboard
- Parameters:
gadgetId
- The id of the gadget to dragtargetTabName
- The name of the tab to drag totargetShimIndex
- This is the id of the hotspot shim for the tab we're dragging to. See above for explanation
Copyright © 2002-2013 Atlassian. All Rights Reserved.