Class Overview
The container of gadgets on the dashboard page
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
protected
PageElement
addDialogLink
protected
PageElement
dashboard
protected
PageBinder
pageBinder
Public Constructors
public
GadgetContainer
()
Public Methods
public
boolean
canAddGadget
()
public
Gadget
get
(String gadgetId)
Returns
- gadget corresponding to the ID.
public
G
get
(Class<G> gadgetClass, String gadgetId)
Parameters
gadgetClass
| expected gadget type |
gadgetId
| gadget ID |
Returns
- gadget corresponding to the ID.
public
G
getByTitle
(Class<G> gadgetClass, String gadgetTitle)
Parameters
gadgetClass
| expected gadget type |
gadgetTitle
| gadget title |
public
Gadget
getByTitle
(String gadgetTitle)
Parameters
gadgetTitle
| title of the gadget |
public
DashboardToolsMenu
getDashboardTools
()
public
G
getGadget
(Class<G> gadgetClass, String gadgetId)
public
Gadget
getGadget
(String gadgetId)
public
G
getGadgetByTitle
(Class<G> gadgetClass, String gadgetTitle)
Get gadget of given type by it's title as visible on the dashboard.
Parameters
gadgetClass
| expected gadget type |
gadgetTitle
| title of the gadget |
Returns
- gadget of given type with given title
public
Gadget
getGadgetByTitle
(String gadgetTitle)
Get gadget by it's title as visible on the dashboard.
Parameters
gadgetTitle
| title of the gadget |
public
LoginGadget
getLoginGadget
()
Login gadget is always on the Dashboard if not logged in.
public
boolean
hasGaddget
(String gadgetId)
public
boolean
hasTabs
()
public
AddGadgetDialog
openAddGadgetDialog
()
public
DashboardToolsMenu
openDashboardTools
()
public
DashboardPage
switchDashboard
(String dashboardName)
Switches dashboard using the side tabs. This will only work if hasTabs()
returns true
.
Parameters
dashboardName
| name of the dashboard to switch to |
Returns
- this dashboard page instance
Throws
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
|
Protected Methods
protected
PageElement
getTabContainer
()
protected
List<PageElement>
getTabContainers
()