Spiffy UI Framework

org.spiffyui.client.widgets.button
Class RefreshAnchor

java.lang.Object
  extended by Anchor
      extended by org.spiffyui.client.widgets.button.RefreshAnchor

public class RefreshAnchor
extends Anchor

This an Anchor that shows the refresh icon. It has a disabled look as well as a loading look.


Constructor Summary
RefreshAnchor()
          Creates a new RefreshAnchor with a randomly generated ID
RefreshAnchor(java.lang.String id)
          Creates a new RefreshAnchor with the specified ID
 
Method Summary
 boolean isEnabled()
           
 boolean isLoading()
          Returns true if loading
 void setEnabled(boolean enabled)
           
 void setLoading(boolean loading)
          Sets the anchor to appear as loading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefreshAnchor

public RefreshAnchor()
Creates a new RefreshAnchor with a randomly generated ID


RefreshAnchor

public RefreshAnchor(java.lang.String id)
Creates a new RefreshAnchor with the specified ID

Parameters:
id - - The element ID
Method Detail

setEnabled

public void setEnabled(boolean enabled)

isEnabled

public boolean isEnabled()

setLoading

public void setLoading(boolean loading)
Sets the anchor to appear as loading

Parameters:
loading - - boolean true to be loading

isLoading

public boolean isLoading()
Returns true if loading

Returns:
boolean true if loading

Spiffy UI Framework