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(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
 

Constructor Detail

GadgetColorChange

public GadgetColorChange(com.atlassian.gadgets.GadgetId gadgetId,
                         com.atlassian.gadgets.dashboard.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 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 © 2011 Atlassian. All Rights Reserved.