com.atlassian.gadgets.dashboard.spi.changes
Class GadgetColorChange
java.lang.Object
com.atlassian.gadgets.dashboard.spi.changes.GadgetColorChange
- All Implemented Interfaces:
- DashboardChange
public final class GadgetColorChange
- extends Object
- implements DashboardChange
Details of changing the color of a gadget on a dashboard.
- Since:
- 2.0
|
Constructor Summary |
GadgetColorChange(com.atlassian.gadgets.GadgetId gadgetId,
com.atlassian.gadgets.dashboard.Color color)
|
|
Method Summary |
void |
accept(DashboardChange.Visitor visitor)
Invokes the Visitors Visitor#visit(GadgetColorChange) method. |
com.atlassian.gadgets.dashboard.Color |
getColor()
Get the updated gadget color |
com.atlassian.gadgets.GadgetId |
getGadgetId()
Get the id of the gadget we are changing the color of |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GadgetColorChange
public GadgetColorChange(com.atlassian.gadgets.GadgetId gadgetId,
com.atlassian.gadgets.dashboard.Color color)
accept
public void accept(DashboardChange.Visitor visitor)
- Invokes the
Visitors Visitor#visit(GadgetColorChange) method.
- Specified by:
accept in interface DashboardChange
- Parameters:
visitor - Visitor to invoke the specific visit method on.
getColor
public com.atlassian.gadgets.dashboard.Color getColor()
- Get the updated gadget color
- Returns:
- the updated gadget color
getGadgetId
public com.atlassian.gadgets.GadgetId getGadgetId()
- Get the id of the gadget we are changing the color of
- Returns:
- the id of the gadget we are changing the color of
Copyright © 2012 Atlassian. All Rights Reserved.