com.atlassian.gadgets.dashboard.spi.changes
Class GadgetColorChange

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.gadgets.dashboard.spi.changes.DashboardChange
DashboardChange.Visitor
 
Constructor Summary
GadgetColorChange(GadgetId gadgetId, Color color)
           
 
Method Summary
 void accept(DashboardChange.Visitor visitor)
          Invokes the Visitors Visitor#visit(GadgetColorChange) method.
 Color getColor()
          Get the updated gadget color
 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
 

Constructor Detail

GadgetColorChange

public GadgetColorChange(GadgetId gadgetId,
                         Color color)
Method Detail

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 Color getColor()
Get the updated gadget color

Returns:
the updated gadget color

getGadgetId

public 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 © 2011 Atlassian. All Rights Reserved.