|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dashboard
Method Summary | |
---|---|
void |
addGadget(DashboardState.ColumnIndex column,
Gadget gadget)
|
void |
addGadget(Gadget gadget)
|
void |
appendGadget(DashboardState.ColumnIndex column,
Gadget gadget)
Add a gadget to the tab specified by the tabId. |
void |
appendGadget(Gadget gadget)
Add a gadget to the default tab. |
void |
changeGadgetColor(GadgetId gadgetId,
Color color)
Change the color of the gadgets chrome. |
void |
changeLayout(Layout layout,
GadgetLayout gadgetLayout)
Change the layout of the dashboard and use the gadget layout to update the gadget positioning. |
void |
clearChanges()
Clears the stored list of changes that have been made to this Dashboard |
Gadget |
findGadget(GadgetId gadgetId)
Lookup a Gadget in this Dashboard given the gadget's id. |
List<DashboardChange> |
getChanges()
Returns an immutable list of changes that have been made to this Dashboard , in the order that they
occurred. |
Iterable<Gadget> |
getGadgetsInColumn(DashboardState.ColumnIndex column)
|
DashboardId |
getId()
|
Layout |
getLayout()
|
DashboardState |
getState()
|
String |
getTitle()
|
void |
rearrangeGadgets(GadgetLayout layout)
Rearrange and reposition the gadgets on the dashboard according to the specified layout. |
void |
removeGadget(GadgetId gadgetId)
Remove the gadget with the provided id from the dashboard. |
void |
updateGadgetUserPrefs(GadgetId gadgetId,
Map<String,String> prefValues)
Save user prefs for a gadget |
Method Detail |
---|
DashboardId getId()
String getTitle()
Layout getLayout()
Iterable<Gadget> getGadgetsInColumn(DashboardState.ColumnIndex column)
DashboardState getState()
Gadget findGadget(GadgetId gadgetId)
gadgetId
- The gadgetId of the gadget to lookup
List<DashboardChange> getChanges()
Dashboard
, in the order that they
occurred.
Dashboard
void clearChanges()
Dashboard
void appendGadget(Gadget gadget)
gadget
- the gadget being addedvoid addGadget(Gadget gadget)
void appendGadget(DashboardState.ColumnIndex column, Gadget gadget)
column
- index of column to append the gadget to.gadget
- the gadget being addedvoid addGadget(DashboardState.ColumnIndex column, Gadget gadget)
void removeGadget(GadgetId gadgetId)
gadgetId
- id of the gadget to removevoid rearrangeGadgets(GadgetLayout layout) throws GadgetLayoutException
layout
- Layout to match
GadgetLayoutException
- thrown if the layout is invalidvoid changeLayout(Layout layout, GadgetLayout gadgetLayout) throws GadgetLayoutException
layout
- New layout to use for the dashboardgadgetLayout
- New positioning of the gadgets
GadgetLayoutException
- thrown if the positioning of the gadgets is not valid for the new layout - e.g.
threre are gadgets in columns that don't exist in the new layoutvoid changeGadgetColor(GadgetId gadgetId, Color color) throws GadgetNotFoundException, GadgetNotLoadedException
gadgetId
- Id of gadget to change the color of.color
- Color to change the chrome to
GadgetNotFoundException
GadgetNotLoadedException
void updateGadgetUserPrefs(GadgetId gadgetId, Map<String,String> prefValues) throws GadgetNotFoundException, GadgetNotLoadedException
gadgetId
- Id of gadget to change the color of.prefValues
- preferences to save
GadgetNotFoundException
GadgetNotLoadedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |