public class OpenSocialDashboardItem extends SpecificationBasedDashboardItem
DashboardItem
is the Gadget
implementation which is fully based on information
passed in the descriptor.Gadget.Visitor<T>
Constructor and Description |
---|
OpenSocialDashboardItem(GadgetState state,
DashboardItemModule dashboardItemModule,
String dashboardItemModuleKey,
GadgetSpec gadgetSpec) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(Gadget.Visitor<T> visitor) |
Color |
getColor() |
DashboardItemModule |
getDashboardItemModule() |
String |
getErrorMessage()
Returns an error message if the gadget was constructed with one, which should be the case when
isLoaded() returns false |
String |
getGadgetSpecUrl() |
Integer |
getHeight() |
GadgetId |
getId() |
GadgetState |
getState() |
String |
getTitle() |
URI |
getTitleUrl()
Returns an optional URL that the gagdget's title will link to
|
Iterable<UserPref> |
getUserPrefs()
Returns preferences of the user which are associated with this Gadget.
|
Integer |
getWidth() |
boolean |
hasNonHiddenUserPrefs()
Returns true if the gadget contains at least one pref that isn't hidden.
|
boolean |
isLoaded()
Tells if the gadget has been loaded successfully
|
boolean |
isMaximizable() |
getProperties
public OpenSocialDashboardItem(GadgetState state, DashboardItemModule dashboardItemModule, String dashboardItemModuleKey, GadgetSpec gadgetSpec)
public GadgetId getId()
public String getTitle()
public URI getTitleUrl()
Gadget
public String getGadgetSpecUrl()
getGadgetSpecUrl
in class SpecificationBasedDashboardItem
public Integer getHeight()
public Integer getWidth()
public Color getColor()
public boolean isMaximizable()
public boolean hasNonHiddenUserPrefs()
Gadget
public Iterable<UserPref> getUserPrefs()
Gadget
public GadgetState getState()
public String getErrorMessage()
Gadget
isLoaded()
returns falsepublic boolean isLoaded()
Gadget
public <T> T accept(Gadget.Visitor<T> visitor)
public DashboardItemModule getDashboardItemModule()
Copyright © 2018 Atlassian. All rights reserved.